List invoices
Changed onThe 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.
Request
- Base URLhttps://api.codat.io
- AuthAPI key in header Authorization
Query parameters
Page number. Read more.
Number of records to return in a page. Read more.
Codat query string. Read more.
Field to order results by. Read more.
Response
Success
Example response
{
"pageNumber": 1,
"pageSize": 10,
"totalResults": 1,
"_links": {
"self": {
"href": "/companies/{id}/data/{dataType}"
},
"current": {
"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"
}
}
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
response property
allOf[subschema #1]/results/items/allOf[subschema #1]/lineItems/items/trackingCategoryRefsreactivated
- info