Cost centers

Retrieve cost centers from the Basecone office.

GET costCenters?companyid=:companyId&code=:code

Request properties

Property Type Description Optional
code String Code of cost center Yes
companyId Guid Company unique Identifier. No

Cost centers collection properties

Property Type Description
id Guid Unique identifier of cost center
code string Code of cost center
name string Name of cost center
fullName string Full name of cost center

For details on collections see collection details.

Example response:

{
    "costCenters": [
        {
            "id": "8251ecaa-ef25-4c00-8b0d-8f3d1901afa0",
            "code": "00000",
            "name": "Jose KPL",
            "fullName": "Jose KPL (00000)"
        }
    ],
    "_links": [
        {
            "rel": "self",
            "href": "http://localhost:54434/costCenters?companyid=ea3f03ea-d192-4a8f-98ca-9b579daf71f0&limit=20&offset=0"
        }
    ],
    "_metadata": {
        "total": 1,
        "count": 1
    }
}