Billing Tier Detector Summary
GET /api/v1/billing/tier-detector-summary
Performs the account operation at /api/v1/billing/tier-detector-summary.
Authenticate with a portal session token.
Responses
200 Detector and provider spend rollup. Cost amounts are raw USD micros.
application/json object
currencystring requiredCurrency of provider and markup micros.
Value:"USD"window_daysinteger requiredValue:30tiersarray of object requiredEach item:
tier_idstring requiredtierstring requiredtier_labelstring requiredcall_countinteger requireddetector_hitsinteger requiredshare_pctnumber requiredcost_microsinteger requiredExact cost in USD micros.
cost_centsinteger requiredcoststring required
Generated sample
{
"currency": "USD",
"window_days": 30,
"tiers": [
{
"tier_id": "string",
"tier": "string",
"tier_label": "string",
"call_count": 0,
"detector_hits": 0,
"share_pct": 0,
"cost_micros": 0,
"cost_cents": 0,
"cost": "string"
}
]
}401 Missing or invalid bearer token.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string