SelfBilling

Get tenant billing summary

Changed on

Returns the caller tenant's billing summary; same as /portal/billing/summary.

get/tenants/billing

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/tenants/billing
  • Auth
    API key in header x-api-key

Response

OK

status'trialing' | 'active' | 'suspended'
subscription_status'active' | 'paused' | 'cancelled' | 'incomplete' | 'trialing' | 'draft'
trial_ends_atstring date-time

Example response

{
  "usage": {
    "features": [
      {
        "feature": {
          "meter": {
            "created_at": "2024-03-20T15:04:05Z",
            "event_name": "api_request",
            "id": "550e8400-e29b-41d4-a716-446655440000",
            "name": "API Usage Meter",
            "status": "published",
            "tenant_id": "tenant123",
            "updated_at": "2024-03-20T15:04:05Z"
          }
        }
      }
    ]
  }
}

Changes