Update auto top-up configuration
Billing
Update auto top-up settings
Enable, disable, or change your auto top-up configuration.
PUT
Update auto top-up configuration
Updates your auto top-up settings. Pass only the fields you want to change — others retain their current values. Requires theDocumentation Index
Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt
Use this file to discover all available pages before exploring further.
billing:write scope.
Enabling auto top-up
To setenabled: true, all three of threshold_usd, amount_usd, and payment_method_id must be present (either in this request or already on file). Additional rules:
threshold_usdmust be strictly less thanamount_usd— otherwise the top-up wouldn’t lift you above the threshold and would re-fire immediately.payment_method_idmust belong to your client (verified server-side).- Both amounts must be between 5000.
disabled_reason field is cleared.
Disabling
Passenabled: false. Existing settings are preserved so you can re-enable later without re-entering them.
Errors
| Code | When |
|---|---|
400 INVALID_REQUEST | threshold_usd >= amount_usd, missing required fields when enabling, or payment_method_id doesn’t belong to your client. |
