{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Configure auto top-up with a balance threshold and top-up amount. Requests that add a payment method first return authentication details. The configuration is saved only after the authenticated setup is submitted. Dashboard sessions only: API token, OAuth, and service credentials are rejected with 403.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","description":"Cloudflare account ID."}},"required":["account_id"],"additionalProperties":false},"body":{"anyOf":[{"additionalProperties":false,"properties":{"amount":{"description":"Auto top-up amount in cents (min 1000).","type":"integer","minimum":1000,"examples":[5000]},"threshold":{"description":"Balance threshold in cents that triggers auto top-up (min 500).","type":"integer","minimum":500,"examples":[500]}},"required":["threshold","amount"],"type":"object"},{"additionalProperties":false,"properties":{"amount":{"description":"Auto top-up amount in cents (min 1000).","type":"integer","minimum":1000,"examples":[5000]},"consent_version":{"description":"Version of the off-session auto-top-up consent accepted by the user.","type":"string","maxLength":100,"minLength":1,"examples":["auto-topup-v1"]},"payment_method_id":{"description":"Card to authenticate for future automatic top-ups.","type":"string","examples":["pm_123"]},"setup_idempotency_key":{"description":"Client-generated UUID that makes payment-method setup safe to retry.","type":"string","format":"uuid","examples":["f6af84c0-12d6-4c46-840d-2e4934df85e1"]},"setup_intent_id":{"description":"Successfully confirmed payment-method setup identifier.","type":"string","examples":["seti_123"]},"threshold":{"description":"Balance threshold in cents that triggers auto top-up (min 500).","type":"integer","minimum":500,"examples":[500]}},"required":["threshold","amount","payment_method_id","setup_idempotency_key","consent_version"],"type":"object"}]}},"required":["path","body"],"additionalProperties":false},"name":"Set auto top-up configuration","id":"cloudflare.aig-billing-set-topup-config","example":{"path":{"account_id":"example"},"body":{"threshold":500,"amount":5000}},"maxRequests":1,"summary":false}}