Skip to main content
GET
Get billing
Needs billing:read. Only a workspace owner has a plan here; a teammate gets 403. See Permissions.
Gives the plan of the key’s user:
  • plan and plan_name, cycle (monthly or yearly, null on Free) and status: free, active, canceled (paid until ends_at, then Free), past_due (a payment failed) or paused (a break, billing again at renews_at).
  • renews_at when it next bills, and first_week_ends_at while the owner’s first week runs.
  • limits: social accounts, this month’s posts on Free (null when posts are unlimited), and AI credits left.
  • extra_accounts on plans that have them (Agency).
  • invoices: the last 12, newest first, each with its page. null when Stripe couldn’t be reached just now; the rest of the answer is still there.
  • plans: the plans on sale, with their monthly and yearly prices in dollars. sale is a sale running now, for an owner who doesn’t pay.
To pay for, change or cancel the plan, make a link with Create a billing link.

Errors

Authorizations

Authorization
string
header
required

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

Response

The plan, usage, invoices and plans on sale.

The owner's plan, usage, invoices and the plans on sale.

plan
string
required

The plan's key, like free or pro-v2.

plan_name
string
required

The plan as people read it, like Pro.

cycle
enum<string> | null
required

How the plan is paid. null on Free.

Available options:
monthly,
yearly
status
enum<string>
required

canceled: paid until ends_at, then Free. past_due: a payment failed; a card_and_invoices link fixes it. paused: a break, billing again at renews_at.

Available options:
free,
active,
canceled,
past_due,
paused
renews_at
string<date-time> | null
required

When the plan next bills.

ends_at
string<date-time> | null
required

When a canceled plan ends.

first_week_ends_at
string<date-time> | null
required

While the owner's first week runs: when it ends. null otherwise.

limits
object
required
extra_accounts
object | null
required

Accounts above the plan's included ones, on plans that have them (Agency). null otherwise.

invoices
object[] | null
required

The last 12 invoices, newest first. null when they couldn't be read just now.

plans
object[]
required

The plans on sale.

sale
object | null
required

A sale running now, for an owner who doesn't pay. null otherwise, and always for a payer.