Summary
A grocery list becomes a filled cart.
Everything up to payment is here: find the product, add it, adjust it, and finish with a checkout URL you open yourself. The credentials come out of your own signed-in session, so it acts as you on the store.
What it is
A cart-building path into Rami Levy's online grocery store: search the catalogue, put items in, change quantities, take things out, and read back the checkout URL.
What you get
- Products matching a search, with name, price, image and product ID
- One or more items added to the cart at a store you name
- An item's quantity changed
- Items removed by sending back the list you want to keep
- The checkout page URL, exposed as a resource
Requirements
Npx, plus three values lifted from a signed-in session on the site — RAMI_LEVY_API_KEY, ECOM_TOKEN and COOKIE. The store is chosen per call by its identifier.
