Payment API uses common HTTP status codes and Error codes to indicate the success or failure of an API request.

Response body

Returns a JSON object and an appropriate HTTP status code.

Please note that the human-readable textual messages included within the error object are improved over time. For validation and mapping purposes, please use the error code or HTTP status code values.

NameTypeDescription
codenumericA number that maps to an error
messagestringA human-readable message providing more details about the error
methodstringHTTP method POST/GET/PUT
endpointstringendpoint information
requestIdstringThe unique request-Id that identifies the original request

Sample Example

400 Bad Request
{
    "code": "2",
    "message": "Invalid payment details.",
    "method": "POST",
    "endPoint": "/v1/cards/verification",
    "requestId": "test16"
}