Update sub-account auto-recharge
Turns auto-recharge on or off for one sub-account. With it on, the sub-account tops itself up from your client’s card. Below thresholdUSD, it charges rechargeAmountUSD. A figure left out keeps its stored value, or the default (200) if never set.
On permits automatic charges to your client’s card and needs rebilling on with a usable card. This call charges nothing itself, but a balance below thresholdUSD is charged within 5 minutes of the call that takes it there, and within the hour when it is already below. At most 5 a day, an hour apart.
Needs the Business plan, or an agency our team manages, and Stripe Connect connected, even to turn something off. Otherwise nothing changes: PROJECT_WALLET_NOT_AVAILABLE_ON_PLAN (403) or STRIPE_NOT_CONNECTED (409).
Allowed customer roles: agency_admin. The agency is the one the credential belongs to.
Required API key scope: billing:write.
Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Headers
Optional. A request that finished, with a success or a refusal, answers a retry with its first answer and idempotentReplay: true, and nothing runs again. Once the cause of a refusal is fixed, try again with a new key. After a 5xx the same key runs the request again.
8 - 255Path Parameters
The sub-account's Location ID.
1Body
The setting.
Whether the sub-account tops itself up.
Top up when the dollar balance falls below this. Leave out to keep the stored value, or to take the platform default of $50 when the sub-account has never had one.
x >= 10Dollars each top-up charges the client's card, without asking the client again. Leave out to keep the stored value, or to take the platform default of $200 when the sub-account has never had one.
