getClientCostCentres
getClientCostCentres
Overview
This method returns a list of cost centres for a specified client, optionally filtered by description.
By default only active cost centres are returned. Records with a status of 'deleted' are never returned.
This method requires the ClientCostCentres:Get permission to be associated with your role.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as 'ClientCostCentres:Get'.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method 'GET' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/client-cost-centres?client_id=1234 https://api.{{environment}}.catch-e.com/fm/client-cost-centres https://api.test.catch-e.com/fm/client-cost-centres Query Parameters
Response Details
Success
200 - OK
Each record in _embedded.fm_client_cost_centres contains:
{ "_links": { "self": { "href": "https://api.catch-e.loc/fm/client-cost-centres?client_id=1234&page=1" } }, "_embedded": { "fm_client_cost_centres": [ { "client_cost_centre_id": "345", "client_id": "1234", "description": "Head Office", "user_id_cost_centre_manager": "67", "address1": "[ADDRESS-LINE-1]", "address2": "", "area": "[SUBURB]", "state": "NSW", "postcode": "2000", "no_of_ftes": "50", "site_visits": "string", "contact_name": "[CONTACT-NAME]", "contact_job_title": "[JOB-TITLE]", "contact_phone": "[PHONE]", "contact_email": "[EMAIL]", "contact_note": "string", "status_flag": "active" } ] }, "page_count": 1, "page_size": 25, "total_items": 1, "page": 1 } Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Not Found" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }