List bulk voucher codes
Returns a paginated list of bulk voucher codes, newest first (descending identifier).
The most commonly used filters are documented below. Beyond these, a filter is automatically available for most other fields of the code record: text fields match on a case-insensitive partial match, while the remaining fields match exactly.
Results are returned inside a pagination envelope that reports the total count and links to the next and previous pages.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by the identifier of the parent basket offer. This is the primary filter for listing the codes of a single campaign.
Filter by code value, case-insensitive partial match.
Filter by the identifier of the user the code is assigned to.
Filter by the email address of the user the code is assigned to.
Filter by the identifier of the order the code was redeemed on.
A page of bulk voucher codes.
A page of bulk voucher code results.
The total number of voucher codes matching the query.
The URL of the next page of results, when available.
The URL of the previous page of results, when available.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
GET /api/v1/remote/1/bulk_voucher_codes/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 1041,
"code": "SAMPLE9AB3FF76",
"basket_offer": 35763,
"status": "active",
"user": 20518,
"user_email": "customer@example.com"
}
]
}Last updated
Was this helpful?

