Skip to main content

UpdateCartItemInput

Changes an item in the cart.

input UpdateCartItemInput {
acceptAlternativeIfUnavailable: Boolean
cartItemId: ID!
expectedRevision: Int
notes: String
operationId: String
quantity: Float!
}

Fields​

UpdateCartItemInput.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.

UpdateCartItemInput.cartItemId ● ID! non-null scalar​

The ID of the cart item.

UpdateCartItemInput.expectedRevision ● Int scalar​

CAS guard: the cart revision this mutation was read against.

UpdateCartItemInput.notes ● String scalar​

A note on the line.

UpdateCartItemInput.operationId ● String scalar​

Client-minted id for replay-safety (same id+payload = no-op success).

UpdateCartItemInput.quantity ● Float! non-null scalar​

The new quantity. Must be greater than zero. Use the remove mutation to remove a line.

Member Of​

updateCartItem mutation