Update a voucher
Updates the description, discount amount, redemption limit, or expiry of an existing voucher.
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.
Parameters
string The ID of the voucher to update.
Request Body
application/jsonstring Short description about 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.
string A descriptive message regarding the result.