Apply a voucher
Applies a voucher code to an open invoice, calculating and recording the discount. A voucher can only be applied while the invoice is unpaid.
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 ID of the invoice redeeming the voucher.
string Unique code of the voucher.
Response Body
application/jsonboolean Indicates that the request was successful.
string A descriptive message regarding the result.