Schema Documentation

AddToCartInput

Description

Input for the addToCart mutation.

Fields
Input FieldDescription
addons - [ProductAddonInput] Product addons
clientMutationId - String This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
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
variation - [ProductAttributeInput] Cart item product variation attributes
variationId - Int Cart item product variation database ID or global ID
Example
{"addons":[ProductAddonInput],"clientMutationId":"xyz789","extraData":"xyz789","productId":987,"quantity":987,"variation":[ProductAttributeInput],"variationId":123}