Sorting by invoice number is numeric, and payment_date survives a correction
sort_by=invoice_number orders by series and then by number (F-9 before F-10), ties are broken the same way, and payment_date stays after rectifying or voiding.
ChangelogImproved
Small corrections to the invoice list and the invoice resource.
What else changed
sort_by=invoice_numbersorts by series code and then by the number within the series, compared numerically. Ties on any sort field are broken by series code, then number, then id, in the requested direction, so pages are stable.payment_dateis present once a payment has been recorded and stays through later status changes (RECTIFIED,VOIDED). Before, the contract said it only appeared onPAIDinvoices.
Endpoints
- GET/v1/companies/{company_id}/invoicesNumeric order for
invoice_numberand a stable tie-break
Where to go next
The invoice list date range uses the operation date when there is one
`date_from` and `date_to` on the invoice list now match the operation date when the invoice has one, and the issue date otherwise.
Unpaid invoices past their due date now move to OVERDUE
A daily process now sets `status: OVERDUE` on unpaid invoices past their `due_date`, so `status=SENT` no longer lists them. No webhook is sent.