Void an invoice

POST
/v1/invoices/{id}/void

Withdraws an open invoice. Its number is not used again, and its sales can go on another invoice. A paid invoice cannot be voided.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Path Parameters

id*string

Response Body

Success

application/json
  1. response

Success

id*string
number*string

Counts up from INV-0001 across your account, with no gaps

customerId*string
currency*string

The currency of every amount on the invoice

Match^[A-Z]{3}$
lines*array<>
subtotal*integer

The lines added up, before tax

Range0 <= value
taxBps*|

The tax rate in basis points. Null when there is no tax

tax*integer

subtotal times the tax rate, rounded

Range0 <= value
total*integer

What the customer owes: subtotal plus tax

Range0 <= value
status*string

open is waiting to be paid; paid is your record that it was; void was withdrawn

Value in"open""paid""void"
overdue*boolean

True for an open invoice whose due date has passed: from a day after dueAt, so an invoice due today is not overdue today

shared*boolean

True once POST /invoices/{id}/share has made a public link for this invoice, false again once revoked. The token itself is never in this response or the list

issuedAt*string
Formatdate-time
dueAt*string
Formatdate-time
paidAt*|null
voidedAt*|null
note*string|null
issuer*|

Your account as it billed this invoice, copied at the time it was issued. Null on invoices made before you set any billing details

curl -X POST "https://example.com/v1/invoices/inv_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/void"
{  "id": "inv_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "number": "INV-0001",  "customerId": "cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "currency": "USD",  "lines": [    {      "saleId": "sal_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "description": "northwind-telecom.com, 2 years",      "quantity": 2,      "unitPrice": 1439,      "total": 2878    }  ],  "subtotal": 2878,  "taxBps": 2000,  "tax": 576,  "total": 3454,  "status": "open",  "overdue": true,  "shared": true,  "issuedAt": "2026-10-07T11:04:31.000Z",  "dueAt": "2026-10-21T11:04:31.000Z",  "paidAt": null,  "voidedAt": null,  "note": "Thank you for your business",  "issuer": {    "name": "Northwind Telecom",    "legalName": null,    "addressLines": [],    "taxId": null,    "billingEmail": null  }}