The plan, this month's usage and the credit balance

GEThttps://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
billingobject

The account's billing position right now.

ShowHide 11 fields
planobject

The account's current plan.

ShowHide 5 fields
idstring

The plan's id.

namestring

The plan's display name.

price_monthly_centsinteger

The plan's monthly fee, in cents.

cents_per_callnumber

What one external tool call costs beyond the included calls, in cents.

included_calls_per_monthinteger

External tool calls included each month. 0 means every call is metered from the first one.

month_external_callsinteger

Billable external tool calls this UTC calendar month, across every workspace on the account.

month_billable_callsinteger

The part of month_external_calls beyond the plan's included calls. These calls use credits.

grantedinteger

Credits granted over the account's lifetime (signup, packs, promos, adjustments, rewards).

consumedinteger

Credits used over the account's lifetime.

balanceinteger

granted minus consumed. May go negative when usage outran the credits granted.

billing_activeboolean

True when a live subscription exists: a card is on file, so calls beyond the credits can be billed.

dodo_modeenum

The payment provider's environment, test or live. The dashboard's card panel reads it.

testlive
scheduled_downgradeobjectnullable

A downgrade scheduled for the next billing date. Null when none is scheduled.

ShowHide 4 fields
plan_idstring

The id of the plan the account will move to.

plan_namestring

That plan's name.

effective_atstring

When the downgrade takes effect (the next billing date), as the payment provider's timestamp.

losingobject

What the target plan drops that the account uses today.

ShowHide 2 fields
premium_connectionsinteger

Premium connections that will come off profiles when the plan changes. 0 when the target plan still allows them.

public_linksboolean

True when the target plan does not include connect links.

lapseobjectnullable

A paid plan whose subscription ended and is in its grace period. Null otherwise.

ShowHide 4 fields
plan_idstring

The id of the plan whose subscription ended.

plan_namestring

That plan's name.

ended_atstring

When the subscription ended, ISO 8601 timestamp.

grace_ends_atstring

When the grace period runs out and the account moves to the free plan, ISO 8601 timestamp.

workspacesobjectnullable

Workspace slots: what the plan includes, the extras bought and any removal waiting for the billing date.

ShowHide 7 fields
includedintegernullable

Workspaces the plan includes. Null means unlimited.

extrainteger

Extra workspaces bought on top of the plan's. 0 unless the plan sells extras.

usedinteger

Workspaces the account holds now. A paused workspace counts; one pending deletion does not.

extra_price_centsintegernullable

The monthly price of one extra workspace, in cents. Null when the plan does not sell extras.

monthly_centsinteger

The plan's monthly fee with the extras, in cents, before metered calls.

next_billing_atstringnullable

The next billing date, as the payment provider's timestamp. Null when there is no subscription or the plan does not sell extra workspaces.

pending_extraintegernullable

The 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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.