You need an Anton Payments account and a sandbox API key. If you do not have one yet, contact our team to get provisioned.
Sandbox mode — All examples in this guide use the sandbox environment (api.antonpayments.dev) and test API keys (ak_test_...). No real money moves. Switch to api.antonpayments.com and ak_live_... keys when you are ready for production.
API keys are created in the merchant portal. Navigate to Settings > API Keys and generate a sandbox key. The key is displayed once at creation time — save it immediately.Your key will look like this:
ak_test_7f3a9b2c...
Test that it works by fetching your merchant profile:
Polling works for testing, but production integrations should use webhooks. Register a webhook endpoint to receive real-time notifications on payout state changes.
Webhooks are the recommended approach for production. Polling is acceptable during development, but webhook-driven architectures are more efficient and receive updates faster. See Handle webhooks for implementation details.