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), usage, approval limits, parent cost center, technical custom field values (custom_information), and cost object type (type) when that feature is enabled for your organization. Writes take a flat object plus company_id; responses return custom_information as a list grouped per company, [{company_id, fields}], where boolean values are returned as the strings "true"/"false".

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
usage
array of strings | null

Where the cost center can be used: any of 'travel', 'expenses', 'invoices'. Omit or null to use the account default.

usage
Allowed:
number | null
≥ 0

Approval limit for expenses and invoices. Only valid when usage includes 'expenses' or 'invoices'. Omit, null or "" (empty string) to use the default of 0.

number | null
≥ 0

Amount up to which expenses and invoices are approved automatically. Only valid when usage includes 'expenses' or 'invoices'. Omit, null or "" (empty string) to leave unset.

integer | null

The ID of the parent cost center. Omit, null or "" (empty string) to leave unset. Returns 400 for travel-only accounts unless the cost center hierarchies feature is enabled.

custom_information
object | null

Technical custom field values keyed by field name. Only valid when usage includes 'expenses' or 'invoices'. Only fields that already exist for the company are accepted. Booleans are written as true/false. Null or "" values are dropped, so nothing is stored for those keys. Writes take a flat object plus company_id; responses return custom_information as a list grouped per company, [{company_id, fields}], where boolean values are returned as the strings "true"/"false".

integer | null

The company the custom_information values apply to. Required with custom_information when the cost center is scoped to several companies; must be one of the cost center's companies.

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