Create an expense category
POST/api/expense_categories
This endpoint is intended to create a new expense category.
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 category. Multiple categories with the same name cannot be added.
- accountingAccountNumber: Optional.
- externalId: Optional. The identifier in the external accounting program. Multiple categories with the same name cannot be added.
- 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
Responses
- 200
- 201
- 400
- 401
- 403
- 422
OK - The request was processed successfully.
Created - The request was processed successfully.
Bad Request -- Your request is invalid.
Unauthorised -- Your access token is wrong.
Forbidden -- Access to the requested resource or action is forbidden.
Unprocessable Content -- We could not process your request due to invalid data provided.