Retrieve a single expense category
GET/api/expense_categories/:id
This API endpoint is tailored to retrieve detailed information about an individual expense category, serving as a valuable tool for accessing specific expense category data within your system.
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
Path Parameters
ExpenseCategory identifier
Responses
- 200
- 401
- 403
- 404
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": "Travels",
"accountingAccountNumber": "123132",
"externalId": "123132",
"allowedTransactionTypes": [
"fee_transaction",
"fx_transaction"
],
"allowedCardGroups": [
"2",
"7"
]
}
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
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
Default value: 400
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
{
"title": "string",
"detail": "string",
"status": 400,
"instance": "string",
"type": "string"
}
Not Found -- The requested resource could not be found.
- application/json
- Schema
- Example (from schema)
Schema
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
Default value: 400
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
{
"title": "string",
"detail": "string",
"status": 400,
"instance": "string",
"type": "string"
}