List bills

GET/api/v1/bills

Retrieve all bills for a business with cursor-based pagination. Can filter by vendor name (fuzzy search) or associated journal entry.

Operation ID: list_bills_api_v1_bills_get·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

vendor_searchstring

Fuzzy search bills by vendor name (uses PostgreSQL trigram matching)

journal_entry_idstring

Filter bills by associated journal entry UUID

payment_methodstring

Filter bills by payment method: 'Wire Transfer', 'ACH', 'Check', 'Credit Card'

vendor_idstring

Filter bills by vendor UUID

statusstring

Filter by bill status (e.g. draft, approved, received, paid, canceled)

searchstring

Search bills by bill number, description, or vendor name (case-insensitive partial match)

bill_numberstring

Filter bills by invoice/bill number (case-insensitive partial match)

due_date_fromstring

Filter bills with due date on or after this date (YYYY-MM-DD)

due_date_tostring

Filter bills with due date on or before this date (YYYY-MM-DD)

cursorstring

Cursor for pagination

limitinteger

Pagination limit

directionstringdefault: next

Pagination direction: 'next' or 'prev'

include_total_countbooleandefault: False

Whether to include total count (expensive - avoid if possible)

sort_bystring

Column name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.

descendingbooleandefault: True

Sort direction: true for descending (newest/largest first), false for ascending

Responses

200Successful Response

successboolean
messagestring
codestring
dataBillsListResponse

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject