AddToCartInput
Adds an item to the cart.
input AddToCartInput {
acceptAlternativeIfUnavailable: Boolean
expectedRevision: Int
notes: String
operationId: String
productId: ID!
quantity: Float!
uomId: ID
variantId: ID!
}
Fields
AddToCartInput.acceptAlternativeIfUnavailable ● Boolean scalar
Buyer consent: if this item becomes unavailable, may fulfillment ship a manually-picked substitute instead? Set once at cart time; carries forward automatically through Quote/SalesOrder/Invoice.
AddToCartInput.expectedRevision ● Int scalar
CAS guard: the cart revision this mutation was read against.
AddToCartInput.notes ● String scalar
A note on the line.
AddToCartInput.operationId ● String scalar
Client-minted id for replay-safety (same id+payload = no-op success).
AddToCartInput.productId ● ID! non-null scalar
The ID of the product.
AddToCartInput.quantity ● Float! non-null scalar
The quantity to add. Must be greater than zero.
AddToCartInput.uomId ● ID scalar
The ID of the unit of measure.
AddToCartInput.variantId ● ID! non-null scalar
The ID of the product variant.
Member Of
addToCart mutation