alibaba.com
Remove from Alibaba.com cart
Inputs
product_id requiredAlibaba.com product id of the cart line, as List Alibaba.com cart items gives it, or a product page link.
variant_id optionalRemove only this variant of the product (the offerId of List Alibaba.com cart items). Without it, every variant of the product is removed, whatever its quantity.
Output
count requiredNumber of items in the cart after the removal.
lines requiredThe cart's lines after the removal, one per product variant.
total requiredItem subtotal of the cart after the removal, in the display currency, shipping not included. 0 for an empty cart.
removed requiredFalse when the product was not in the cart; nothing was changed then.
