Accounts payable

List bills

The 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.

get/companies/{companyId}/data/bills

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

AccountingBills required— unresolved $ref

Changes

Changed in 1 of the 53 revisions of this API.3

    • the response property allOf[subschema #1]/results/items/allOf[subschema #1]/lineItems/items/accountRef became nullable for the status 200

      response-property-became-nullable

    • the response property allOf[subschema #1]/results/items/allOf[subschema #1]/lineItems/items/quantity became optional for the status 200

      response-property-became-optional

    • the response property allOf[subschema #1]/results/items/allOf[subschema #1]/lineItems/items/unitAmount became optional for the status 200

      response-property-became-optional