API reference · Schema
UpdateAutoRechargeRequest
enabledbooleanrequiredtrue turns auto-recharge on with the settings below; false turns it off
thresholdstringInteger nano-USD as a decimal string
pattern ^(0|[1-9][0-9]{0,18})$
targetstringPositive integer nano-USD as a decimal string
pattern ^[1-9][0-9]{0,18}$
monthly_capstringPositive integer nano-USD as a decimal string
pattern ^[1-9][0-9]{0,18}$
payment_method_idstringID of the payment method
ID with prefix pmth_
Example
{
"enabled": true,
"threshold": "10000000000",
"target": "50000000000",
"monthly_cap": "500000000000",
"payment_method_id": "pmth_01jc5zq4m8k3v6x9t2w7r0b1e4"
}Used by
- Turn auto-recharge on or off (threshold → target, monthly cap, saved card)
PATCH /v1/orgs/{org_id}/billing/auto-recharge