Defines the object schema located at components.schemas.api_errors in the specification.
Constructors
ApiErrorsapiErrorsCharge :: Maybe Textcharge: For card errors, the ID of the failed charge.
Constraints:
Maximum length of 5000
apiErrorsCode :: Maybe Textcode: For some errors that could be handled programmatically, a short string indicating the error code reported.
Constraints:
Maximum length of 5000
apiErrorsDeclineCode :: Maybe Textdecline_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 TextapiErrorsMessage :: Maybe Textmessage: 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 Textparam: 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 PaymentIntentpayment_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 PaymentMethodpayment_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 Textpayment_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 SetupIntentsetup_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`