App Logo
alibaba.com

Remove from Alibaba.com cart

Automatically remove from Alibaba.com cart on alibaba.com. Remove a product from this browser's Alibaba.com cart by product id, whatever its quantity, as the cart page's remove button does: all its variants, or only one when a variant id is given. Returns removed and the cart as it is after the removal, in the shape List Alibaba.com cart items gives. A product or variant that is not in the cart is reported with removed false and the cart unchanged, not as a failure. The cart works without sign-in.

Inputs

product_id required

Alibaba.com product id of the cart line, as List Alibaba.com cart items gives it, or a product page link.

variant_id optional

Remove 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 required

Number of items in the cart after the removal.

lines required

The cart's lines after the removal, one per product variant.

total required

Item subtotal of the cart after the removal, in the display currency, shipping not included. 0 for an empty cart.

removed required

False when the product was not in the cart; nothing was changed then.

FAQ

Remove a product from this browser's Alibaba.com cart by product id, whatever its quantity, as the cart page's remove button does: all its variants, or only one when a variant id is given. Returns removed and the cart as it is after the removal, in the shape List Alibaba.com cart items gives. A product or variant that is not in the cart is reported with removed false and the cart unchanged, not as a failure. The cart works without sign-in.
Ask an AI agent connected to Reduck to run reduck/alibaba.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/alibaba.com/remove_from_cart
You do not need one. "Remove from Alibaba.com cart" drives the real alibaba.com pages in a browser, so it works whether or not alibaba.com offers an API for this.
Required: product_id. Optional: variant_id.
It returns count, lines, total, removed.
No. It only uses pages of alibaba.com that are reachable without signing in.
It makes changes on alibaba.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/alibaba.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/alibaba.com/remove_from_cart
It is one of Reduck's official scripts.

Start building not clicking