Remove a product from the Petco cart
Automatically remove a product from the Petco cart on petco.com. Remove one line from the Petco (petco.com, US) cart of this browser and return the cart as the site holds it afterwards. Give the lineId of the line, from List the items in the Petco cart. Removes the line whatever its quantity. Returns removed (true when the line was removed, false when the cart has no such line, and then nothing is changed), the number of units, the subtotal before shipping and tax, and each line left with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account. Use a managed browser with country US.
Inputs
lineId requiredId of the line to remove, from List the items in the Petco cart.
Output
count requiredNumber of units in the cart.
lines requiredtotal requiredSubtotal in US dollars, before shipping and tax.
removed requiredTrue when lines were removed; false when no line matched.
FAQ
Add a product to the Petco cart
Add a Petco (petco.com, US) product to the cart of this browser for shipping, and return the cart as the site holds it afterwards. Give the product id or link and, for a product with several sizes, the offerId (item number) of one size (both from Get Petco product), with a quantity from 1 to 10. Without offerId, the size that the link or item number names, or the one the page selects, is added. Returns the product id, offer id, name, whether the cart now holds the offer, and the cart: the number of units, the subtotal before shipping and tax, and each line with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account: lines already in the cart stay and are listed too. Nothing is paid or ordered. An unknown product, an offerId of another product, an item that cannot be ordered, or a quantity above the units in stock fails with a message that says so, and adds nothing. Use a managed browser with country US.
List the items in the Petco cart
List the items in the Petco (petco.com, US) cart of this browser, as the site holds it: for each line its line id, product id, offer id (the item number of the size), name, seller (always Petco), quantity, unit price and line price in US dollars, plus the number of units and the subtotal before shipping and tax. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list, a zero count and a zero total. Use a managed browser with country US.
Get Petco product
Get one Petco (petco.com, US) product from its id, the item number of one size, or its product page link: product id, link, name, brand, rating out of 5, review count, description, category path, and each size or flavor the page offers with its offerId (item number), name, options (for example weight), price, price before the sale and Repeat Delivery price in US dollars, stock text, units in stock, whether it can be ordered, and whether same day delivery and store pickup are offered. selected_offer_id is the size the link or number names, or the one the page selects. Pass offerId to Add a product to the Petco cart. An id, number or link that Petco does not know fails with a message that says so. Use a managed browser in the US.
