GET
/
cleemy-procurement
/
api
/
costcenters
curl --request GET \
  --url https://{host}/cleemy-procurement/api/costcenters \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "id": 123,
      "name": "<string>",
      "code": "<string>",
      "owner": {
        "id": 123,
        "href": "<string>",
        "name": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "pictureHref": "<string>"
      },
      "state": "Disabled",
      "establishments": [
        {
          "id": 123,
          "name": "<string>",
          "href": "<string>"
        }
      ]
    }
  ],
  "prev": "<string>",
  "next": "<string>",
  "count": 1
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Query Parameters

fields.root
enum<string>[]

Include root collection fields (paging).

page

Page selection. Page tokens can be retrieved by adding ?fields.root=next,prev on your GET collections requests.

limit
integer

Page size.

Required range: 0 <= x <= 1000

Response

200 - application/json

Successful read of cost-centers

The response is of type object.