Contents:
Overview
Description: This endpoint is used to get the order selection connected with the OTP, to check if the OTP is identified in store.
Requirements: The Get OTP endpoint needs to be called every 2 seconds. If the response of the call contains “status”: “claimed”. Then a new OTP needs to be generated in the app by calling the Create OTP endpoint.
URL: /otp/{otp}
(otp
is the OTP needs to be used)
Method: GET
Example response:
{ "updatedAt": "string", "createdAt": "string", "loyaltyId": "string", // RBI Loyalty Id "expiry": 300, // Original setting: after how many seconds, the OTP will be expired, not real-time "order": [], "otp": "string", "restaurantId": "string", "status": "claimed", // claimed or pending, used to indicate if the OTP is identified in store "transactionId": "string", // RBI Loyalty Transaction Id "userDateTime": "string" // // user time in the format like "2024-01-01 12:12:12" }
Scenario 1: Guest scans code in Kiosk or POS
Steps | App | Kiosk | Loyalty API |
---|---|---|---|
Guest opens the app clicks on Loyalty Code Page | Guest sees OTP | n / a |
|
Guest scans OTP in Kiosk |
|
|
|
Guest closes success message in the app |
| n / a |
|
Guest completes order in the Kiosk and pays |
|
|
|
Scenario 2: Guest does not scan OTP and OTP expires
Steps | App | Kiosk | Loyalty API |
---|---|---|---|
Guest opens the app clicks on Loyalty Code Page | Guest sees OTP |
| |
Guest does not scan OTP and 5 minutes pass by |
|
|
|
Add Comment