Cart Error Code
Possible error codes that can be returned by .
Anchor to Valid valuesValid values
- Anchor to ADDRESS_FIELD_CONTAINS_EMOJISADDRESS_
FIELD_ CONTAINS_ EMOJIS The specified address field contains emojis.
- Anchor to ADDRESS_FIELD_CONTAINS_HTML_TAGSADDRESS_
FIELD_ CONTAINS_ HTML_ TAGS The specified address field contains HTML tags.
- Anchor to ADDRESS_FIELD_CONTAINS_URLADDRESS_
FIELD_ CONTAINS_ URL The specified address field contains a URL.
- Anchor to ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERNADDRESS_
FIELD_ DOES_ NOT_ MATCH_ EXPECTED_ PATTERN The specified address field does not match the expected pattern.
- Anchor to ADDRESS_FIELD_IS_REQUIREDADDRESS_
FIELD_ IS_ REQUIRED The specified address field is required.
- Anchor to ADDRESS_FIELD_IS_TOO_LONGADDRESS_
FIELD_ IS_ TOO_ LONG The specified address field is too long.
- Anchor to CART_TOO_LARGECART_
TOO_ LARGE The cart is too large to save.
- Anchor to INVALIDINVALID
The input value is invalid.
- Anchor to INVALID_COMPANY_LOCATIONINVALID_
COMPANY_ LOCATION Company location not found or not allowed.
- Anchor to INVALID_DELIVERY_ADDRESS_IDINVALID_
DELIVERY_ ADDRESS_ ID The delivery address was not found.
- Anchor to INVALID_DELIVERY_GROUPINVALID_
DELIVERY_ GROUP Delivery group was not found in cart.
- Anchor to INVALID_DELIVERY_OPTIONINVALID_
DELIVERY_ OPTION Delivery option was not valid.
- Anchor to INVALID_INCREMENTINVALID_
INCREMENT The quantity must be a multiple of the specified increment.
- Anchor to INVALID_MERCHANDISE_LINEINVALID_
MERCHANDISE_ LINE Merchandise line was not found in cart.
- Anchor to INVALID_METAFIELDSINVALID_
METAFIELDS The metafields were not valid.
- Anchor to INVALID_ZIP_CODE_FOR_COUNTRYINVALID_
ZIP_ CODE_ FOR_ COUNTRY The given zip code is invalid for the provided country.
- Anchor to INVALID_ZIP_CODE_FOR_PROVINCEINVALID_
ZIP_ CODE_ FOR_ PROVINCE The given zip code is invalid for the provided province.
- Anchor to LESS_THANLESS_
THAN The input value should be less than the maximum value allowed.
- Anchor to MAXIMUM_EXCEEDEDMAXIMUM_
EXCEEDED The quantity must be below the specified maximum for the item.
- Anchor to MINIMUM_NOT_METMINIMUM_
NOT_ MET The quantity must be above the specified minimum for the item.
- Anchor to MISSING_CUSTOMER_ACCESS_TOKENMISSING_
CUSTOMER_ ACCESS_ TOKEN The customer access token is required when setting a company location.
- Anchor to MISSING_DISCOUNT_CODEMISSING_
DISCOUNT_ CODE Missing discount code.
- Anchor to MISSING_NOTEMISSING_
NOTE Missing note.
- Anchor to NOTE_TOO_LONGNOTE_
TOO_ LONG The note length must be below the specified maximum.
- Anchor to ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTEDONLY_
ONE_ DELIVERY_ ADDRESS_ CAN_ BE_ SELECTED Only one delivery address can be selected.
- Anchor to PENDING_DELIVERY_GROUPSPENDING_
DELIVERY_ GROUPS The delivery group is in a pending state.
- Anchor to PROVINCE_NOT_FOUNDPROVINCE_
NOT_ FOUND The given province cannot be found.
- Anchor to SELLING_PLAN_NOT_APPLICABLESELLING_
PLAN_ NOT_ APPLICABLE Selling plan is not applicable.
- Anchor to SERVICE_UNAVAILABLESERVICE_
UNAVAILABLE An error occurred while saving the cart.
- Anchor to TOO_MANY_DELIVERY_ADDRESSESTOO_
MANY_ DELIVERY_ ADDRESSES Too many delivery addresses on Cart.
- Anchor to UNSPECIFIED_ADDRESS_ERRORUNSPECIFIED_
ADDRESS_ ERROR A general error occurred during address validation.
- Anchor to VALIDATION_CUSTOMVALIDATION_
CUSTOM Validation failed.
- Anchor to VARIANT_REQUIRES_SELLING_PLANVARIANT_
REQUIRES_ SELLING_ PLAN Variant can only be purchased with a selling plan.
- Anchor to ZIP_CODE_NOT_SUPPORTEDZIP_
CODE_ NOT_ SUPPORTED The given zip code is unsupported.
Anchor to FieldsFields
- •OBJECT
Represents an error that happens during execution of a cart mutation.