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
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <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
- Node.js
- Python
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"}'
const axios = require("axios");
const config = {
method: "post",
url: "https://api.verifik.co/v2/cost-centers",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
data: {
name: "Spain operations",
code: "SPAIN-OPS",
country: "ES"
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import os
import requests
response = requests.post(
"https://api.verifik.co/v2/cost-centers",
headers={
"Authorization": f"Bearer {os.environ['VERIFIK_TOKEN']}",
"Content-Type": "application/json",
},
json={"name": "Spain operations", "code": "SPAIN-OPS", "country": "ES"},
)
print(response.json())
Response Example
- 200 OK
{
"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"
}