GET
/
v1
/
billing

Authorizations

Authorization
string
header
required

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

Response

200 - application/json
last_invoice_date
integer
required

The timestamp when the local balance (i.e. the value we keep track of) was synced with stripe (and the customer was billed)

billing_zip
string | null
required

The Zipcode of the address of the Organization

subscription
object
required

Details on the currently active subscription

subscription_paused
object | null
required

Returned to the frontend when the subscription has been paused for any reason.

spending_limit_soft
number
default:
0

When the balance crosses this value, a warning email will be sent informing the customer

spending_limit_hard
number
default:
0

When the balance crosses this value, a high-warning email will be sent informing the customer that services will be disrupted if the balance reaches 0

currency
enum<string>
default:
usd

The currency of the organization

Available options:
usd
balance
number
default:
0

The balance in the account. Synced with Stripe periodically

trial_end
string | null

The datetime when the trial ends (or None, if the user is not in a trial)

trial_ending_soon
boolean
default:
false

When the trial is coming to an end, we notify the Frontend (calculated on the server side)