Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Requirements: The Get OTP endpoint needs to be called every 2 seconds. If the response of the call contains “status”: “claimed” "status": "claimed". Then a new OTP needs to be generated in the app by calling the Create OTP endpoint. Airtouch will make the above API calls when QR code is opened in the App and Homeria will make the calls when the page is opened in the Web.

URL: /otp/{otp} (otp is the OTP needs to be used)

...

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 sees success message in the app

Image Added
  • Guest sees a success message and any pre-selected rewards in Kiosk

  • Airtouch polls Get OTP endpoint every 2 seconds and Get OTP endpoint returns status: claimed

  • Airtouch shows success message in the app

  • Before status is “claimed“ the response will always come back as “pending“, in which case there should be no changes to current OTP.

Guest closes success message in the app

  • Guest sees a new OTP in the app

n / a

Guest completes order in the Kiosk and pays

  • Loyalty point balance is update with latest order

  • Guest pays in Kiosk and gets receipt

  • Call Update endpoint with status of “Claimed”

...