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

# Rewarding purchases

> Award Smile points for each retail purchase Subtotal collects.

In the Subtotal Dashboard, navigate to your [Smile integration](https://dashboard.subtotal.com/integrations/smile) and click `Add action`.

Choose `purchase.created` as the event, give the action a name, optionally restrict to specific retailers, set **Points per dollar**, and set a **Start date**. Subtotal will only reward purchases made on or after the start date — this controls how much historical purchase data gets sent to Smile when a customer first links their account.

<img src="https://mintcdn.com/typecastleinc/lLyv3OgTga4hu9ZN/images/integrations/smile/smile-purchase-action.png?fit=max&auto=format&n=lLyv3OgTga4hu9ZN&q=85&s=451680ac5a92fc9009b60eb22802e52f" alt="add purchase.created action in subtotal" className="rounded-lg border border-gray-100" width="576" height="552" data-path="images/integrations/smile/smile-purchase-action.png" />

Click `Create`. Subtotal will now award points in Smile for each qualifying purchase it collects, using the action name you set as the transaction description in the customer's Smile activity feed.

<Warning>
  Subtotal computes the point value for each purchase as `ceil(items_subtotal × points_per_dollar)` — where `items_subtotal` is the sum of `price × quantity` for each item Subtotal collects from the receipt — and posts the resulting integer to Smile's `/v1/points_transactions` endpoint. Taxes, shipping, and other fees are not included. One points transaction is posted per qualifying purchase.
</Warning>
