Get categories
GET/categories
Get all supported categories
Request
Query Parameters
Default value: en
ISO 639-1 language code for category translation, get supported languages from /languages
Responses
- 200
- 401
- 403
- 405
- 429
- 500
- default
Categories response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
categories
object[]
ID of the category
mainCategory
object
Main category
ID of the main category
Translated name
subCategory
object
Sub-category
ID of the sub-category
Translated name
{
"categories": [
{
"id": 0,
"mainCategory": {
"id": 0,
"name": "string"
},
"subCategory": {
"id": 0,
"name": "string"
}
}
]
}
Unauthorized client
Insufficient scope for accessing this resource
- application/json
- Schema
- Example (from schema)
Schema
Array [
BAD_REQUEST
- Malformed request, please advice the description and details fields for more informationFORBIDDEN
- Insufficient scope to access the resourceINTERNAL_SERVER_ERROR
- Unexpected server errorMETHOD_NOT_ALLOWED
- Method not allowedUNSUPPORTED_MEDIA_TYPE
- Unsupported media typeSERVICE_UNAVAILABLE
- Service is unavailable]
errors
object[]
required
Errors
Possible values: non-empty
and <= 100 characters
The application name that generated this error.
Possible values: non-empty
and <= 100 characters
A unique constant identifying the error case encountered during request processing.
Possible values: >= 10 characters
and <= 1000 characters
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Possible values: <= 5000 characters
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "Doconomy",
"reasonCode": "BAD_REQUEST",
"description": "cardTransactions[0].mcc must match \\\"[0-9]{1,4}\\\"",
"recoverable": false,
"details": "string"
}
]
}
Method not allowed
- application/json
- Schema
- Example (from schema)
Schema
Array [
BAD_REQUEST
- Malformed request, please advice the description and details fields for more informationFORBIDDEN
- Insufficient scope to access the resourceINTERNAL_SERVER_ERROR
- Unexpected server errorMETHOD_NOT_ALLOWED
- Method not allowedUNSUPPORTED_MEDIA_TYPE
- Unsupported media typeSERVICE_UNAVAILABLE
- Service is unavailable]
errors
object[]
required
Errors
Possible values: non-empty
and <= 100 characters
The application name that generated this error.
Possible values: non-empty
and <= 100 characters
A unique constant identifying the error case encountered during request processing.
Possible values: >= 10 characters
and <= 1000 characters
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Possible values: <= 5000 characters
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "Doconomy",
"reasonCode": "BAD_REQUEST",
"description": "cardTransactions[0].mcc must match \\\"[0-9]{1,4}\\\"",
"recoverable": false,
"details": "string"
}
]
}
Too many requests, check the headers X-RateLimit-Limit-second and X-RateLimit-Remaining-second
Unexpected server error
- application/json
- Schema
- Example (from schema)
Schema
Array [
BAD_REQUEST
- Malformed request, please advice the description and details fields for more informationFORBIDDEN
- Insufficient scope to access the resourceINTERNAL_SERVER_ERROR
- Unexpected server errorMETHOD_NOT_ALLOWED
- Method not allowedUNSUPPORTED_MEDIA_TYPE
- Unsupported media typeSERVICE_UNAVAILABLE
- Service is unavailable]
errors
object[]
required
Errors
Possible values: non-empty
and <= 100 characters
The application name that generated this error.
Possible values: non-empty
and <= 100 characters
A unique constant identifying the error case encountered during request processing.
Possible values: >= 10 characters
and <= 1000 characters
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Possible values: <= 5000 characters
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "Doconomy",
"reasonCode": "BAD_REQUEST",
"description": "cardTransactions[0].mcc must match \\\"[0-9]{1,4}\\\"",
"recoverable": false,
"details": "string"
}
]
}
Default response
Response Headers
X-RateLimit-Limit-second
integer
Request limit per second
X-RateLimit-Remaining-second
integer
Number of requests left for the time window