HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.ApiErrors

Contains the types generated from the schema ApiErrors

  • 12 types
  • 5 values
datadata ApiErrors
#

Defines the object schema located at components.schemas.api_errors in the specification.

Constructors

  • ApiErrors
    • apiErrorsCharge :: Maybe Text

      charge: For card errors, the ID of the failed charge.

      Constraints:

      • Maximum length of 5000

    • apiErrorsCode :: Maybe Text

      code: For some errors that could be handled programmatically, a short string indicating the error code reported.

      Constraints:

      • Maximum length of 5000

    • apiErrorsDeclineCode :: Maybe Text

      decline_code: For card errors resulting from a card issuer decline, a short string indicating the card issuer's reason for the decline if they provide one.

      Constraints:

      • Maximum length of 5000

    • apiErrorsDocUrl :: Maybe Text

      doc_url: A URL to more information about the error code reported.

      Constraints:

      • Maximum length of 5000

    • apiErrorsMessage :: Maybe Text

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

      Constraints:

      • Maximum length of 40000

    • apiErrorsParam :: Maybe Text

      param: If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.

      Constraints:

      • Maximum length of 5000

    • apiErrorsPaymentIntent :: Maybe PaymentIntent

      payment_intent: A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.

      A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.

      Related guide: Payment Intents API.

    • apiErrorsPaymentMethod :: Maybe PaymentMethod

      payment_method: PaymentMethod objects represent your customer's payment instruments. You can use them with PaymentIntents to collect payments or save them to Customer objects to store instrument details for future payments.

      Related guides: Payment Methods and More Payment Scenarios.

    • apiErrorsPaymentMethodType :: Maybe Text

      payment_method_type: If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.

      Constraints:

      • Maximum length of 5000

    • apiErrorsSetupIntent :: Maybe SetupIntent

      setup_intent: A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow.

      Create a SetupIntent as soon as you're ready to collect your customer's payment credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid. The SetupIntent then transitions through multiple statuses as it guides you through the setup process.

      Successful SetupIntents result in payment credentials that are optimized for future payments. For example, cardholders in certain regions may need to be run through Strong Customer Authentication at the time of payment method collection in order to streamline later off-session payments. If the SetupIntent is used with a Customer, upon success, it will automatically attach the resulting payment method to that Customer. We recommend using SetupIntents or setup_future_usage on PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.

      By using SetupIntents, you ensure that your customers experience the minimum set of required friction, even as regulations change over time.

      Related guide: Setup Intents API.

    • apiErrorsSource :: Maybe ApiErrorsSource'

      source: The source object for errors returned on a request involving a source.

    • apiErrorsType :: ApiErrorsType'

      type: The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`

Instances4Eq, Show, FromJSON, ToJSON
  • Eq ApiErrorsDefined in stripeapi-3.0.0.0 · StripeAPI.Types.ApiErrors
  • Show ApiErrorsDefined in stripeapi-3.0.0.0 · StripeAPI.Types.ApiErrors
  • FromJSON ApiErrorsDefined in stripeapi-3.0.0.0 · StripeAPI.Types.ApiErrors
  • ToJSON ApiErrorsDefined in stripeapi-3.0.0.0 · StripeAPI.Types.ApiErrors
datadata ApiErrorsSource'
#

Defines the object schema located at components.schemas.api_errors.properties.source.anyOf in the specification.

The source object for errors returned on a request involving a source.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.api_errors.properties.source.anyOf.properties.account.anyOf in the specification.

The ID of the account that the bank account is associated with.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.api_errors.properties.source.anyOf.properties.available_payout_methods.items in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.api_errors.properties.source.anyOf.properties.customer.anyOf in the specification.

The ID of the customer that the bank account is associated with.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.api_errors.properties.source.anyOf.properties.object in the specification.

String representing the object's type. Objects of the same type share the same value.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.api_errors.properties.source.anyOf.properties.owner.anyOf in the specification.

Information about the owner of the payment instrument that may be used or required by particular source types.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.api_errors.properties.source.anyOf.properties.owner.anyOf.properties.address.anyOf in the specification.

Owner\'s address.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.api_errors.properties.source.anyOf.properties.owner.anyOf.properties.verified_address.anyOf in the specification.

Verified owner\'s address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.api_errors.properties.source.anyOf.properties.recipient.anyOf in the specification.

The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.api_errors.properties.source.anyOf.properties.type in the specification.

The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.

Constructors

Instances4Eq, Show, FromJSON, ToJSON
datadata ApiErrorsType'
#

Defines the enum schema located at components.schemas.api_errors.properties.type in the specification.

The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`

Constructors

Instances4Eq, Show, FromJSON, ToJSON