Skip to main content
GET
Get billing subscription

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgID
string<uuid>
required

Query Parameters

surface
enum<string>
required

The client asking: web, ios or android. The actions returned are the ones available from that surface.

Available options:
web,
ios,
android

Response

OK

actions
object
required
active_billing_cycle_id
string<uuid>
required
billing_cycle_starts_at
string<date-time>
required
cancels_at
string<date-time> | null
required

When the subscription ends, having been cancelled at the end of its period; null while it renews.

credits_remaining
number<double>
required
managed_by
enum<string>
required

The channel that manages the subscription: none while the org has no paid subscription.

Available options:
none,
stripe,
app_store,
play_store
monthly_credit_grant
integer<int64>
required
payment_state
enum<string>
required
Available options:
not_required,
checkout_pending,
active,
grace_period,
past_due,
unpaid,
canceled,
blocked
plan
object
required
settlement_mode
enum<string>
required
Available options:
prepaid,
enterprise_invoice
tier
enum<string>
required
Available options:
free,
starter,
pro,
max,
team
warm_slot_limit
integer<int64>
required

The warm slots the org may assign: its tier's, or on Team the cap its occupied seats set.

Required range: x >= 0
billing_cycle_ends_at
string<date-time>
current_period_end
string<date-time>
current_period_start
string<date-time>
store_app_user_id
string<uuid>

On ios and android, the signed-in user's store identity, which the store SDK logs in with. Absent until the user's first store purchase intent mints it, and on the web.