Skip to navigation

Create a voucher

Create a code in one of your voucher groups. The code is unique among your vouchers.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
codestringRequiredformat: "^[A-Za-z0-9_-]+$"3-64 characters
voucher_group_idintegerRequired>=1
max_usersinteger or nullOptional>=1
expires_atdatetime or nullOptional

Response

The created object.
idinteger
codestring
voucher_group_idinteger
created_atdatetime
updated_atdatetime
max_usersinteger or nullOptional
expires_atdatetime or nullOptional

Errors

401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error