Help CenterVying
Open Vying
Menu

Get Billing State

GET/organizations/{organizationId}/billing

The organization's plan, its limits, and how much of each limit is already spent — enough for an integration to know a write will be rejected before attempting it. This endpoint is read-only by construction. No API key of any kind can change a subscription, an add-on quantity, or a payment method; there is no billing write endpoint and no billing write scope. Stripe identifiers, invoices, and payment methods are never returned.

Needs read access. About keys

Request

curl "https://app.vyingfor.com/api/v1/organizations/{organizationId}/billing" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

NameInTypeDescription
organizationId requiredPathstring

Response

200 Get billing state

FieldTypeDescription
organizationIdstring
billingEnabledboolean

Whether this workspace is billed for its usage.

planBillingPlan

Null when the organization has no subscription, or when billing is disabled.

limitsPlanLimits
usageobject

Errors