Update a voucher

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

voucher id or voucher code to update

Body Params

Voucher fields to update

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

400

Invalid voucher ID supplied

404

Voucher not found

405

Validation exception

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