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.
Name | Type | Description |
---|---|---|
code | numeric | A number that maps to an error |
message | string | A human-readable message providing more details about the error |
method | string | HTTP method POST/GET/PUT |
endpoint | string | endpoint information |
requestId | string | The 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"
}