List service billing details
Overview
Lists billing details for every service on the account, across all teams. Each service includes its billing cycle, recurring amount, next due date and current paid period. Use server_id to match a service to its server. Amounts are formatted strings ready to display.
A service in a postpaid team is billed by the hour on the monthly postpaid invoice, not on a cycle of its own. It has no period and reads as a free service with a zero recurring_amount, but it is charged: postpaid_monthly_price is what a full month costs, and the postpaid invoice endpoints show what has been billed. postpaid_monthly_price is null for every other service. period is also null for one-time purchases and genuinely free services.
Permissions
Requires the billing.read (View billing) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Response 200
application/jsonThe whole set, as a JSON array. There is no envelope and no paging.
The service id ID.
The name shown to customers.
The fully qualified hostname.
The value of status.
How often the service renews and is billed.
The amount charged each billing cycle.
The three-letter currency code used for monetary amounts.
The server id ID.
The value of next_due_date.
The current billing period, or null for a service that does not renew: a one-time purchase, a free service, or one billed by the hour.
Show child attributesHide child attributes
The date and time for starts at, in UTC.
The date and time for ends at, in UTC.
The value of total_days.
The value of days_remaining.
Zero rather than a negative days_remaining, so a caller never has to decide which of the two fields to believe.
The share of the period still to run.
healthy, due_soon, critical or overdue, named on the server so every surface showing a term agrees about when one has become worth worrying about.
What a full month costs while the service is billed by the hour on the monthly postpaid invoice, or null when it is not. Such a service shows no recurring charge of its own, but it is not free.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown