/api/v1.0/vouchers/{appId}

Path Params
string
required
Body Params
string
enum

Voucher Type

Allowed:
Promotion
object

Create Promotion

CreditNoteDetails
object

Credit note details

LumpDiscountDetails
object

Lump discount details

PercentDiscountDetails
object

Percent discount details

string

Voucher Code

string

Voucher Description (Visible on printout)

Stores
array of int32s

Stores that this voucher applies to

Stores
double

Valid on orders on or above

boolean

Takes priority

boolean

Is voucher enabled

boolean

Is voucher automatically applied

boolean

Include delivery fees

boolean

Valid for delivery orders

boolean

Valid for pickup orders

boolean

Valid for orders payed online

boolean

Valid for orders payed in cash

boolean

Valid only on the first order by the customer

boolean

Valid once per customer

boolean

Valid only once, by any customer (once used cannot be used again by any other customer)

boolean

Enables the voucher to be offered in the Voucher Discoverability feature

boolean

Force the discount to be applied which bypasses some menu restrictions

date-time

Voucher Starts On (Time in UTC)

date-time

Voucher Expires On (Time in UTC)

ChannelRestrictions
array of strings

Limit the channels this voucher can be used on

ChannelRestrictions
ValidityPeriods
array of objects

Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.

ValidityPeriods
string
enum

Voucher Subtype

Allowed:
int32 | null

Customer UserID

int32 | null

Maximum number of times the voucher can be redeemed (used)

Headers
string
enum
Defaults to application/json

Generated from available response content types

Responses

Language
Credentials
OAuth2
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json
Data
Message
StackTrace