Skip to content
v0.3

cart.update_line

Set a cart line quantity (>= 1; use remove_line to delete). Does NOT reserve stock.

  • Scope: public
  • System: no
  • Reachable from: an ANONYMOUS face — no credential, and never /v1/commands/*. Which path serves it is not derivable from the registry; see the anonymous faces.
  • Events: none — The cart is session state read no-store; durable history begins at the order.
{
"properties": {
"cart_id": {
"minLength": 1,
"type": "string"
},
"line_id": {
"minLength": 1,
"type": "string"
},
"qty": {
"maximum": 999,
"minimum": 1,
"type": "integer"
}
},
"required": [
"cart_id",
"line_id",
"qty"
],
"type": "object"
}
{
"additionalProperties": false,
"properties": {
"line_id": {
"type": "string"
},
"qty": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
}
},
"required": [
"line_id",
"qty"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)