List bills
Changed onThe List bills endpoint returns a list of bills for a given company's connection.
Bills are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
Before using this endpoint, you must have retrieved data for the company.
Tips and traps
To access the paymentAllocations property, ensure that the billPayments data type is queued and cached in Codat before retrieving bills 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
- breaking
the response property
//////became nullable for the status - breaking
the response property
//////became optional for the status - breaking
the response property
//////became optional for the status
- breaking
- warning
added the new
billsenum value to the////////response property for the response status
- warning