Cost centers
Create cost center
Creates a cost center with the specified name. You can optionally set an approver, delegate, delegate expiry date, additional approvers (owner_ids), and cost object type (type) when that feature is enabled for your organization.
post/cost_centers
Request
- Base URLhttps://api.perk.com
- URLhttps://api.perk.com/cost_centers
- Authnone declared. Required headers: Authorization
Headers
Authorizationstring required
Your Perk API key
Request body
Example request
{
"name": "Marketing",
"type": "Department",
"approver_id": 123,
"delegate_id": 456,
"delegate_expiry": "2025-12-31",
"erp_code": "CC-4210",
"company_ids": [
11454,
22187
],
"owner_ids": [
789,
790
]
}Response
Returns '200 OK' and the newly created cost center resource.
Example response
{
"id": "4",
"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",
"erp_code": "CC-4210",
"companies": [
1,
2
],
"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.