Skip to main content
POST
/
billing
/
auto_recharge
Update auto recharge settings
curl --request POST \
  --url https://api.videodb.io/billing/auto_recharge \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "enabled": true,
  "threshold": 10,
  "amount": 50
}
'
{
  "success": true,
  "message": "Auto recharge settings updated"
}
Enable or disable automatic credit recharge and configure the threshold and recharge amounts for your account.
import requests

payload = {
    "enabled": True,
    "threshold_credits": 100,
    "recharge_amount": 500
}

response = requests.post(
    "https://api.videodb.io/billing/auto_recharge",
    json=payload,
    headers={"x-access-token": "your_api_key"}
)

result = response.json()
print(f"Auto-Recharge Updated: {result.get('success')}")
print(f"New Settings: {result.get('settings')}")
  • Threshold amount determines when auto-recharge triggers
  • Recharge amount is the credit quantity added when threshold is met
  • Requires a valid payment method on file
  • Set enabled to false to disable auto-recharge without losing your configuration
  • Changes take effect immediately

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Body

application/json
enabled
boolean
Example:

true

threshold
number
Example:

10

amount
number
Example:

50

Response

200 - application/json

Auto recharge updated

success
boolean
Example:

true

message
string
Example:

"Auto recharge settings updated"