List billable calls
GET/v1/businesses/billable-calls
Lists billable call counts for your businesses over the given date
range, one entry per business, bucketed by granularity. Supports
sorting and paging.
Lists businesses that have completed verification, including ones
with no billable calls in the range and ones shut down since, for the
ranges in which they belonged to you. A business that belonged to you
for only part of the range is listed with the calls of those days.
Businesses still UNDER_REVIEW are not included; you can query them
individually by businessId or externalId.
A page past the end returns 200 with an empty list and unchanged
paging totals.
Query Parameters
Start of the date range (inclusive), as YYYY-MM-DD. Must be on or
before endDate. endDate may be at most startDate plus 15 months,
with the day clamped to the end of the month (2026-01-31 → 2027-04-30).
2026-05-01End of the date range (inclusive), as YYYY-MM-DD. Must be on or after
startDate. endDate may be at most startDate plus 15 months, with
the day clamped to the end of the month (2026-01-31 → 2027-04-30).
2026-05-31How to bucket the returned series. Defaults to total (no series,
just the total for the range).
Possible values: [total, day, week, month]
totalField to sort the business list by. legalName sorts alphabetically,
ignoring case; total sorts by the billable calls for the range. Ties
are broken by businessId, ascending regardless of sortDirection.
Possible values: [legalName, total]
legalNameSort direction. asc or desc (case-insensitive).
Possible values: Value must match regular expression ^[Aa][Ss][Cc]$|^[Dd][Ee][Ss][Cc]$
ascPage number, starting at 0.
Possible values: >= 0
0Number of items per page.
Possible values: >= 1 and <= 200
50Responses
- 200
- 400
- 401
- 500
A page of per-business billable call counts.
Response Body
Array [
Array [
]
]
businessesobject[]required
The business's ID, assigned by Hiya.
string<uuid>9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fLegally registered name of the business.
Acme Plumbing Inc.Your own reference for the business; null if none was set.
Possible values: Value must match regular expression ^[A-Za-z0-9._-]+$
partner-customer-7421Start of the date range (inclusive).
string<date>2026-05-01End of the date range (inclusive).
string<date>2026-05-31How a billable-calls series is bucketed within the date range.
| Value | Meaning |
|-------|---------|
| total | No series — just the total for the whole range. points is empty. |
| day | One point per day. |
| week | One point per calendar week (Monday to Sunday). |
| month | One point per calendar month. |
Buckets are aligned to the calendar, not to startDate: the first
point's date can be earlier than startDate (the Monday of that
week, or the first of that month). Every point counts only calls
within startDate..endDate. Buckets with no billable calls are
omitted from points — treat a missing bucket as 0.
billing_BillingGranularity (string)Possible values: [total, day, week, month]
dayTotal billable calls across the whole date range; equal to the sum
of points when a series is returned.
integer<int64>1234pointsobject[]required
The bucketed series, sorted by date ascending. Empty when
granularity is total.
Start date of this bucket (inclusive). For week and month it
can be earlier than startDate, because buckets are aligned to
the calendar.
string<date>2026-05-01Billable calls in this bucket, always greater than 0.
integer<int64>42pagingobjectrequired
Details about the current page of results.
This page's number, starting at 0.
0Total items matching the filter, across all pages.
137Total number of pages available.
3Items per page.
50Example from Schema
{
"businesses": [
{
"businessId": "9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f",
"legalName": "Acme Plumbing Inc.",
"externalId": "partner-customer-7421",
"startDate": "2026-05-01",
"endDate": "2026-05-31",
"granularity": "day",
"total": 1234,
"points": [
{
"date": "2026-05-01",
"value": 42
}
]
}
],
"paging": {
"currentPage": 0,
"totalElements": 137,
"totalPages": 3,
"pageSize": 50
}
}
daily
Three days, granularity=day, sorted by legal name
{
"businesses": [
{
"businessId": "9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f",
"legalName": "Acme Plumbing Inc.",
"externalId": "partner-customer-7421",
"startDate": "2026-05-01",
"endDate": "2026-05-03",
"granularity": "day",
"total": 57,
"points": [
{
"date": "2026-05-01",
"value": 42
},
{
"date": "2026-05-03",
"value": 15
}
]
},
{
"businessId": "4e6f2a9c-7d1b-4c8e-a2f5-0b9d8c7e6f5a",
"legalName": "Bright Dental LLC",
"externalId": null,
"startDate": "2026-05-01",
"endDate": "2026-05-03",
"granularity": "day",
"total": 0,
"points": []
}
],
"paging": {
"currentPage": 0,
"totalElements": 2,
"totalPages": 1,
"pageSize": 50
}
}
A query parameter is invalid — the range is reversed or longer than
15 months, granularity, sortBy or sortDirection is unknown, or
page / size is out of range (page at most 100000, size 1 to
200).
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_QUERY_PARAM | 400 | A query parameter is invalid. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_QUERY_PARAM, UNAUTHORIZED, INTERNAL_ERROR]
INVALID_QUERY_PARAMA description of what went wrong.
endDate: must be on or after 'startDate'Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_QUERY_PARAM",
"message": "endDate: must be on or after 'startDate'"
}
]
}
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_QUERY_PARAM",
"message": "endDate: must be on or after 'startDate'"
}
]
}
The API key is missing or invalid.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_QUERY_PARAM | 400 | A query parameter is invalid. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_QUERY_PARAM, UNAUTHORIZED, INTERNAL_ERROR]
INVALID_QUERY_PARAMA description of what went wrong.
endDate: must be on or after 'startDate'Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_QUERY_PARAM",
"message": "endDate: must be on or after 'startDate'"
}
]
}
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "UNAUTHORIZED",
"message": "The partner API capability is not enabled for your account."
}
]
}
Something went wrong on our side.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_QUERY_PARAM | 400 | A query parameter is invalid. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_QUERY_PARAM, UNAUTHORIZED, INTERNAL_ERROR]
INVALID_QUERY_PARAMA description of what went wrong.
endDate: must be on or after 'startDate'Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_QUERY_PARAM",
"message": "endDate: must be on or after 'startDate'"
}
]
}
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "Something went wrong. Please try again later."
}
]
}