Cart

cart_set_quantity

Lower the quantity of a cart line or remove it.

View as Markdown

Use qty: 0 to remove a line.

TypeWrite: changes a cart or an order
Needs a cart the buyer approvedNo
Moves moneyNo
Tool description (what the assistant sees)
Lowers the quantity of one cart line or removes it (qty 0). For items sold by weight, weight_lb (or qty) sets the amount up or down, replacing the earlier amount. When the same item appears on several lines with different options, line_id selects one. Any change clears the buyer's approval of the cart. Nothing is reserved or charged.

#Parameters

NameTypeRequiredDescription
cart_iduuidYesThe cart.
product_iduuidYesThe item to change.
qtyintegerNoThe new quantity, 0 to 99. 0 removes the line.
weight_lbnumberNoFor items sold by weight: the new amount in pounds, in 0.25 lb steps. It replaces the earlier amount.
line_iduuidNoWhich line to change when the cart has more than one line of this product, for example two burgers with different options.