Schema Documentation

CartItemError

Description

Error that occurred when adding an item to the cart.

Fields
Field NameDescription
extraData - String JSON string representation of extra cart item data
productId - Int! Cart item product database ID or global ID
quantity - Int Cart item quantity
reasons - [String] Reason for error
type - CartErrorType! Type of error
variation - [ProductAttributeOutput] Cart item product variation attributes
variationId - Int Cart item product variation database ID or global ID
Example
{"extraData":"xyz789","productId":987,"quantity":123,"reasons":["abc123"],"type":"INVALID_CART_ITEM","variation":[ProductAttributeOutput],"variationId":987}