Bulk Voucher Codes
Administrative endpoints for bulk voucher codes — the individually generated, single-use codes that belong to a basket offer of type bulk_voucher_code. Typical integrations include distributing campaign codes to customers and redeeming or managing codes from external systems such as in-store checkout (POS) applications. The parent campaigns themselves are managed with the Basket Offers endpoints (/basket_offers/).
Core Capabilities
1. Code Listing & Filtering
Retrieve a paginated list of voucher codes, newest first.
Filter by the parent basket offer, code value, status, and assigned user — the filters behind the code list of the management panel (e.g.
?basket_offer=35763&status=active&limit=20&page=1).
2. Code Lifecycle Management
Add a single code manually and optionally assign it to a user.
Activate or deactivate a code by updating its
status(used codes are immutable).
3. Bulk Code Generation
Generate any number of random codes for a campaign from a prefix, alphabet, and length; generation runs asynchronously in the background.
Code Statuses
A voucher code shares the status vocabulary of basket offers.
active
The code can be redeemed. Newly created and generated codes always start in this status.
passive
The code is disabled and cannot be redeemed.
used
The code has been redeemed. A used code can no longer be updated.
revoked
The code has been withdrawn.
Dynamic Settings & Environment Variables
No dynamic settings (dj_dynamic_settings) are read by these endpoints: listing, creation, update, bulk generation, and the import/export flows are not influenced by any management-panel setting. Note that whether a code is redeemable on the storefront is governed by the parent basket offer (its status, dates, conditions) and by the promotion-application settings documented in the Basket Offers section — not by these administrative endpoints.
Environment variables: No environment variables affect these endpoints.
Last updated
Was this helpful?

