Filter invoices pending collection
pending_collection_only=true lists the invoices still waiting for payment, whatever their status: issued, sent, overdue or rectified.
The company invoice list accepts pending_collection_only. With true it returns only STANDARD, SIMPLIFIED or CORRECTIVE invoices in ISSUED, SENT, OVERDUE or RECTIFIED with no payment_date. A corrective invoice whose original is VOIDED and unpaid is left out, because nothing is owed or refunded for that pair; if the original was paid, the corrective is included.
What else changed
- It combines with the other filters, so a
statusortypeoutside that set returns an empty list. false, the default, does not filter. Existing requests are unchanged.
Endpoints
- GET/v1/companies/{company_id}/invoicesNew query parameter
pending_collection_only
Where to go next
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.
VeriFactu records accepted with errors get their own status: ACCEPTED_WITH_ERRORS
A record the AEAT accepted but flagged with errors now reads `ACCEPTED_WITH_ERRORS` instead of `ACCEPTED`, on the invoice, the filter and the webhook.