Accounts receivable
List invoices
The List invoices endpoint returns a list of invoices for a given company's connection.
Invoices are itemized records of goods sold or services provided to a customer.
Before using this endpoint, you must have retrieved data for the company.
Useful queries
- Outstanding invoices - query = amountDue > 0
- Invoices due after a certain date: query = dueDate > 2021-01-28
Tips and traps
To access the paymentAllocations property, ensure that the payments data type is queued and cached in Codat before retrieving invoices from Codat's cache.
get/companies/{companyId}/data/invoices
Query parameters
pageinteger
Example:1
Page number. Read more.
pageSizeinteger
Example:100
Number of records to return in a page. Read more.
querystring
Codat query string. Read more.
orderBystring
Example:-modifiedDate
Field to order results by. Read more.
Response
Success
AccountingInvoices required— unresolved $ref