Get subscription information
Get the subscription information for the organization.
Request
- Base URL: https://api.getoneprofile.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.getoneprofile.ai/billing/subscription/
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Response
Successful Response
The billing email address for invoices and billing alerts.
The billing interval of the subscription. None for free plans.
The date when the subscription is scheduled to be canceled. If set, the subscription will be canceled at this time. None if the subscription is not scheduled for cancellation.
The monthly credit allowance the subscription's own price grants.
The selected credit volume (e.g. 'team_tier_20k'). None for free plans.
The end of the current Stripe billing period. None for free plans: credit period truth lives on the credit balance.
The start of the current Stripe billing period. None for free plans: credit period truth lives on the credit balance.
What the subscription actually costs per billing_interval unit, in cents, read off its own Stripe price. None for free plans. Prefer this over recomputing from the catalog: it stays right for a grandfathered price or a volume the catalog has since retired.
Data retention period.
Credits granted each period (the period allowance).
Whether the product is currently limited due to usage or payment issues. When True, the organization cannot perform billable actions. This happens in two scenarios:
- The credit balance is exhausted.
- The subscription status is UNPAID (payment failed or cancelled).
Maximum number of integrations allowed. 0 means unlimited.
Maximum number of rows per table. 0 means unlimited.
Maximum number of tables allowed. 0 means unlimited.
The product name for the subscription.
The tier of a product in Stripe.
Declared cheapest-first. Free and Enterprise never touch Stripe: Free is free, Enterprise is sales-led and has no self-serve price.
A subscription's tier is recovered from its price's product_tier metadata, never by reverse-parsing a Stripe product name: a product is named for the plan AND the credit volume it sells ("Team Plan (10,000 credits)"), so the name has not round-tripped to a tier since prices collapsed to one per plan+volume.
Number of seats included. 0 means unlimited.
The status of a subscription for an organization.
Active is the good state for all types of products. All other states are transitional states.
When a subscription is cancelled, it becomes Free plan. We treat cancelled Stripe subscriptions as non-existent. Customer won't see any cancelled subscriptions on billing portal.
There is a long transition from: Active -> Past Due -> Unpaid -> Free
Changes
No recorded changes to this operation across all 1 revision of this API.