admin

Admin: Get account billing usage

Admin variant of /account/billing — fetches Stripe meter usage for any user_id. Slow path (Stripe round-trip).

get/v1/admin/accounts/{user_id}/billing

Path parameters

user_idstring required

Headers

authorizationstring

Response

Successful Response

billing_period_startinteger nullable

Billing period start (Unix timestamp)

billing_period_endinteger nullable

Billing period end (Unix timestamp)

prepaid_balancenumber nullable

Prepaid balance in dollars

current_period_usagenumber nullable

Total usage cost in current period in dollars

Example response

{
  "billing_period_start": 1711929600,
  "billing_period_end": 1714521600,
  "prepaid_balance": 247.5,
  "current_period_usage": 89.4,
  "meters": [
    {
      "total_usage": 150
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.