clear_cartasks to confirmuntrusted content
Remove every line from the cart, then reprice with the server. Requires a set delivery location. Returns the emptied cart with its bill and keeps the same cart id, so later set_cart_items calls continue in that cart.…
get_cartuntrusted content
Ask the server to price the cart and return it: one line per product with handle, name, unit, quantity, unit price and line total, plus a bill of items total, delivery charge, additional charges, discount and the…
get_orderread-onlyuntrusted content
Read one grocery order by the token from a list_orders row. Requires a logged-in shopper. Returns its phase: live with the delivery status, the ETA text the tracking page shows and refreshAfterMs, its refresh cadence…
order: string
get_sessionread-onlyuntrusted content
Report the shopping session: delivery location, login, whether prices are indicative or payable, and the active cart id. Start here. Tier needs_location means the page sits on a default city, so search and cart tools…
list_ordersread-onlyuntrusted content
List the shopper's grocery orders, newest first; print, ambulance and Bistro orders never appear here, so redirect those questions without calling. Each carries a token, a phase of live, finished or unknown, status…
limit: integer?, cursor: string?
list_saved_addressesread-onlyuntrusted content
List the shopper's saved delivery addresses, each with an address_id, a short label such as Home or Work and the address text. Requires a logged-in shopper; otherwise this returns needs_login, so log the shopper in…
proceed_to_checkoutuntrusted content
Validate the grocery cart and move the browser to the checkout page. Requires the ordering tier: logged in, saved address committed, cart id. Only the grocery basket can check out here; redirect to the UI for print…
request_otpasks to confirmuntrusted content
Send a one-time login code by SMS to the shopper's own mobile number and open the page's login dialog showing that number. First of the two login steps; login unlocks saved addresses, payable prices and checkout.…
phone: string
search_productsread-onlyuntrusted content
Search the grocery catalogue for products in delivery range and return cards with a handle, name, brand, unit, price, MRP and an in-stock snapshot. Requires a set delivery location; otherwise this returns…
query: string, limit: integer?, sort: string?, max_price: number?, include_images: boolean?
set_cart_itemsuntrusted content
Set up to ten products to absolute quantities in one call, then reprice once with the server. Requires a set delivery location and handles from search_products; the first write creates the cart. Quantity 0 removes a…
lines: array
set_delivery_addressuntrusted content
Commit a saved address as the delivery location, then reprice the cart for its merchant. Requires login. Takes a label or an address_id from list_saved_addresses; a label shared by two addresses returns both. A…
submit_otpasks to confirmuntrusted content
Submit the one-time code the shopper read from their SMS to complete login. Available only after request_otp returned otp_sent in this page session. Returns logged_in with the new session when the code verifies, so…
code: string