Get Old Navy product
Automatically get Old Navy product on oldnavy.gap.com. Get one product of the Old Navy US store (oldnavy.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 Old Navy cart. A product page can hold several colors that Old Navy 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 Old Navy does not know fails with a message that says so.
Inputs
url optionalLink of an Old Navy product page, for example https://oldnavy.gap.com/browse/product.do?pid=788099002. Give productId or url.
productId optionalOld Navy product id (for example "788099"), color id (for example "788099002") or sku (offerId), as returned by Search Old Navy products or Get Old Navy 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 Old Navy cart
Remove lines from the Old Navy US (oldnavy.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 Old Navy 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 Old Navy cart
Add a size of an Old Navy US (oldnavy.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 Old Navy 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. Old Navy 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 Old Navy 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 Old Navy cart
List the items in the Old Navy US (oldnavy.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 Old Navy cart), product id, offer id (the sku), name, seller, quantity, unit price and line price in US dollars after the offers Old Navy applies in the bag. Old Navy 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.
