Update sub-account rebilling
Turns rebilling on or off for one sub-account, so its client pays for its calls. On sets the client’s rate per minute and links the Stripe customer whose default card pays, all or nothing. It charges nothing itself. With autoRecharge.enabled, the card is charged rechargeAmountUSD when the balance falls below thresholdUSD: within 5 minutes of that call, or within the hour if it is already below.
Off returns unused minutes to your wallet at cost (the client is not refunded), turns auto-recharge off and unlinks the customer. Refused while a client payment is waiting to reach the wallet.
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
On, with the client rate and Stripe customer; or off.
- Option 1
- Option 2
On, with the client rate and Stripe customer; or off.
true to turn rebilling on.
What you charge the client per minute.
A customer on your connected Stripe account.
^cus_[A-Za-z0-9]{6,}$Confirms a rate above $10 a minute is intended.
Optional. Set the sub-account's auto-recharge in the same step.
