Possible error codes that can be returned by CartUserError.


value-addressfieldcontainsemojis
ADDRESS_FIELD_CONTAINS_EMOJIS

The specified address field contains emojis.

value-addressfieldcontainshtmltags
ADDRESS_FIELD_CONTAINS_HTML_TAGS

The specified address field contains HTML tags.

value-addressfieldcontainsurl
ADDRESS_FIELD_CONTAINS_URL

The specified address field contains a URL.

value-addressfielddoesnotmatchexpectedpattern
ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN

The specified address field does not match the expected pattern.

value-addressfieldisrequired
ADDRESS_FIELD_IS_REQUIRED

The specified address field is required.

value-addressfieldistoolong
ADDRESS_FIELD_IS_TOO_LONG

The specified address field is too long.

The input value is invalid.

value-invalidcompanylocation
INVALID_COMPANY_LOCATION

Company location not found or not allowed.

value-invaliddeliverygroup
INVALID_DELIVERY_GROUP

Delivery group was not found in cart.

value-invaliddeliveryoption
INVALID_DELIVERY_OPTION

Delivery option was not valid.

value-invalidincrement
INVALID_INCREMENT

The quantity must be a multiple of the specified increment.

value-invalidmerchandiseline
INVALID_MERCHANDISE_LINE

Merchandise line was not found in cart.

value-invalidmetafields
INVALID_METAFIELDS

The metafields were not valid.

value-invalidzipcodeforcountry
INVALID_ZIP_CODE_FOR_COUNTRY

The given zip code is invalid for the provided country.

value-invalidzipcodeforprovince
INVALID_ZIP_CODE_FOR_PROVINCE

The given zip code is invalid for the provided province.

The input value should be less than the maximum value allowed.

value-maximumexceeded
MAXIMUM_EXCEEDED

The quantity must be below the specified maximum for the item.

value-minimumnotmet
MINIMUM_NOT_MET

The quantity must be above the specified minimum for the item.

value-missingcustomeraccesstoken
MISSING_CUSTOMER_ACCESS_TOKEN

The customer access token is required when setting a company location.

value-missingdiscountcode
MISSING_DISCOUNT_CODE

Missing discount code.

value-missingnote
MISSING_NOTE

Missing note.

value-notetoolong
NOTE_TOO_LONG

The note length must be below the specified maximum.

value-provincenotfound
PROVINCE_NOT_FOUND

The given province cannot be found.

value-unspecifiedaddresserror
UNSPECIFIED_ADDRESS_ERROR

A general error occurred during address validation.

value-validationcustom
VALIDATION_CUSTOM

Validation failed.

value-zipcodenotsupported
ZIP_CODE_NOT_SUPPORTED

The given zip code is unsupported.


Was this section helpful?

The error code.


Was this section helpful?
Map
CartErrorCode

Fields from