Add a product to the CVS cart
TL;DR
About
Use it to fill a CVS cart on the US site, from a product's id or link. A product with sizes, counts or colors needs the variant id from the get-product script. The site picks a store from the browser's location and offers only the quantity that store has. If the product, variant or quantity is not valid, nothing is added and an error says why. Nothing is paid or ordered. No account is needed.
Inputs
product requiredThe product id (from search-products) or the link of its page on cvs.com.
quantity optionalHow many to add. The site sells at most max_quantity of a variant per order (get-product), and no more than the store has.
Default: 1variantId optionalThe item id of the variant to add (a variant id from get-product). Needed when the product has more than one variant.
Output
name requiredadded requiredcount requiredThe number of items in the cart after the add, all quantities added.
lines requiredtotal requiredThe estimated cart total in US dollars, after deals and before taxes.
offerId requiredThe item id of the variant that was added.
productId required