Skip to main content

Overview

Creating an earn or redeem rewards transaction using the Benji Platform APIs involves the following simple steps:
  • Obtain a valid access token for the user creating the transaction by connecting the user to their loyalty reward partner by using the Benji Connect SDK
  • Get a short-lived transaction token from the Benji Platform by calling the authenticate transaction API. Note that this token is valid for 10 minutes once created.
  • Call the create transaction endpoint using the transaction token received from the previous step.
  • (Optional) Listen to any webhooks to receive updates on the transaction lifecycle
Check out the Benji drop-in components library for predefined components that encapsulate this flow on your checkout pages.