Use this file to discover all available pages before exploring further.
Validation errors occur after the request has successfully made it into the internal transaction handlers, but further value validation, or business rules, have determined one or more errors.
Response Structure: Validation Error
{ "data": { "nameOfMutation": null }, "errors": [ { "message": "<text description of the error>", "path": ["<name of mutation or query>"], "extensions": { "code": "<a specific error code for the error>", "advice": "<advice for resolving the error>", "valueInError": "<the value provided that is in error>" } } ]}
Response: Refund - Amount Must Be Greater Than Zero
{ "data": null, "errors": [ { "message": "Refund amount must be greater than zero", "path": ["refundWithReference"], "extensions": { "code": "REFUND_AMOUNT_MUST_BE_GREATER_THAN_ZERO", "advice": "Review error details and fix internal system", "valueInError": "<decimal>" } } ]}
Response: Refund - Merchant ID Doesn't Match Prior Authorization
{ "data": null, "errors": [ { "message": "Merchant ID does not match that of previous transaction", "path": ["refundWithReference"], "extensions": { "code": "MERCHANT_ID_DOESNT_MATCH_PRIOR_AUTH", "advice": "Review error details and fix internal system", "valueInError": "<guid>" } } ]}
Response: Refund - Invalid Transaction Type For Refund
{ "data": null, "errors": [ { "message": "Payment must be captured to be refunded", "path": ["refundWithReference"], "extensions": { "code": "PAYMENT_MUST_BE_SETTLED", "advice": "Review error details and fix internal system", "valueInError": "<guid>" } } ]}
Response: Reversal - Original Transaction Was Declined
{ "data": null, "errors": [ { "message": "Transaction to be reversed must have been approved", "path": ["reverseTransaction"], "extensions": { "code": "ORIGINAL_TRANSACTION_WAS_DECLINED", "advice": "Review error details and fix internal system", "valueInError": "<guid>" } } ]}
Response: Reversal - Invalid Transaction Type For Reversal
{ "data": null, "errors": [ { "message": "Cant reverse a transaction that has already been cleared", "path": ["reverseTransaction"], "extensions": { "code": "PAYMENT_ALREADY_SETTLED", "advice": "Review error details and fix internal system", "valueInError": "<guid>" } } ]}
Response: Reversal - Merchant ID Doesn't Match Prior Authorization
{ "data": null, "errors": [ { "message": "Merchant ID does not match that of previous transaction", "path": ["reverseTransaction"], "extensions": { "code": "PRIOR_AUTH_MID_MUST_MATCH_REQUEST_MID", "advice": "Review error details and fix internal system", "valueInError": "<guid>" } } ]}