Skip to main content
PUT
Set auto-recharge

Authorizations

Authorization
string
header
required

An API key (otsk_ + 64 hex) or a console session token.

Body

application/json
enabled
boolean
required
threshold_micros
integer<int64> | null

Required when enabled is true. At most 1,000,000,000.

Required range: x >= 0
amount_micros
integer<int64> | null

Required when enabled is true. 5,000,000 to 1,000,000,000, in whole cents.

Required range: x >= 0

Response

The updated billing state.

organization_id
string
required
balance_micros
integer<int64>
required

Signed. Credits, minus settled spend, minus what unsettled runs hold.

currency
enum<string>
required
Available options:
usd
auto_recharge
object
required
has_payment_method
boolean
required
transactions
object[]
required

Newest first, at most 50.