Get bill metrics

GET /api/v1/bills/metrics

Retrieve aggregated bill metrics for the business: total due and total balance due across all received and partially paid bills.

Operation ID: get_bill_metrics_api_v1_bills_metrics_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.

Responses

200 Successful Response

total_due integer required

Sum of the amount for all bills in 'received' or 'partially_paid' status (in cents).

total_balance_due integer required

Sum of (amount - total_paid) for all bills in 'received' or 'partially_paid' status (in cents).

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object