Creates a voucher

Creates a single unredeemed voucher. The voucher code is generated by the server and returned in the response.
quantity is ignored by this endpoint; use POST /v1/voucher/bulk to create several vouchers at once.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid

The ID of the voucher. Generated if not provided on create. On update it must match the path ID if provided.

uuid

Restricts redemption to devices assigned to this location. If omitted, the voucher can be redeemed at any location.

priceBandIds
array of uuids

The price bands the voucher can be redeemed against. A voucher can only be redeemed for a product whose price band is in this list.

priceBandIds
date-time

The date and time the voucher expires. If omitted, the voucher does not expire.

integer
≥ 1

The number of vouchers to create. Required by POST /v1/voucher/bulk and ignored by other endpoints.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json