Versions Compared

Key

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

...

Using the API endpoints should follow this pattern:

  • Call the Identify endpoint using either the Loyalty Code or the unique code generated when offers/rewards are pre-selected

  • Call the Transaction Validate endpoint to check that the contents of the basket is valid. The endpoint will return errors in multiple scenarios documented here: Loyalty API - Error List. For an optimal guest (in the case of kiosks) or operator (in the case of POS) experience, our recommendation is to call Transaction Validate every time the user changes the offers and/or rewards contained in the basket. If network latency is an issue, integrators have the option to call this endpoint only once prior to payment. If Transaction Validate does not return errors, the loyalty transaction is expected to succeed in the last step below.

  • If the guest has made changes to rewards in their basket, call the Transaction Update endpoint which will update the guest’s loyalty points balance.

  • Collect payment from the guest

  • Call the Transaction Update endpoint with a status of CLAIMED, which will close the loyalty transaction and permanently alter the guest's loyalty point balance.