200Successful Response
Schema: SuccessEnvelope_BillsListResponse_
successbooleanmessagestringcodestringdataBillsListResponse
/api/v1/billsRetrieve all bills for a business with cursor-based pagination. Can filter by vendor name (fuzzy search) or associated journal entry.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
idarray · stringdefault: []Filter bills by specific bill UUIDs (batch fetch — avoids N+1 single-bill requests)
vendor_searchstringFuzzy search bills by vendor name (uses PostgreSQL trigram matching)
journal_entry_idstringFilter bills by associated journal entry UUID
payment_methodstringFilter bills by payment method: 'Wire Transfer', 'ACH', 'Check', 'Credit Card'
vendor_idstringFilter bills by vendor UUID
statusstringFilter by bill status (e.g. draft, approved, received, paid, canceled)
searchstringSearch bills by bill number, description, or vendor name (case-insensitive partial match)
bill_numberstringFilter bills by invoice/bill number (case-insensitive partial match)
due_date_fromstringFilter bills with due date on or after this date (YYYY-MM-DD)
due_date_tostringFilter bills with due date on or before this date (YYYY-MM-DD)
on_holdbooleantrue: only bills with an active payment hold; false: only bills without one
cursorstringCursor for pagination
limitintegerPagination limit
directionstringdefault: nextPagination direction: 'next' or 'prev'
include_total_countbooleandefault: FalseWhether to include total count (expensive - avoid if possible)
sort_bystringColumn name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.
descendingbooleandefault: TrueSort direction: true for descending (newest/largest first), false for ascending
Schema: SuccessEnvelope_BillsListResponse_
successbooleanmessagestringcodestringdataBillsListResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.