sales_documentsreads only
Sales documents
Quotations, sales orders, invoices or delivery receipts, newest first: the number, the customer, the project, the status and the amount. `overdueOnly` and `expiredOnly` narrow to what needs chasing.
| Input | Type | Meaning | |
|---|---|---|---|
kind | quotation | sales_order | invoice | delivery_receipt | required | |
search | string | optional | |
customerPublicId | string | optional | |
projectPublicId | string | optional | |
status | array of string | optional | Status names, as the suite shows them. |
from | string | optional | |
to | string | optional | |
overdueOnly | boolean | optional, default false | Invoices only. |
expiredOnly | boolean | optional, default false | Quotations only. |
page | integer | optional, default 1 | |
pageSize | number | number | number | optional, default 20 |
Someone asks: “Which invoices are overdue?”
Input
{
"kind": "invoice",
"overdueOnly": true
}
What comes back
2 of 2 invoices:
INV-2026-0912-03 · Acme Steel Corporation · Acme Steel - Bridge retrofit · sent · PHP 248000.00 (balance 248000.00) · overdue · id 1f2a3b4c-5d6e-4f7a-8b8c-9d0e1f2a3b4c
INV-2026-0820-01 · Northwind Builders · — · sent · PHP 96500.00 (balance 46500.00) · overdue · id 2a3b4c5d-6e7f-4a8b-9c9d-0e1f2a3b4c5d
Structured content
Show the structured answer
{
"documents": [
{
"publicId": "1f2a3b4c-5d6e-4f7a-9b8c-0d1e2f3a4b5c",
"documentNo": "INV-2026-0912-03",
"customerName": "Acme Steel Corporation",
"projectName": "Acme Steel - Bridge retrofit",
"status": "sent",
"currency": "PHP",
"total": "248000.00",
"balance": "248000.00",
"overdue": true
}
],
"total": 2
}