Skip to content
Sign in Create account

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

  • currency string required

    Currency of provider and markup micros.

    Value: "USD"
  • window_days integer required
    Value: 30
  • tiers array of object required

    Each item:

    • tier_id string required
    • tier string required
    • tier_label string required
    • call_count integer required
    • detector_hits integer required
    • share_pct number required
    • cost_micros integer required

      Exact cost in USD micros.

    • cost_cents integer required
    • cost string 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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

403 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string