GET
/
accounting
/
cost-centres
curl -X GET \
 /accounting/cost-centres \
 --header "Authorization: Bearer <token>"
{
  "data": [
    {
      "id": "ad8f1c9c-4f0a-4e1a-8b1a-9c4d9c4d9c4d",
      "name": "Cost Centre",
      "code": "CC",
      "type": "KOST1",
      "status": "<any>",
      "createdAt": "2021-01-01T00:00:00+00:00",
      "updatedAt": "2021-01-01T00:00:00+00:00"
    }
  ],
  "meta": {
    "pagination": {
      "totalItems": 123,
      "itemsPerPage": 123,
      "currentPage": 123,
      "lastPage": 123,
      "pageTotalItems": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Query Parameters

page
integer
default:
1

The collection page number

limit
integer
default:
30

The number of items per page

Required range: 0 < x < 100

Response

200
application/json
CostCentre collection
data
object[]
meta
object