Issue a new voucher to a customer

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

Voucher object that needs to be issued. A unique voucher_code (VCH-XXXXXXXXXX) is generated automatically when omitted.

integer
required

Person id of the customer the voucher is issued to

string
enum
Defaults to item

What the voucher may be applied to

Allowed:
integer

Required when restriction_type is "item"

integer

Optional specific variation of the item

integer

Required when restriction_type is "category"

integer

Required when restriction_type is "tag"

float

Monetary value of the voucher

string

Optional expiry date/time (any strtotime-parseable format). Null means no expiry.

string

Internal note

string

Optional. Auto-generated (VCH-XXXXXXXXXX) when omitted.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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