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

# Set up Leat rewards and vouchers

> Enable Leat rewards and vouchers for storekit and configure how discounts apply to customer orders.

Leat lets you offer discounts on the order subtotal, products, categories, or modifiers. Each reward or voucher you want customers to use through storekit needs the required storekit attributes.

<Note>
  This guide covers loyalty rewards and discount vouchers. For payments using a prepaid balance, see [Leat gift cards](/docs/guides/integrations/leat-gift-cards).
</Note>

## Prerequisites

Before you start, make sure:

* Leat is connected to the relevant storekit store.
* You have access to manage rewards and vouchers in Leat.
* The storekit attributes have been created in Leat.
* **Show rewards** is enabled in storekit if you want customers to redeem loyalty rewards.

If storekit has already connected your Leat account, start with the steps below.

<Note>
  If you cannot see the storekit attributes in Leat, contact Support to check the setup.
</Note>

## Set Up a Reward or Voucher

<Steps>
  <Step title="Open the reward or voucher">
    In Leat, create a reward or voucher, or open an existing one that you want customers to use through storekit.
  </Step>

  <Step title="Enable it for storekit">
    Select **Storekit enabled** in its attributes. Check that the reward or voucher itself is also active in Leat.
  </Step>

  <Step title="Choose the discount type">
    Choose the type that matches your offer:

    | Offer                                                | Discount type                      |
    | ---------------------------------------------------- | ---------------------------------- |
    | Percentage off the order subtotal                    | `basket_percentage`                |
    | Fixed amount off the order subtotal                  | `basket_amount`                    |
    | Percentage off one product, excluding paid modifiers | `product_percent_base_single`      |
    | Percentage off one product, including paid modifiers | `product_percent_modifiers_single` |

    For product discounts, decide whether the offer includes paid modifiers and whether it applies to one matching product or all matching products in the basket.

    See [Discount Type Reference](#discount-type-reference) for all available types.
  </Step>

  <Step title="Enter the discount value">
    Enter the percentage or fixed amount for the offer.

    A percentage discount of **100%** can be used for a free item or modifier. Basket discounts apply to the **order subtotal**.
  </Step>

  <Step title="Add matching IDs where required">
    For product or category discounts, add the relevant identifiers so storekit can match the discount to the intended menu entries.

    | Menu setup                        | Identifier                       |
    | --------------------------------- | -------------------------------- |
    | Deliverect                        | Deliverect ID                    |
    | Lightspeed                        | PLU                              |
    | Comtrex                           | PLU                              |
    | Menu managed directly in storekit | PLU created in the storekit menu |

    Contact Support if you are unsure which identifier to use.
  </Step>

  <Step title="Save and test">
    Save your changes, then test the reward or voucher before making it available to customers.
  </Step>
</Steps>

## Example: 50% Off the Order Subtotal

To make a 50% off voucher available through storekit:

1. Open the voucher in Leat and check that it is active.
2. Select **Storekit enabled**.
3. Set the discount type to `basket_percentage`.
4. Set the discount value to **50%**.
5. Save and test the voucher on your storekit ordering page.

<Note>
  A voucher must be active in Leat and enabled for storekit. It also needs the correct storekit discount attributes.
</Note>

## Test the Setup

Use a test customer linked to an email address you can access.

1. Add the points or voucher needed for your test in Leat.
2. Sign in to your storekit ordering page using the test customer's email address.
3. Add eligible items to the basket and redeem the reward or voucher.
4. Check that the discount applies to the expected items and amount.
5. Complete a test order and confirm that redemption works as expected.

For product offers, include paid modifiers and more than one matching product in your test to check how the selected discount behaves.

## Discount Type Reference

### Order Subtotal

| Discount type       | Effect                              |
| ------------------- | ----------------------------------- |
| `basket_percentage` | Percentage off the order subtotal   |
| `basket_amount`     | Fixed amount off the order subtotal |

### Products

The discount type determines the value, whether paid modifiers are included, and how many matching products receive the discount.

| Discount type                      | Value        | Paid modifiers | Applies to            |
| ---------------------------------- | ------------ | -------------- | --------------------- |
| `product_percent_base_single`      | Percentage   | Excluded       | One matching product  |
| `product_percent_base_multi`       | Percentage   | Excluded       | All matching products |
| `product_percent_modifiers_single` | Percentage   | Included       | One matching product  |
| `product_percent_modifiers_multi`  | Percentage   | Included       | All matching products |
| `product_amount_base_single`       | Fixed amount | Excluded       | One matching product  |
| `product_amount_base_multi`        | Fixed amount | Excluded       | All matching products |
| `product_amount_modifiers_single`  | Fixed amount | Included       | One matching product  |
| `product_amount_modifiers_multi`   | Fixed amount | Included       | All matching products |

### Categories and Modifiers

| Discount type                       | Effect                                                                      |
| ----------------------------------- | --------------------------------------------------------------------------- |
| `category_percent_base_single`      | Percentage off one matching product in a category, excluding paid modifiers |
| `category_percent_modifiers_single` | Percentage off one matching product in a category, including paid modifiers |
| `modifier_percent_base_single`      | Percentage off a specific modifier                                          |

## Troubleshooting

### The storekit attributes are missing

Contact Support to check that the required attributes have been created for your Leat connection.

### A reward or voucher is unavailable

Check that:

* It is active in Leat.
* **Storekit enabled** is selected.
* The discount type and value are configured.
* The customer has the points or voucher needed for redemption.
* For loyalty rewards, **Show rewards** is enabled in storekit and the customer is signed in.

### The discount does not apply as expected

Check the discount type, value, and matching IDs.

For product discounts, confirm whether the selected type includes paid modifiers and applies to one or all matching products.

If you need help, share your storekit store name, the reward or voucher name, and a screenshot of its attributes with Support.


## Related topics

- [Leat gift cards and vouchers](/docs/guides/integrations/leat-gift-cards.md)
- [5. Set Up Payments](/docs/getting-started/launch/set-up-payments.md)
- [Native Apps](/docs/app-studio/introduction.md)
- [Bulk Import Discounts](/docs/guides/discounts/bulk-import.md)
- [Auto-Applied Discounts](/docs/guides/discounts/auto-applied.md)
