# 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.

Oct 16, 2026 · Improved

Small corrections to the invoice list and the invoice resource.

## What else changed

- **`sort_by=invoice_number`** sorts 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_date`** is present once a payment has been recorded and stays through later status changes (`RECTIFIED`, `VOIDED`). Before, the contract said it only appeared on `PAID` invoices.

## Endpoints

- `GET /v1/companies/{company_id}/invoices` — Numeric order for `invoice_number` and a stable tie-break

## Where to go next

- [List invoices](/invoices/listCompanyInvoices)

---

Full OpenAPI spec: https://docs.beel.es/api/openapi