Cost centers
Get cost center
Retrieves a cost center by its ID, including assigned users, approver, delegate, company scope, additional approvers (owner_ids/owners), and cost object type (type) when that feature is enabled for your organization.
get/cost_centers/{id}
Request
- Base URLhttps://api.perk.com
- URLhttps://api.perk.com/cost_centers/{id}
- Authnone declared. Required headers: Authorization
Path parameters
idstring required
The unique ID of the cost center
Headers
Authorizationstring required
Your Perk API key
Response
Returns '200 OK' and the cost center resource.
Example response
{
"id": "1",
"name": "Marketing",
"type": "Department",
"approver_id": 123,
"approver": {
"id": 123,
"first_name": "Alex",
"last_name": "Chen",
"email": "alex.chen@company.com"
},
"delegate_id": 456,
"delegate": {
"id": 456,
"first_name": "Jordan",
"last_name": "Smith",
"email": "jordan.smith@company.com"
},
"delegate_expiry": "2025-12-31",
"all_companies": true,
"companies": [
{
"id": 1,
"name": "Company A"
}
],
"users": [
{
"id": 42,
"first_name": "Alex",
"last_name": "Chen",
"email": "alex.chen@company.com"
}
],
"count_users": 1,
"erp_code": "CC-4210",
"owner_ids": [
789,
790
],
"owners": [
{
"id": 789,
"first_name": "Sam",
"last_name": "Patel",
"email": "sam.patel@company.com"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.