Create an expense cost center
POST/api/expense_cost_centers
This endpoint is intended to create a new expense cost center.
Prerequisites:
To use this endpoint you need to have the ACCOUNTING scope for the API Key. Please contact your relation manager to get this permission.
Request Body:
- name: The name of the cost center. Multiple cost centers with the same name and number combination cannot be added.
- number: Optional.
- allowedTransactionTypes: Optional. Defines which type of transactions can be attached to this category. Multiple choices can be added.
- allowedCardGroups: Optional. Defines which card groups can be attached to this category. Multiple choices can be added.
Request
Header Parameters
Possible values: <= 50 characters
An optional unique identifier for the request, limited to 50 characters. Used to track requests and prevent duplication.
- application/json
Body
required
Possible values: [card_transaction, fee_transaction, fx_transaction, payin_transaction, payout_transaction, wallet_transaction]
Responses
- 200
- 400
- 401
- 403
OK - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [card_transaction, fee_transaction, fx_transaction, payin_transaction, payout_transaction, wallet_transaction]
{
"id": 0,
"name": "Finance",
"number": "123145",
"allowedTransactionTypes": [
"fee_transaction",
"fx_transaction"
],
"allowedCardGroups": [
"2",
"7"
]
}
Bad Request -- Your request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
{
"title": "string",
"type": "string",
"detail": "string"
}
Unauthorised -- Your access token is wrong.
- application/json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"detail": "string"
}
Forbidden -- Access to the requested resource or action is forbidden.
- application/json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"detail": "string"
}