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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The name of the cost center

string | null

Available only when cost object types are enabled for your organization on request, is ignored when the feature is not enabled. Cost object type name to assign on create. Non-empty string (max 256 characters). Omit or null leaves the type unset. If a type with that name already exists (case-insensitive), it is assigned; otherwise it is created. Cannot be set on Yokoy-sourced cost centers.

integer

The ID of the user to set as approver. The user must belong to one of the account's companies

integer

The ID of the user to set as delegate. The delegate must belong to one of the account's companies

string

The expiry date for the delegate in YYYY-MM-DD format

string

Identifier used to associate this cost center with a corresponding record in an external ERP system

company_ids
array of integers

IDs of companies this cost center is scoped to. Must be provided together with 'all_companies'. When 'all_companies' is true, company scope is set to all companies in the account.

company_ids
boolean

Whether the cost center applies to all companies in the account. Must be provided together with 'company_ids'. When true, 'company_ids' is ignored and the cost center is scoped to all companies in the account. Defaults to true when neither field is provided.

owner_ids
array of integers

IDs of additional travel approvers to set on create. Users must belong to an allowed company for the cost center and must not duplicate approver_id

owner_ids
Headers
string
required

Your Perk API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json