set_cart_quantity
ActiveTool of Synchronity
Set a cart line's quantity (the server cart is the checkout source of truth, so this updates it live). Requires the item_id from the cart contents and the new absolute quantity. A quantity of 0 removes the line. Returns the updated cart card.
Parameters schema
{
"type": "object",
"required": [
"site_id",
"cart_id",
"item_id",
"quantity"
],
"properties": {
"cart_id": {
"type": "string",
"description": "Cart ID"
},
"item_id": {
"type": "string",
"description": "Line item ID from the cart (cart.items[].item_id)"
},
"site_id": {
"type": "string",
"description": "Registered site ID"
},
"quantity": {
"type": "integer",
"description": "New absolute quantity for the line (>= 0; 0 removes the line)"
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
Synchronity
https://github.com/themewireco/synchronity
2/7 registries