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

# Export coupons to Braze

> Use Braze discount code snippet to share Voucherify coupons

Export codes from Voucherify, import them to Braze, and add an email code snippet to pull codes from the promotion list.

<Tip>
  Use this scenario when you have a large number of Voucherify codes that you want to share with your customers.
</Tip>

<Info>
  <Badge color="gray">Prerequisite: Code campaign</Badge>

  Prepare a code campaign first to distribute them with Braze:

  * [Discount coupons](/build/create-discount-coupons)
  * [Gift cards](/build/create-gift-cards)
  * [Loyalty cards](/build/create-loyalty-campaign)
  * [Referral codes](/build/create-referral-campaign)
</Info>

<Steps>
  <Step title="Export unique codes from Voucherify Campaign">
    In Voucherify, go to **Campaigns** and select the campaign that will be the source of codes to export:

    1. Click the three-dot menu to **Export to CSV**.
    2. Select only the **Code** field to be exported.
    3. Wait for the export to finish.
    4. Edit the CSV file and remove the name of the column to leave the list of codes only.
  </Step>

  <Step title="Create a promotion code list in Braze">
    In Braze, go to **Data Settings** > **Promotion Codes**, then select **Create Promotion Code List**.

    You can use the Voucherify campaign name to name the list and ensure data consistency.

    Add a **Code snippet name**, for example `VoucherifyPromoCodes26`, that refers to the codes from this list. When Braze sends a message, it replaces the snippet with a unique code from the list.

    <Note>
      You can set attributes like **List Expiration** and **Threshold Alerts**. Voucherify manages its own expiration logic for codes regardless of these list settings.
    </Note>
  </Step>

  <Step title="Upload the CSV file with promotion codes">
    Upload the CSV file with Voucherify codes.

    Confirm that the list only contains codes (and not column header) to **Start Upload**.

    When the import is done, click **Save List** to confirm the list details.

    <Note>
      Large files take several minutes to import. You can leave the page while the import is in progress.
    </Note>
  </Step>

  <Step title="Use code snippet in Braze campaign">
    To use codes from the list in a Braze campaign, **Copy Snippet** and add it to the email body.

    Paste the code snippet to your Braze message to display a code from the list.

    Sample code snippet:

    ```liquid theme={null}

    {% promotion('VoucherifyPromoCodes26') %}

    ```

    <Warning>
      Once the message with code is sent, the same code won't be used again.
    </Warning>
  </Step>
</Steps>

<Check>
  Your Braze audience starts receiving Voucherify codes.
</Check>

<Info>
  If you need help on any of the steps above, visit the [Promo codes user guide](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/promotion_codes) in Braze documentation.
</Info>
