---
title: PaymentError Object
seo:
  title: PaymentError Object
  description: PaymentError Object - no description
slug: api-reference/payments/objects/payment-error
sidebar:
  label: PaymentError
search:
  tags:
    - API reference
    - Payments
lastModified: '2026-04-13'
---

```graphql
type PaymentError {
  field: String
  message: String
  code: PaymentErrorCode!
  variants: [ID!]
}
```


## Fields

### field [#field]

**`field`** · [`String`](/api-reference/miscellaneous/scalars/string)

Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
### message [#message]

**`message`** · [`String`](/api-reference/miscellaneous/scalars/string)

The error message.
### code [#code]

**`code`** · [`PaymentErrorCode!`](/api-reference/payments/enums/payment-error-code)

The error code.
### variants [#variants]

**`variants`** · [`[ID!]`](/api-reference/miscellaneous/scalars/id)

List of variant IDs which causes the error.

## Used by

- [CheckoutPaymentCreate (objects)](/api-reference/checkout/objects/checkout-payment-create)
- [PaymentCapture (objects)](/api-reference/payments/objects/payment-capture)
- [PaymentCheckBalance (objects)](/api-reference/payments/objects/payment-check-balance)
- [PaymentInitialize (objects)](/api-reference/payments/objects/payment-initialize)
- [PaymentRefund (objects)](/api-reference/payments/objects/payment-refund)
- [PaymentVoid (objects)](/api-reference/payments/objects/payment-void)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
