Skip to main content

Create a Cost Center

Endpoint​

POST https://api.verifik.co/v2/cost-centers

Creates a cost center on your account. Managing cost centers does not spend credits.

headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

body parameters​

name​

Type: string
Required: Yes

Display name, up to 120 characters.

code​

Type: string
Required: Yes

Value you will send in x-cost-center. Letters, numbers, ., -, and _, up to 60 characters. Unique per account.

country​

Type: string
Required: Yes

ISO-2 country code, such as ES.

active​

Type: boolean
Required: No

Defaults to true.

Request Example​

curl -X POST "https://api.verifik.co/v2/cost-centers" \
-H "Authorization: Bearer $VERIFIK_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Spain operations","code":"SPAIN-OPS","country":"ES"}'

Response Example​

{
"data": {
"_id": "6acfbdda92451bac5d0a7ebe",
"client": "69c2b824295cd7d276e478ad",
"name": "Spain operations",
"code": "SPAIN-OPS",
"country": "ES",
"active": true,
"createdAt": "2026-10-14T17:37:30.469Z",
"updatedAt": "2026-10-14T17:37:30.469Z"
}
}

data is the cost center object.

Error Responses​

A code that already exists on the account:

{
"message": "cost_center_code_taken",
"code": "Conflict"
}

A missing or invalid field, such as name, code, or country:

{
"message": "\"name\" is required",
"code": "MissingParameter"
}