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.
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
Changed in 3 of the 51 revisions of this API.52
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ○
response property
allOf[subschema #1]/results/items/allOf[subschema #1]/lineItems/items/trackingCategoryRefsreactivatedresponse-property-reactivated
- ○
- ○
removed the
accountTransactionsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
balanceSheetenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
bankAccountsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
bankTransactionsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
banking-accountBalancesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
banking-accountsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
banking-transactionCategoriesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
banking-transactionsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
billCreditNotesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
billPaymentsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
billsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
cashFlowStatementenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
chartOfAccountsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-companyInfoenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-customersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-disputesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-locationsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-ordersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-paymentMethodsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-paymentsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-productCategoriesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-productsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-taxComponentsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
commerce-transactionsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
companyenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
creditNotesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
customersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
directCostsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
directIncomesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
invoicesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
itemReceiptsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
itemsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
journalEntriesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
journalsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
paymentMethodsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
paymentsenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
profitAndLossenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
purchaseOrdersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
suppliersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
taxRatesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
trackingCategoriesenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
transfersenum value from the//////response property for the response statusresponse-property-enum-value-removed
- ○