Generate voucher codes in bulk
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The payload of a bulk code generation request.
Identifier of the target basket offer. The offer must be of type bulk_voucher_code and in active status.
The number of codes to generate.
The fixed prefix every generated code starts with.
The characters the random part of the codes is drawn from. Only uppercase English letters and digits are allowed; duplicate characters are collapsed.
ABCDEF0123456789The length of the random part appended to the prefix. prefix + length must not exceed 32 characters.
8The generation job was queued. The response body is empty.
No content
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/remote/1/bulk_voucher_codes/bulk_create/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"basket_offer": 1,
"count": 1,
"prefix": "text",
"alphabet": "ABCDEF0123456789",
"length": 8
}No content
Last updated
Was this helpful?

