Skip to main content
PATCH
Change caps and billing

Authorizations

Authorization
string
header
required

An API key (zode_tok_...). Create one in the console under API keys (https://console.zode.dev/tokens), or with zode login.

Body

application/json
daily_cap_micros
integer<int64> | null
Required range: 1 <= x <= 100000000000
sandbox_default_cap_micros
integer<int64> | null
Required range: 1 <= x <= 100000000000
auto_top_up
object
billing_email
string

"" clears it (the owner gets the mail).

plan
string

Response

Billing after the change

Plan, this calendar month (UTC) of usage and the invoice the ledger would build from it today, credit, caps and the billing email. AI spend is shown, not billed (ai_billed), and unknown when the flight recorder is off (ai_known). provider.configured is false until billing opens: no cards, invoices or plan changes then.

plan
object
limits
object

The plan whose limits apply now (Pro during a trial); same fields as plan

trial
object
period
object
usage
object
estimate
object
credit
object
caps
object
billing_email
string
provider
object
can_manage
boolean