# `Stripe.ApiErrors`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/api_errors.ex#L1)

# `t`

```elixir
@type t() :: %Stripe.ApiErrors{
  advice_code: binary(),
  charge: binary(),
  code: binary(),
  decline_code: binary(),
  doc_url: binary(),
  message: binary(),
  network_advice_code: binary(),
  network_decline_code: binary(),
  param: binary(),
  payment_intent: Stripe.PaymentIntent.t(),
  payment_method: Stripe.PaymentMethod.t(),
  payment_method_type: binary(),
  request_log_url: binary(),
  setup_intent: Stripe.SetupIntent.t(),
  source: Stripe.PaymentSource.t(),
  type: binary()
}
```

The `api_errors` type.

  * `advice_code` For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
  * `charge` For card errors, the ID of the failed charge.
  * `code` For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
  * `decline_code` For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
  * `doc_url` A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
  * `message` A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
  * `network_advice_code` For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
  * `network_decline_code` For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
  * `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.
  * `payment_intent` 
  * `payment_method` 
  * `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.
  * `request_log_url` A URL to the request log entry in your dashboard.
  * `setup_intent` 
  * `source` 
  * `type` The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
