Mastercard · Schema
Error
Error object which contains details about a single error.
Credit CardsDigital IdentityFinancial ServicesFraud DetectionOpen BankingPaymentsFortune 500
Properties
| Name | Type | Description |
|---|---|---|
| Source | string | The application name that generated this error. If an error is generated and returned by the gateway, then this field will have value as `Gateway`. Other possible values are `CARBON CALCULATOR`, `DONA |
| ReasonCode | string | A unique constant identifying the error case encountered during request processing. |
| Description | string | Short description of the `ReasonCode` field. |
| Recoverable | boolean | Indicates whether this error will always be returned for this request, or retrying could change the outcome. |
| Details | string | (Optional) Where appropriate, indicates detailed information about data received and calculated during the request processing, to help the user with diagnosing errors. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Error",
"type": "object",
"description": "Error object which contains details about a single error.",
"properties": {
"Source": {
"type": "string",
"description": "The application name that generated this error. If an error is generated and returned by the gateway, then this field will have value as `Gateway`. Other possible values are `CARBON CALCULATOR`, `DONATE`, `CARBON_CALCULATOR_EXPERIENCE` or `PRICELESS PLANET`."
},
"ReasonCode": {
"type": "string",
"description": "A unique constant identifying the error case encountered during request processing."
},
"Description": {
"type": "string",
"description": "Short description of the `ReasonCode` field."
},
"Recoverable": {
"type": "boolean",
"description": "Indicates whether this error will always be returned for this request, or retrying could change the outcome."
},
"Details": {
"type": "string",
"description": "(Optional) Where appropriate, indicates detailed information about data received and calculated during the request processing, to help the user with diagnosing errors."
}
}
}