How to track which agent gave which discount code in Zendesk
By Jake Marsh · Updated
To track which agent gave which discount code in Zendesk, hand codes out through Vouchwell instead of a shared list. Every code an agent inserts is recorded with the agent, the ticket and the time. Admins open Vouchwell in the left navigation bar and use Handed out for the full list, newest first, or Find a code to look up one exact code. Each hand-out also tags the ticket, so views and reports can filter on it.
Why a shared list can't answer this
When codes live in a spreadsheet or a pinned note, the only record is whatever agents remember to strike out. You can't tell who sent a code, whether two people sent the same one, or which ticket it went to. Zendesk keeps the reply text on the ticket, but there is no built-in way to search every ticket for the one code a customer is asking about and see which agent sent it.
Steps
- Hand codes out only through Vouchwell. Agents click Insert code in the ticket sidebar, or apply a macro with a
[vouchwell:pool-key]placeholder and click Fill codes. Either way the code is reserved for that ticket and recorded. - Hide the raw code list from agents. In Admin Center > Objects and rules > Custom objects > Vouchwell code > Permissions, set Object list and search to Only admins. Agents then reach codes through the sidebar alone.
- Open Handed out. In Vouchwell's admin page, the Handed out tab lists every code given, with when, the code, the pool, the ticket and the agent.
- Filter it. Pick a pool, type a ticket number, or tick Only codes I handed out.
- Look up one code. On Find a code, type the exact code a customer quotes. You see its pool, status (available, used, expired or void), expiry, and who gave it, when and on which ticket, with a link that opens the ticket.
- Report on the tags. Every hand-out adds the pool's tag (by default
vouchwell_<key>, for examplevouchwell_late). Build a ticket view or an Explore report filtered on that tag to count tickets that got a code from each pool.
Set limits before codes go out
Tracking works best with rules that stop the obvious mistakes up front. Each pool has:
| Setting | What it does |
|---|---|
| Codes per ticket | Default 1. A second Insert code on the same ticket is stopped. 0 means no limit |
| Warn if the customer got one in the last N days | Before inserting, shows the agent the earlier ticket where this customer got a code from the pool. The agent can still go ahead |
| Who can hand out these codes | Groups (and custom roles on Enterprise). Nothing ticked means every agent; admins always can |
| Agents can hand out codes from this pool | Untick to pause the pool while you sort something out |
These checks run when an agent clicks Insert code. Macro placeholders are filled one code per placeholder, so a macro should hold only as many placeholders as you mean to send.
Example: a customer says their code doesn't work
A customer writes in with SORRY-9TX4. The admin types it into Find a code. It shows the code is used, went out on ticket #48213 two weeks ago from the Late delivery pool, given by the agent on the evening shift, and expired yesterday. The answer to the customer is now clear, and the admin can see whether the pool's expiry dates are too short.
When a code leaks or goes out by mistake
- An unused code leaked, for example it was pasted in a public reply. In Find a code, an admin clicks Void code, with an optional reason. No agent can hand it out after that, and Restore code undoes it.
- An agent inserted a code and discarded the reply. The agent clicks Release under Codes on this ticket within the release window (60 minutes by default). Admins can release a used code at any time from Find a code with Release code (never received).
What it costs
Vouchwell is $199 a month per Zendesk account, with any number of agents, pools and codes, billed monthly by Zendesk after a 14-day trial. It needs Zendesk Suite or Support Enterprise, the plans with custom objects. Setup details are in the Vouchwell documentation.
Vouchwell
Voucher and coupon codes from the ticket sidebar, one click each. Never the same code twice. $199 a month per Zendesk account.
Questions
Can I export the hand-out history?
No. Handed out shows every code given inside the app only, with filters for pool, ticket number and your own hand-outs. Vouchwell has no export or download.
Does the record show codes handed out on a new ticket?
Yes. A code inserted before the ticket has a number is linked to the ticket the first time an agent opens it after saving.
Can an agent delete the record of a code they gave?
Not through Vouchwell. Releasing a code within the window makes it available again and marks the hand-out released. Records shouldn't be edited by hand in Admin Center, because Vouchwell keeps each code and its hand-out in step.
Can I see how many codes each pool has left?
Yes. Agents see the count beside each pool in the sidebar, and the Pools tab shows stock for every pool with a banner when one is low.
Will the ticket tag stay if I uninstall?
Yes. Tags already on tickets stay, and Zendesk keeps the Vouchwell code records until you delete the object.
More Vouchwell guides
- How to load discount codes into Zendesk from a CSV file
- How to put a unique coupon code in a Zendesk macro
More Zendesk guides
- How to accept a Mirakl order and add tracking from Zendesk (Wharfwell for Mirakl marketplaces)
- How to find duplicate users in Zendesk (Twinmend)
- How to send an Onfido verification link from a Zendesk ticket (Whowell)
- How to hold a ShipStation order or fix its address from a Zendesk ticket (Twinewell for ShipStation)