Get organization billing overview
Get organization billing overview: getOrganizationBillingOverview in the TypeScript, Python, Rust and Go clients.
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>photon.organizations.billing.get_organization_billing_overview(input: GetOrganizationBillingOverviewInput, *, options: RequestOptions | None = None) -> models.GetOrganizationBillingOverviewResponseclient.get_organization_billing_overview(organization_id: String).await -> Result<ResponseValue<types::GetOrganizationBillingOverviewResponse>, Error<GetOrganizationBillingOverviewError>>client.Organizations.Billing.GetOrganizationBillingOverview(ctx context.Context, params *GetOrganizationBillingOverviewParams, opts ...RequestOption) (*GetOrganizationBillingOverviewResponse, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetOrganizationBillingOverviewInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.organizations.billing.get_organization_billing_overview(
GetOrganizationBillingOverviewInput.model_validate({
"path": {
"organizationId": "organizationId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_organization_billing_overview("organizationId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Organizations.Billing.GetOrganizationBillingOverview(ctx, &photonapi.GetOrganizationBillingOverviewParams{
OrganizationID: "organizationId",
})
if err != nil {
return err
}
_ = result{
"currentPeriod": null,
"entitlementsVersion": 0,
"subscription": null
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The organization-owned plan and its resolved entitlements. GetOrganizationBillingOverviewResponse
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
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.
Bumps on every entitlement change for the organization.
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.