Get Athleta product
Automatically get Athleta product on athleta.gap.com. Get one product of the Athleta US store (athleta.gap.com) from its id or its product page link: the product id, name, brand, description and detail lines, rating and rating count, the fits (for example Regular, Tall, Petite) and size labels, every color with its id, name, price, regular price, stock status and image, and every size variant with its offerId (the sku), color, fit, size, price, regular price in US dollars and stock. Pass offerId and productId to Add a product to the Athleta cart. A product page can hold several colors that Athleta names differently: name is the name of the color the page shows (selectedColorId), and each color has its own title. An id or link that Athleta does not know fails with a message that says so.
Inputs
url optionalLink of an Athleta product page, for example https://athleta.gap.com/browse/product.do?pid=1190608032. Give productId or url.
productId optionalAthleta product id (for example "1190608"), color id (for example "1190608032") or sku (offerId), as returned by Search Athleta products or Get Athleta product. Give productId or url.
Output
url requiredname requiredcolors requiredvariants requiredproductId requiredselectedColorId requiredfits optionalbrand optionalrating optionaldetails optionalsizeLabels optionaldescription optionalreviewCount optionalFAQ
Remove a product from the Athleta cart
Remove lines from the Athleta US (athleta.gap.com) shopping bag of this browser and return the bag as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that size. Both come from List the items in the Athleta cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the estimated total before tax and shipping, and each line left with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.
Add a product to the Athleta cart
Add a size of an Athleta US (athleta.gap.com) product to the shopping bag of this browser, for shipping, and return the bag as the site holds it afterwards. Give the product id or link and the offerId of the size, both from Get Athleta product, and a quantity from 1 to 5. Returns the product id, offer id, name, the number of units added, and the bag: the number of units, the estimated total before tax and shipping, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Athleta can show units of one size on several lines, for example when an offer prices them differently. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. A product that Athleta does not know, a missing or unknown offerId, an out of stock size, or a quantity out of range fails with a message that says so, and adds nothing.
List the items in the Athleta cart
List the items in the Athleta US (athleta.gap.com) shopping bag of this browser, as the site holds it. For each line: its line id (to pass to Remove a product from the Athleta cart), product id, offer id (the sku), name, seller, quantity, unit price and line price in US dollars after the offers Athleta applies in the bag. Athleta can show units of one size on several lines, for example when an offer prices them differently. Also returns the number of units and the estimated total, before tax and shipping. The bag is the guest bag of the browser, so no sign-in is needed. An empty bag returns an empty list and a zero count.
