Errors
invoice_not_found
404: No such invoice. The Org has no invoice or credit note with that number.
No such invoice. Answered with 404.
What it means
The Org has no invoice or credit note with that number. Invoices and credit notes of every Org share one series of numbers, so a number another Org holds is answered the same way as one nobody holds.
What to do
List the Org's invoices with GET /api/billing/invoices and use a number from there.
The body
{
"type": "https://tigby.eu/problems/invoice_not_found",
"title": "No such invoice",
"status": 404,
"detail": "…what was refused, naming this request's own values",
"code": "invoice_not_found",
"doc_url": "https://docs.tigby.eu/errors/invoice_not_found",
"agent_hint": "…the next step, for software"
}Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.