Skip to main content
Scope: payables:read

Query parameters

integer
default:"1"
Page number, at least 1.
integer
default:"25"
Items per page, 1 to 100.
string
Document status: draft, pending_approval, approved, declined, blocked or void.
string
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.
Matches the bill number, public id or vendor name.
string
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.
string
The option to match, as its id, externalId or value, 1 to 255 characters. Send it with customFieldId.
string
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.
string[]
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 customFieldValue that names no current option is compared with the value saved 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 status and search. totalCount counts the bills that match all of them.

Read only what changed

Send updatedSince 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 updatedAt equals updatedSince is returned.
  • Results are ordered by updatedAt, then id, oldest first. The usual order does not apply.
  • It combines with status, search and 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 updatedAt you have seen. Never set it to the current time.
The full pattern, with webhooks, is in Sync bills and payments.

Include line items

By default the list leaves out line items, and bills carry no items 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.
The list never returns 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.

Errors