Invoices
Create, find and download invoices, change their status and read their payments.
List invoices
Paginated list of invoices issued by the authenticated company. `partnerCompanyId` narrows the list to invoices with that partner (never widens). With `counterpartyCompanyId` and/or `direction` the base also includes invoices received as a COMPANY recipient (read-only), then narrows to that counterparty / direction.
Create invoice
Create a new invoice
Get invoice by ID
Return a single invoice by ID with related entities (service, issuer company, line items).
Search invoices
Search invoices issued by the authenticated company using structured filters (status, recipient, service, date/amount ranges, payments, overdue) with pagination.
Download invoice PDF
Generate and download the invoice as a PDF file. Returns the PDF binary with Content-Disposition attachment.
Update invoice status
Update the status of a single invoice.
List invoice payments
List payments that have been recorded against a given invoice.
List billing documents by service record
List all billing documents (estimates and invoices) associated with a particular service record, with optional status and date range filters.