The plan, this month's usage and the credit balance
https://api.floconnector.com/v1/billing- Scope
billing.read- Rate limit
- the key's read budget, 120 a minute
The figures are for the whole account that owns the key's workspace, never one workspace, and the month is the UTC calendar month. billing_active says whether a card is on file; scheduled_downgrade and lapse are null unless one is in progress. Billing is read-only over the API: to change the plan or the card, send a person to the page GET /v1/billing/manage-url returns.
Takes no parameters and no body.
Responses
200Success
billingobjectThe account's billing position right now.
ShowHide 11 fields
planobjectThe account's current plan.
ShowHide 5 fields
idstringThe plan's id.
namestringThe plan's display name.
price_monthly_centsintegerThe plan's monthly fee, in cents.
cents_per_callnumberWhat one external tool call costs beyond the included calls, in cents.
included_calls_per_monthintegerExternal tool calls included each month. 0 means every call is metered from the first one.
month_external_callsintegerBillable external tool calls this UTC calendar month, across every workspace on the account.
month_billable_callsintegerThe part of month_external_calls beyond the plan's included calls. These calls use credits.
grantedintegerCredits granted over the account's lifetime (signup, packs, promos, adjustments, rewards).
consumedintegerCredits used over the account's lifetime.
balanceintegergranted minus consumed. May go negative when usage outran the credits granted.
billing_activebooleanTrue when a live subscription exists: a card is on file, so calls beyond the credits can be billed.
dodo_modeenumThe payment provider's environment, test or live. The dashboard's card panel reads it.
testlivescheduled_downgradeobjectnullableA downgrade scheduled for the next billing date. Null when none is scheduled.
ShowHide 4 fields
plan_idstringThe id of the plan the account will move to.
plan_namestringThat plan's name.
effective_atstringWhen the downgrade takes effect (the next billing date), as the payment provider's timestamp.
losingobjectWhat the target plan drops that the account uses today.
ShowHide 2 fields
premium_connectionsintegerPremium connections that will come off profiles when the plan changes. 0 when the target plan still allows them.
public_linksbooleanTrue when the target plan does not include connect links.
lapseobjectnullableA paid plan whose subscription ended and is in its grace period. Null otherwise.
ShowHide 4 fields
plan_idstringThe id of the plan whose subscription ended.
plan_namestringThat plan's name.
ended_atstringWhen the subscription ended, ISO 8601 timestamp.
grace_ends_atstringWhen the grace period runs out and the account moves to the free plan, ISO 8601 timestamp.
workspacesobjectnullableWorkspace slots: what the plan includes, the extras bought and any removal waiting for the billing date.
ShowHide 7 fields
includedintegernullableWorkspaces the plan includes. Null means unlimited.
extraintegerExtra workspaces bought on top of the plan's. 0 unless the plan sells extras.
usedintegerWorkspaces the account holds now. A paused workspace counts; one pending deletion does not.
extra_price_centsintegernullableThe monthly price of one extra workspace, in cents. Null when the plan does not sell extras.
monthly_centsintegerThe plan's monthly fee with the extras, in cents, before metered calls.
next_billing_atstringnullableThe next billing date, as the payment provider's timestamp. Null when there is no subscription or the plan does not sell extra workspaces.
pending_extraintegernullableThe extra count after a removal scheduled for the next billing date. Null when none is scheduled.
400validation: a field failed validation; field names it.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
401unauthorized: no key, or an unknown, revoked or expired key.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
404not_found: the thing is not in this workspace.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
Errors lists every error code and what to do about it.