Skip to main content
The PreviousFailure object represents information about a previous failed payment attempt with another payment provider. This allows merchants to provide context about failed attempts when retrying payments, which can help improve approval rates.

Properties

FieldTypeRequiredDescription
gatewaystringName or identifier of the provider where the failure occurred
attemptNumberintegerSequential number of this attempt
responseCodestringProvider-specific failure or decline code
reasonstringHuman-readable reason for the failure
timestampstringWhen the failure occurred (ISO 8601 date-time format)
transactionIdstringTransaction identifier from the original provider
additionalDataobjectAdditional gateway-specific data as flexible key/value pairs. You can include any provider-specific information that may be relevant (e.g., AVS result, CVV result, custom fields)

Example

{
  "gateway": "AcquirerX",
  "attemptNumber": 1,
  "responseCode": "05",
  "reason": "Do not honour",
  "timestamp": "2025-11-05T14:22:10Z",
  "transactionId": "txn_abc123",
  "additionalData": {
    "avsResult": "N",
    "cvvResult": "N"
  }
}