PUT /account/billing/auto-recharge
Set your automatic credit recharge policy.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| PUT | /v1/account/billing/auto-recharge |
Requires a human account administrator; API keys and sandbox tokens cannot change this policy. Supply enabled explicitly. Saving amounts with enabled=false keeps recharge off; enabling requires a saved card. A recharge buys amount_cents of credit and charges the platform fee in addition. Amounts and thresholds preserve exact cents.
curl -X PUT "https://api.ellipsis.dev/v1/account/billing/auto-recharge" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount_cents": 0,
"enabled": false,
"threshold_cents": 0
}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.account.billing.auto_recharge.set(
0,
False,
0,
)
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.account.billing.autoRecharge.set(
{ amount_cents: 0, enabled: false, threshold_cents: 0 },
);
console.log(result);Request
Example request body
{
"amount_cents": 0,
"enabled": false,
"threshold_cents": 0
}
Body parameters
amount_centsintegerrequired
enabledbooleanrequired
Explicit opt-in; enabling requires a saved card.
threshold_centsintegerrequired
Response
Example response · 200
{
"amount_cents": 0,
"consecutive_failures": 0,
"enabled": false,
"has_card": false,
"last_attempted_at": "2026-01-01T00:00:00Z",
"min_threshold_cents": 0,
"threshold_cents": 0
}