Skip to content

GET /v1/organizations/{organizationId}/billing

Returns the selected organization’s billing subscription and entitlementsVersion. The subscription can be null. Read the returned plan, charges and entitlements to inspect organization billing; this operation does not purchase or change a plan.

photon.organizations.billing.getOrganizationBillingOverview(input: GetOrganizationBillingOverviewInput, options?: RequestOptions): Promise<GetOrganizationBillingOverviewOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.organizations.billing.getOrganizationBillingOverview({
  path: {
    organizationId: "organizationId",
  },
});
{
  "currentPeriod": null,
  "entitlementsVersion": 0,
  "subscription": null
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

organizationIdstringrequired

Returns

200 The organization-owned plan and its resolved entitlements. GetOrganizationBillingOverviewResponse

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.

currentPeriodOrganizationBillingPeriod | nullrequired

Charges so far this billing period, for an organization that pays by invoice; null for one that pays by card, or while its projects are still being moved to its billing day.

entitlementsVersionintegerrequired

Bumps on every entitlement change for the organization.

subscriptionOrganizationSubscription | nullrequired

The organization-owned subscription, or null when billing was never opened or has ended.

304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.