Find invoices
GET /v1/invoices lists invoices, 50 at a time. Filters are optional:
next_cursor isn’t null, send it back as cursor to get the next page.
Create and edit
If you already have the invoice as data, create it withPOST /v1/invoices instead of uploading a
file. Its lines must add up to its totals, otherwise nothing is created.
PATCH /v1/invoices/{id} changes only the fields you send. If you send line_items, send the whole
list: lines you leave out are removed. Editing doesn’t re-run the invoice’s checks.
Good to know
- Amounts are decimal strings such as
"1250.00", and rates are fractions:"0.25"means 25%. amounts.validonly says whether the lines add up to the totals. Whether the invoice follows your agreements is inalerts.- Duplicates. Watchdog keeps one copy of each invoice. Creating the same invoice again returns
409 conflict; uploading it again gives you the existing one back.