---
title: CheckoutError Object
seo:
  title: CheckoutError Object
  description: CheckoutError Object - no description
slug: api-reference/checkout/objects/checkout-error
sidebar:
  label: CheckoutError
search:
  tags:
    - API reference
    - Checkout
lastModified: '2026-04-13'
---

```graphql
type CheckoutError {
  field: String
  message: String
  code: CheckoutErrorCode!
  variants: [ID!]
  lines: [ID!]
  addressType: AddressTypeEnum
  promoCodeDetails: PromoCodeRejectionDetails
}
```


## 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`** · [`CheckoutErrorCode!`](/api-reference/checkout/enums/checkout-error-code)

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

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

List of variant IDs which causes the error.
### lines [#lines]

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

List of line Ids which cause the error.
### addressType [#address-type]

**`addressType`** · [`AddressTypeEnum`](/api-reference/miscellaneous/enums/address-type-enum)

A type of address that causes the error.
### promoCodeDetails [#promo-code-details]

**`promoCodeDetails`** · [`PromoCodeRejectionDetails`](/api-reference/checkout/objects/promo-code-rejection-details)

Details of the promo code that caused the error. Null when the error is not a promo code rejection.

Added in Saleor 3.23

## Used by

- [CheckoutAddPromoCode (objects)](/api-reference/checkout/objects/checkout-add-promo-code)
- [CheckoutBillingAddressUpdate (objects)](/api-reference/checkout/objects/checkout-billing-address-update)
- [CheckoutComplete (objects)](/api-reference/checkout/objects/checkout-complete)
- [CheckoutCreate (objects)](/api-reference/checkout/objects/checkout-create)
- [CheckoutCustomerAttach (objects)](/api-reference/checkout/objects/checkout-customer-attach)
- [CheckoutCustomerDetach (objects)](/api-reference/checkout/objects/checkout-customer-detach)
- [CheckoutCustomerNoteUpdate (objects)](/api-reference/checkout/objects/checkout-customer-note-update)
- [CheckoutDeliveryMethodUpdate (objects)](/api-reference/checkout/objects/checkout-delivery-method-update)
- [CheckoutEmailUpdate (objects)](/api-reference/checkout/objects/checkout-email-update)
- [CheckoutLanguageCodeUpdate (objects)](/api-reference/checkout/objects/checkout-language-code-update)
- [CheckoutLineDelete (objects)](/api-reference/checkout/objects/checkout-line-delete)
- [CheckoutLinesAdd (objects)](/api-reference/checkout/objects/checkout-lines-add)
- [CheckoutLinesDelete (objects)](/api-reference/checkout/objects/checkout-lines-delete)
- [CheckoutLinesUpdate (objects)](/api-reference/checkout/objects/checkout-lines-update)
- [CheckoutRemovePromoCode (objects)](/api-reference/checkout/objects/checkout-remove-promo-code)
- [CheckoutShippingAddressUpdate (objects)](/api-reference/checkout/objects/checkout-shipping-address-update)
- [CheckoutShippingMethodUpdate (objects)](/api-reference/checkout/objects/checkout-shipping-method-update)

---

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