Contents
Introduction
RBI’s Orders API is designed to allow guests to place orders using RBI mobile apps. Guests select the items they want to order via the app, and the RBI platform communicates with the restaurant’s POS system to calculate the basket price and place the order.
This document explains how the integration works between RBI systems, the POS and optional payload translation services.
Calculate basket price
Direct integration
When a guest loads the checkout page, the RBI mobile app communicates with the RBI platform to request the basket price by indicating the full basket contents. In turn, the RBI platform sends the full basket contents to the POS using the Price Order Webhook.
The POS must have previously developed the ability to accept calls from the Price Order Webhook
, and respond with a call to the Price Webhook Callback (using the callbackUrl
parameter sent with the original request).
With a translation service
Calls to the Price Order Webhook
send the full basket contents under the cart
request parameter. This parameter has a standard format, which must be translated to the format that each POS expects to receive. Typically this is accomplished with a service such as Khumbu. In case a translation service is used, communication between systems happens as follows:
Place order
Work in progress