API Error

  • The type of error returned.

    values
    • api_error

      The request could not be processed because of an internal Paypercut or upstream issue.

    • card_error

      A payment attempt failed because of card, issuer, network, or authentication behavior.

    • idempotency_error

      The request conflicts with an earlier request made with the same idempotency key.

    • invalid_request_error

      The request is malformed, contains invalid parameters, or cannot be processed in its current state.

  • A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.

  • For some errors that can be handled programmatically, a short string indicating the error reported.

  • Documentation URL for the error, when one is available.

  • If the error is parameter-specific, the parameter related to the error.

  • For some validation errors, a short string indicating the specific rule violation.

  • For card errors resulting from an issuer decline, a short string indicating the issuer's reason if one is available.

  • For card errors resulting from an issuer decline, a short string indicating how to proceed if advice is available.

  • For payments declined by the network, an alphanumeric code indicating the reason the payment failed.

  • For card errors resulting from an issuer decline, a network-provided advice code when available.

  • Describes a recoverable action the client can take after receiving this error. The exact fields depend on the action type.

    Properties: 3
  • Trace ID of the request, which can be used to reference the failed request in support conversations.

  • Checkout session context returned by selected checkout errors.

    Properties: 39