Skip to main content
PUT
Turn auto-reload on or off

Authorizations

oc_session
string
cookie
required

The console's session cookie (httpOnly, SameSite=Lax, 30 days), set by signup and login.

Body

application/json
enabled
boolean
required
thresholdUsd
number

Reload when the balance falls below this. Left out: the current one ($5 to begin with).

Required range: x >= 0
targetUsd
number

Bring the balance back up to this: at least $5 above thresholdUsd. Left out: the current one ($15 to begin with).

Required range: x <= 2000
returnUrl
string

Where a checkout that saves a card comes back to. /billing by default.

Response

The billing object, and a checkout url when a card has to be saved first.

url
string | null
required

A checkout page that saves a card first, when there is none; null when auto-reload is saved.

billing
object
required