Help

Give each person their own discount code in a flow

A discount pool holds codes you created in your store. An email step that uses a pool gives each person a code of their own, once, and the email shows it with {{ event.discount_code }}. Sendsational does not create codes in your store: you make them there and add them here.

Last updated

Set it up

  1. Create a batch of single-use codes in your store.
  2. In Sendsational, open Flows > Time zone and discount codes.
  3. Under Discount codes, type a name under New pool, for example “Welcome 10%”, and press Make the pool.
  4. Paste your codes under Add codes, one per line and press Add codes. A code already in the pool is skipped. Codes can also be added with the API: POST /v1/discount_pools/{id}/codes, up to 10,000 a request; the pool’s id is shown beside it.
  5. In a flow, open an email step and choose the pool under Discount code.
  6. Set The code is good for this many days, and what to do When the pool has no codes left.
  7. In the template, put {{ event.discount_code }} where the code should appear.

When the pool runs out

  • Hold the email (the default): people wait at that step until codes arrive, then go on, longest-waiting first.
  • Skip it: people carry on without that email.

Each pool shows how many codes are left and how many were given out. Either way, the workspace’s owners get one email a day per pool saying it is empty and how many people are waiting. A code that would expire before the number of days you set is not handed out.

Questions

Can one person get two codes from the same email?

No. Each run of the flow gets one code per email step, even if the step is retried.

Does Sendsational check the code works in my store?

No. It hands out the codes you gave it. Use single-use codes so a shared code cannot be reused.

All help topics · API reference