> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withbenji.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Earn reward flow overview

> An overview of the earn reward flow on the Benji Platform.

## 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](/connect/introduction)
* **Get a short-lived transaction token** from the Benji Platform by calling the [authenticate transaction API](/api-reference/endpoint/transactions/authenticate). 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

<Tip>Check out the Benji drop-in components library for predefined components that encapsulate this flow on your checkout pages.</Tip>
