Create a voucher
Creates a new discount voucher. Once created, share the code with customers to apply at checkout.
Headers
string The Bearer token for authentication.
string The user agent of the request. Must contain at least two identifiers separated by a space.
string The content type of the request.
Request Body
application/jsonstring Short description about the voucher.
string Unique code that will be used to redeem the voucher.
float Discount amount.
number Max number of redeems.
string Expiration date in relative time. (e.g. 'In 3 days')
Response Body
application/jsonboolean Indicates that the request was successful.
object The data of the newly created resource.
string The ID of the newly created resource.