Sub-Account Auto-Recharge (Custom Payment Provider)

If you prefer to handle sub-account credit payments through your own provider instead of Stripe (bank transfers, local payment gateways, custom billing systems)

Sub-Account Auto-Recharge (Custom Payment Provider) If you prefer to handle sub-account credit payments through your own provider instead of Stripe (bank transfers, local payment gateways, custom billing systems), the platform exposes a webhook + API pair so you can run the full charge-and-grant loop yourself. The non-technical overview lives on the Agency Accounts page; this page covers the exact webhook payload and the API call you make to grant credits afterwards. The flow at a glance A sub-account's credit balance drops below their auto-recharge threshold. The platform calls your webhook URL with the sub-account details and how many credits they need. Your server charges the customer through whichever provider you use. Your server calls the Grant Credits API to add credits to that sub-account. Your server responds 200 to acknowledge the webhook. 1. Webhook: `agency_sub_account_auto_recharge` Configure the webhook URL by clicking SaaS Mode in the main sidebar, choosing Use a Custom Payment Provider Instead (or, once configured, opening the Custom Payment Provider card), and filling in the Auto-Recharge Webhook field. When it fires When a sub-account's credit balance drops below their configured auto-recharge threshold. Payload { "event": "agency_sub_account_auto_recharge", "sub_account_id": "<sub-account-id>", "sub_account_email": "customer@example.com", "sub_account_name": "John Doe", "agency_id": "<agency-id>", "credits_requested": 500, "current_balance": 42,