Get a page of cost centres

Query Parameters
  • PageIndex
    Type: integerFormat: int32

    The page index of the search.

  • PageSize
    Type: integerFormat: int32

    The number of items to be returned in the response. Returns pages of up to 500 records.

  • SearchText
    Type: string

    The search text to filter cost centres by. This can be all or part of a cost centre name, code.

Responses
  • application/json
Request Example for get/v1/cost-centres
curl 'https://api.consignlyhq.com/v1/cost-centres?PageIndex=1&PageSize=25&SearchText=M-200'
{
  "index": 1,
  "total": 1,
  "costCentres": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": null,
      "code": null
    }
  ]
}