Cart Warning Code
The code for the cart warning.
Anchor to Valid valuesValid values
- DISCOUNT_CODE_NOT_HONOURED
- DISCOUNT_CURRENTLY_INACTIVE
- DISCOUNT_CUSTOMER_NOT_ELIGIBLE
- DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHED
- DISCOUNT_ELIGIBLE_CUSTOMER_MISSING
- DISCOUNT_INCOMPATIBLE_PURCHASE_TYPE
- DISCOUNT_NO_ENTITLED_LINE_ITEMS
- DISCOUNT_NO_ENTITLED_SHIPPING_LINES
- DISCOUNT_NOT_FOUND
- DISCOUNT_PURCHASE_NOT_IN_RANGE
- DISCOUNT_QUANTITY_NOT_IN_RANGE
- DISCOUNT_USAGE_LIMIT_REACHED
- DUPLICATE_DELIVERY_ADDRESS
- MERCHANDISE_NOT_ENOUGH_STOCK
- MERCHANDISE_OUT_OF_STOCK
- MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATION
- PAYMENTS_GIFT_CARDS_UNAVAILABLE
- Anchor to DISCOUNT_CODE_NOT_HONOUREDDISCOUNT_
CODE_ NOT_ HONOURED The discount code cannot be honored.
- Anchor to DISCOUNT_CURRENTLY_INACTIVEDISCOUNT_
CURRENTLY_ INACTIVE The discount is currently inactive.
- Anchor to DISCOUNT_CUSTOMER_NOT_ELIGIBLEDISCOUNT_
CUSTOMER_ NOT_ ELIGIBLE The customer is not eligible for this discount.
- Anchor to DISCOUNT_CUSTOMER_USAGE_LIMIT_REACHEDDISCOUNT_
CUSTOMER_ USAGE_ LIMIT_ REACHED The customer's discount usage limit has been reached.
- Anchor to DISCOUNT_ELIGIBLE_CUSTOMER_MISSINGDISCOUNT_
ELIGIBLE_ CUSTOMER_ MISSING An eligible customer is missing for this discount.
- Anchor to DISCOUNT_INCOMPATIBLE_PURCHASE_TYPEDISCOUNT_
INCOMPATIBLE_ PURCHASE_ TYPE The purchase type is incompatible with this discount.
- Anchor to DISCOUNT_NO_ENTITLED_LINE_ITEMSDISCOUNT_
NO_ ENTITLED_ LINE_ ITEMS There are no entitled line items for this discount.
- Anchor to DISCOUNT_NO_ENTITLED_SHIPPING_LINESDISCOUNT_
NO_ ENTITLED_ SHIPPING_ LINES There are no entitled shipping lines for this discount.
- Anchor to DISCOUNT_NOT_FOUNDDISCOUNT_
NOT_ FOUND The discount was not found.
- Anchor to DISCOUNT_PURCHASE_NOT_IN_RANGEDISCOUNT_
PURCHASE_ NOT_ IN_ RANGE The purchase is not in range for this discount.
- Anchor to DISCOUNT_QUANTITY_NOT_IN_RANGEDISCOUNT_
QUANTITY_ NOT_ IN_ RANGE The quantity is not in range for this discount.
- Anchor to DISCOUNT_USAGE_LIMIT_REACHEDDISCOUNT_
USAGE_ LIMIT_ REACHED The discount usage limit has been reached.
- Anchor to DUPLICATE_DELIVERY_ADDRESSDUPLICATE_
DELIVERY_ ADDRESS A delivery address with the same details already exists on this cart.
- Anchor to MERCHANDISE_NOT_ENOUGH_STOCKMERCHANDISE_
NOT_ ENOUGH_ STOCK The merchandise does not have enough stock.
- Anchor to MERCHANDISE_OUT_OF_STOCKMERCHANDISE_
OUT_ OF_ STOCK The merchandise is out of stock.
- Anchor to MERCHANDISE_SELLING_PLAN_NOT_APPLICABLE_ON_COMPANY_LOCATIONMERCHANDISE_
SELLING_ PLAN_ NOT_ APPLICABLE_ ON_ COMPANY_ LOCATION Only one-time purchase is available for B2B orders.
- Anchor to PAYMENTS_GIFT_CARDS_UNAVAILABLEPAYMENTS_
GIFT_ CARDS_ UNAVAILABLE Gift cards are not available as a payment method.
Anchor to FieldsFields
- •OBJECT
A non-blocking issue that occurred during a cart mutation. Unlike errors, warnings don't prevent the mutation from completing but indicate potential problems that may affect the buyer's experience.
Each warning includes a code identifying the issue type, a human-readable message, and a target ID pointing to the affected resource.