/shop/voucher-codesList VoucherCodes
Returns a paginated list of VoucherCodes. Use the query
parameters to narrow the result set by code substring, status,
amount, balance, creation date, site, voucher type, expiry window,
or fulfilment status. The result is ordered by created_at
descending so the newest voucher codes appear first.
This endpoint powers the voucher management screens in the Trybe
dashboard and any third-party integration that needs the same
view — for example a fulfilment provider polling for vouchers
with fulfillment_status=needs_dispatching.
Query parameters
The page to retrieve results from
The number of results to return per page
Filter the list of voucher codes to a single site.
Partial, case-insensitive substring match on the voucher redemption
code.Filter by voucher code status. Pass multiple statuses as a comma-separated list.
Filter by voucher amount. Supports comparison operators (
>1000,<5000,>=2500,<=2500,=1000) — values are in the smallest unit of the voucher's currency.Filter by remaining voucher balance. Supports the same comparison operators as
amount.Filter for voucher codes created on or after this date-time.
Filter to voucher codes whose
voucher_type_idmatches one of the given IDs.Filter to voucher codes whose
valid_to_dateis on or after this date.Filter to voucher codes whose
valid_to_dateis before this date.Filter by fulfilment status —
needs_dispatchingfor vouchers awaiting physical delivery,dispatchedonce sent,not_requiredfor digital deliveries.
Responses
- 200
Successfully retrieved
VoucherCodes. - 401
The user is unauthenticated
- 403
The authenticated user does not have permission.