Get merchant categories
GET/merchant-categories
Get the merchant categories that are accepted by the calculation API.
Responses
- 200
- 401
- 403
- 405
- 429
- 500
- default
Merchant categories response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
merchantCategories
object[]
Possible values: non-empty
and <= 4 characters
, Value must match regular expression [0-9]{1,4}
Merchant Category Code in ISO 18245 format
{
"merchantCategories": [
{
"code": "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