Billing
Void an invoice
Void an invoice
Only invoices that have been alread issued can be voided.
Voiding an invoice will mark it as voided, the user can specify how to handle the voided line items.
post/api/v1/billing/invoices/{invoiceId}/void
Path parameters
invoiceIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"action": {
"percentage": 50,
"action": {
"nextInvoiceAt": "2023-01-01T01:01:01.001Z"
}
},
"overrides": [
{
"lineId": "01G65Z755AFWAKHE12NY0CQ9FH",
"action": {
"percentage": 50,
"action": {
"nextInvoiceAt": "2023-01-01T01:01:01.001Z"
}
}
}
]
}Response
The request has succeeded.