Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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"
}
  • No labels