For all operations listed below you will need to provide HTTP Request Header Authorization param. For more details see Login/Auth page.
Get the List of Cost Centers
Route: /cost_center
Method: GET
Required query parameters:
- customer_id: array of customer IDs. (See customer section, for more details how to get customer IDs associated with your account)
Example result
{
"entities": [
{
"name": "Cost Center Name",
"is_active": "1 or 0",
"customer_id": "Number",
"id": "Internal Id",
"code1": "",
"code2": "",
"pp_id": "Parcel Perfect Id",
"account": "Customer Account",
"customer_name": "Customer name"
},
{
...
}
...
"total": 123,
"result": true
Get cost center by internal ID
Route: /cost_center/{internal_id}
Method: GET
{
"entity": {
"name": "Cost Center Name",
"is_active": "1 or 0",
"customer_id": "Number",
"id": "Internal Id",
"code1": "",
"code2": "",
"pp_id": "Parcel Perfect Id",
"account": "Customer Account",
"customer_name": "Customer name"
},
"result": true
}