CheckoutError Object
type CheckoutError {
field: String
message: String
code: CheckoutErrorCode!
variants: [ID!]
lines: [ID!]
addressType: AddressTypeEnum
promoCodeDetails: PromoCodeRejectionDetails
}
Fields
field
field · 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 · String
The error message.
code
code · CheckoutErrorCode!
The error code.
variants
variants · [ID!]
List of variant IDs which causes the error.
lines
lines · [ID!]
List of line Ids which cause the error.
addressType
addressType · AddressTypeEnum
A type of address that causes the error.
promoCodeDetails
promoCodeDetails · PromoCodeRejectionDetails
Details of the promo code that caused the error. Null when the error is not a promo code rejection.
Added in Saleor 3.23Used by
- CheckoutAddPromoCode (objects)
- CheckoutBillingAddressUpdate (objects)
- CheckoutComplete (objects)
- CheckoutCreate (objects)
- CheckoutCustomerAttach (objects)
- CheckoutCustomerDetach (objects)
- CheckoutCustomerNoteUpdate (objects)
- CheckoutDeliveryMethodUpdate (objects)
- CheckoutEmailUpdate (objects)
- CheckoutLanguageCodeUpdate (objects)
- CheckoutLineDelete (objects)
- CheckoutLinesAdd (objects)
- CheckoutLinesDelete (objects)
- CheckoutLinesUpdate (objects)
- CheckoutRemovePromoCode (objects)
- CheckoutShippingAddressUpdate (objects)
- CheckoutShippingMethodUpdate (objects)
Schema: Saleor 3.23.43. Download SDL.