# `Stripe.Resources.PaymentIntent.AmountDetails.Error`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/resources/payment_intent.ex#L229)

Nested struct within the parent resource.

# `t`

```elixir
@type t() :: %Stripe.Resources.PaymentIntent.AmountDetails.Error{
  code: String.t() | nil,
  message: String.t() | nil
}
```

* `code` - The code of the error that occurred when validating the current amount details. Possible values: `amount_details_amount_mismatch`, `amount_details_tax_shipping_discount_greater_than_amount`. Nullable.
* `message` - A message providing more details about the error. Max length: 5000. Nullable.

---

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