payables:read
Query parameters
unpaid: every submitted bill not fully paid. That is a bill waiting for approval, approved and waiting for payment, scheduled, partly paid, or with a failed payment. Drafts, declined, blocked and void bills are left out. A bill with a payment on its way can be included, so check each bill’s paymentStatus. It combines with status: paymentStatus=unpaid&status=pending_approval lists the unpaid bills waiting for approval.Only bills whose answer to this field matches
customFieldValue. A UUID: the id of a bill-level (ROOT) DROPDOWN or MULTIPLE_CHOICE field from GET /v1/payable-custom-fields. Send it with customFieldValue.The option to match, as its
id, externalId or value, 1 to 255 characters. Send it with customFieldId.ISO 8601 time. Only bills whose
updatedAt is at or after it. Results then come oldest change first: by updatedAt, then by id. See Read only what changed.Related data to add to each bill. The only value is
items, which adds the line items. Send expand=items. Several values can be sent comma separated or as repeated parameters. See Include line items.Filter by a custom field
customFieldValue is looked up among the field’s current options: first as an option id, then as an externalId, then as a value. A bill matches when its answer chose that option. For a MULTIPLE_CHOICE field, a bill matches when any of its chosen options matches.
- Archived options match, so you can list the bills of a retired event.
- A
customFieldValuethat names no current option is compared with thevaluesaved on each answer, as given. That finds answers whose option has since been removed. When nothing matches, the list is empty. - Free-text answers never match. To find bills by an old text answer, read them and match on your side.
- Fields that were turned off or deleted can still be used.
- The filter combines with
statusandsearch.totalCountcounts the bills that match all of them.
Read only what changed
SendupdatedSince to get only the bills that changed since a time. A bill’s updatedAt moves whenever anything this API returns about it changes, its line items, custom field answers, category, tags and attachments included. See Timestamps.
- The bound is inclusive. A bill whose
updatedAtequalsupdatedSinceis returned. - Results are ordered by
updatedAt, thenid, oldest first. The usual order does not apply. - It combines with
status,searchand the custom field filter. - Start each poll a fixed safety window, such as 5 minutes, before your saved cursor. A change can commit shortly after its
updatedAt, and the overlap catches it. - A bill can appear on two polls, so upsert by
id. - Move the cursor to the largest
updatedAtyou have seen. Never set it to the current time.
Include line items
By default the list leaves out line items, and bills carry noitems key. Send expand=items to add each bill’s items, in the same shape as on GET /v1/payables/{payableId}. Each line carries its category and line-level customFields. This saves one call per bill when you sync.
attachments. Read them from GET /v1/payables/{payableId}.
Response
200 with { items, totalCount }. Each item is a payable. It includes the bill’s eventDate, vendorKey, category, tags, bill-level customFields, createdAt and updatedAt. It includes items (line items) only with expand=items. Read one bill with GET /v1/payables/{payableId} for its line items and its attachments.
paymentStatus is none, scheduled, processing, held, settled, failed or clawback. Accept values you do not know.