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.

POST

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/json
string

ID of the invoice redeeming the voucher.

string

Unique code of the voucher.

Response Body

application/json
boolean

Indicates that the request was successful.

string

A descriptive message regarding the result.