# Using Vouchers

You can add a voucher pool to any of your campaign messages, using the **#VoucherPool** Helper Function. To avoid writing code, you can copy the function directly from CrossEngage. The **#VoucherPool** Helper Function has the following syntax:

```jsx
{{#voucherPool '{"name": [Voucher pool name]}'}}
   {{[Voucher pool attribute]}} 
{{/voucherPool}}
```

### Add Vouchers to Messages

Instead of writing a Handlebar expression from scratch, it is possible to obtain the relevant expressions from within the CrossEngage platform.

* Go to **More -> Vouchers**.
* Click on the Voucher Pool you wish to use.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FPcy5U9vjYC0ApWkJS2ex%2FVouchers_Details_006.png?alt=media&#x26;token=344b0c84-3f38-43c2-b195-9bc09b56f188" alt=""><figcaption><p>View and edit Voucher Pools</p></figcaption></figure>

* On the right side of the page, you can find Voucher Metadata. Click on the Copy button for **Code** in the Metadata. This will copy the relevant Helper Function.
* Paste this code in your message / template where you wish to display the Voucher Code.
* Similarly, you can also copy additional information , such as the Terms and Conditions of the Voucher, Validity or Discount Value.

{% hint style="info" %}
CrossEngage will automatically remove any Voucher Codes already spent from the Voucher Pool, to ensure it is not sent again to a customer.
{% endhint %}

For more details on adding Vouchers, please go to [Voucher Helper Function](https://documentation.crossengage.io/data-and-engagement-platform/messages/personalization/misc.-helper-functions/voucher-helper-function).
