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

# Create a transaction intent

> Unlock personalized experiences that stand out in the marketplace

Use **`Transaction Intents`** to connect your transaction data to the Imprint rewards platform and take advantage of its full potential:

* **Dynamic Rewards Calculation:** set the amount of rewards earned on a transaction based on your internal calculation (e.g. item or category-level rewards rates, promotions, etc.), or simply share the order data and use the Imprint platform to configure your calculation logic;

* **Additional Offers and Benefits:** trigger additional rewards based on qualification criteria (e.g., certain types of purchases or behaviors);

* **Transaction Matching:** provide criteria for Imprint to search for related transactions (e.g., purchases at complementary businesses) and trigger rewards;

* **Transaction Enrichment:** provide transaction details (e.g., order lines, logos, images, travel dates, etc.) to display in the Imprint customer experience;

* *And more  ...*&#x20;

In just one or (at most) two API requests, you can provide your customers with a truly differentiated rewards experience.

<img src="https://mintcdn.com/imprint-b3c5d5af/I4GuH_Pw48YRP5iO/images/transaction-intent-1.png?fit=max&auto=format&n=I4GuH_Pw48YRP5iO&q=85&s=b3cb7eb7472ef0eb359a5fe8c744f0e5" alt="" width="2111" height="788" data-path="images/transaction-intent-1.png" />

### Step 1: Create transaction intent

Once the transaction has been completed on your platform, immediately make an API request to Imprint to create a corresponding Transaction Intent.

* **`POST`** request to [**`v2/transaction_intents`**](https://docs.imprint.co/api-reference/transaction-intents/create-a-transaction-intent) including several required fields (e.g., Currency, Amount, Customer ID) and the metadata object. *The metadata schema will be provided by your Imprint team depending on the above features selected and enabled for your program.*&#x20;

* Responds with Intent ID and Status. *If status equals `"REQUIRES_CONFIRMATION"` please proceed to Step 2 below.*

### Step 2: Confirm or cancel transaction intent (optional, depending on the program)

Depending on the above Imprint features enabled, partners with "multi-step" transactions may be required to provide an update with the final transaction outcome. If the transaction intent is updated to `CONFIRMED` status, Imprint will enable the loyalty and rewards experiences. Otherwise,`CANCELED` will result in no further action.&#x20;

* **`POST`** request to [**`/v2/transaction_intents/{intent_id}`**](https://docs.imprint.co/api-reference/transaction-intents/update-a-transaction-intent) including the final status and any other details that may have changed, e.g. amount, anything within the metadata object, etc.

* Responds with the latest status and all other details

### Step 3: List or retrieve transaction intents (optional)

Finally, there are two ways to read existing Transaction Intents.

**List Transaction Intents**

* **`GET`** request to [**`/v2/transaction_intents`**](https://docs.imprint.co/api-reference/transaction-intents/list-transaction-intents) including the Customer ID

* Responds with a paginated list of all Transaction Intents associated with the Customer ID

**Retrieve Transaction Intents**

* **`GET`** request to [**`/v2/transaction_intents/{intent_id}`**](https://docs.imprint.co/api-reference/transaction-intents/retrieve-a-transaction-intent)

* Responds with full detail of the Transaction Intent
