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 BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATIONBUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION
Buyer cannot purchase for company location.
- Anchor to CART_TOO_LARGECART_TOO_LARGE
The cart is too large to save.
- Anchor to DELIVERY_ADDRESS_NOT_EDITABLEDELIVERY_ADDRESS_NOT_EDITABLE
Delivery addresses cannot be added nor changed.
- 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.