Create a Voucherify campaign and bulk-generate voucher codes, then track async generation status
domain: docs.voucherify.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
POST /v1/campaigns with campaign_type (e.g. DISCOUNT_COUPONS or GIFT_VOUCHERS), a type of AUTO_UPDATE or STATIC, vouchers_count, and a voucher.code_config pattern.
Poll GET /v1/campaigns/{campaignId} (or the associated async action) until creation_status and vouchers_generation_status report DONE.
To grow an existing campaign later, POST /v1/campaigns/{campaignId}/vouchers with an additional count and optional code_config override.
For very large batches, monitor progress via GET /v1/async-actions/{asyncActionId} rather than assuming synchronous completion.
Distribute the generated codes to customers via the Publications API or your own export/delivery flow.
Known gotchas
Campaign and voucher code generation is asynchronous — don't try to read or modify a campaign before its generation status reports done.
As of recent API versions, standalone (non AUTO_UPDATE/STATIC) discount or gift campaigns can only be created from the dashboard, not the API.
Voucher codes must be globally unique across the project; colliding code patterns across campaigns will be rejected.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?