Purchase Invoices
Get expense stats
Aggregated KPIs for your expenses: total count and amount, counts per status, pending and overdue totals, and amounts by supplier. Returned as { "data": PurchaseInvoiceStats }.
get/companies/{company}/purchase-invoices/stats
Request
- Base URL: https://api.factuarea.com/v1
- URL: https://api.factuarea.com/v1/companies/{company}/purchase-invoices/stats
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Path parameters
companystring uuid required
Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).
Headers
Factuarea-Versionstring date
Example:2026-06-01
Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.
Response
Example response
{
"data": {
"object": "purchase_invoice_stats",
"total_invoices": 12,
"by_status": {
"draft": 2,
"pending": 5,
"paid": 5,
"cancelled": 0,
"overdue": 2
},
"pending": 5,
"draft": 2,
"paid": 5,
"overdue": 2,
"total_amount": "5558.36",
"pending_amount": "2506.35",
"paid_amount": "2944.32"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.