Order in Chat
Customer completes the basic ordering journey through WhatsApp chat. Step 0 retrieves the existing cart. Steps 1 to 4 are API calls. Step 5 is the WhatsApp response with a button, and Step 6 opens the in-app browser (IAB) using the returned login.login_url.
login.login_url
.
Flow Detail
-
API: Retrieve the existing cart by phone and WhatsApp name. The response returns cart items, summary, and
login.login_url. - API: Retrieve the outlet listing.
- API: Select the outlet and create or update the customer cart context.
- API: Retrieve the selected outlet menu listing.
-
API: Add the selected item into cart. The response should include the cart summary and
login.login_url. - WhatsApp response: Send the order confirmation prompt with a button that opens the cart preview.
-
IAB: Customer taps the button and opens the in-app browser using
login.login_urlto preview the cart and continue checkout.