Admin Sales: Invoices
List invoices (datagrid parity)
Changed onPaginated invoices listing. Every invoice column + billing/shipping addresses are populated per row (line items are detail-only). Returns a { data, meta } envelope. Requires sales.invoices.view.
get/invoices
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pageinteger
Example:1
Page number (1-based).
per_pageinteger
Example:10
Items per page (default 10, max 50).
idstring
Example:12
Filter by invoice id (integer or comma-separated list).
customer_idinteger
Example:12
Only invoices of orders placed by this customer.
order_idstring
Example:00000
Partial order increment_id match.
state'pending' | 'pending_payment' | 'paid' | 'overdue'
Example:paid
Filter by invoice state.
base_grand_total_fromnumber
Minimum base grand total.
base_grand_total_tonumber
Example:1000
Maximum base grand total.
created_at_fromstring date
Example:2026-01-01
Created after (ISO date).
created_at_tostring date
Example:2026-12-31
Created before (ISO date).
sort'id' | 'increment_id' | 'order_id' | 'base_grand_total' | 'state' | 'created_at'
Example:id
Column to sort by.
order'asc' | 'desc'
Example:desc
Sort direction.
Response
AdminInvoice collection
Changes
- info
added the new optional
queryrequest parametercustomer_id
- info