Billing status
/organization/{id}/billing
Subscription and seat state for the plan screen. Requires the `billing:view` permission. For what the org may actually *use*, prefer `GET /organization/{id}/entitlements`.
Path Parameters
Organization id (org_…).
Response Body
What this org's next Gold checkout charges: its sticky tier from its first checkout if it has one, otherwise the tier for the country the request comes from.
False only for a country Elaichi cannot sell to — Checkout refuses it with region_unavailable.
ISO 3166-1 alpha-2 the price is based on, or null when unknown (which prices as list).
Lowercase ISO 4217 the gold amounts are in.
Discount off list, 0–60.
Per-seat price for one cycle in currency minor units — exactly what Checkout charges. year is the year total.
2 properties
1 property
1 property
List (t0) price to show the discount against: in currency when list price is set in it, else USD. Display only.
2 properties
2 properties
1 property
1 property
tier !== "t0".
Tier id: t0 (list) to t4 by GDP band, or a country tier such as in (India). Compare by discount_pct.
Which prices this deployment has configured.
False when this deployment has no Stripe key configured.
What the org is actually entitled to right now, after trial and Stripe subscription status are taken into account. null means locked — gated features refuse with subscription_required.
goldblacknull
Stored plan on the row: gold, black, or none once locked.
Billable memberships, with the paid-subscription minimum of one. This is the Checkout quantity.
The local pre-Checkout Gold trial only. A Stripe trialing subscription is not this flag.
curl -X GET 'https://api.elaichi.ai/organization/<id>/billing' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/organization/<id>/billing', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/organization/<id>/billing"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())