Sign in

Set line item quantity

documented

Sets the quantity for a given line item.

PATCH /api/v2/storefront/cart/set_quantityCartno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl 'https://demo.spreecommerce.org/api/v2/storefront/cart/set_quantity' \
  -X PATCH \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Accept: application/vnd.api+json' \
  -H 'X-Spree-Order-Token: {{SPREECOMMERCE_ORDER_TOKEN}}' \
  -d '{"line_item_id": "{{$line_item_id}}", "quantity": {{$quantity}}}' # Sources: Spree Storefront API docs for Set Line Item Quantity and authentication guidance (turn1search0; turn0search5)
Set line item quantity · Spree Commerce · OpenIntegrations