Documentation Index
Fetch the complete documentation index at: https://tracefinance-docs-withdrawal-beneficiary-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The sandbox environment delivers real webhook events as you exercise the API — creating orders, registering beneficiaries, initiating PIX payments, and so on. Use it to develop and test your handler before going to production. The sandbox base URL ishttps://api.sandbox.tracefinance.com.
Recommended workflow
Deploy your handler to your sandbox environment
Webhooks must reach a public HTTPS URL. Use the same sandbox or staging environment you use for the rest of your Trace integration testing — the same one that calls Trace’s sandbox API. Self-signed certificates and private networks are not supported.
Register a sandbox subscription
Point the subscription at your sandbox handler URL and pick the resources you want to test:
Trigger events
Sandbox does not expose a synthetic-event endpoint. To generate events, drive the corresponding API:
- Account events — complete sandbox account onboarding so an asset activates.
- Beneficiary events — register a sandbox beneficiary and wait for the compliance review to settle.
- Operation events — initiate sandbox operations (deposit, withdrawal, swap).
Inspect deliveries
Use the execution logs endpoint to see exactly what was sent and what your handler responded with:Failed attempts can be resent on demand once you fix your handler — useful for replaying real payloads against new code without re-running the originating transaction.
Tips
- Keep your sandbox subscription and production subscription in separate projects with their own client credentials. Signatures are bound to the client secret, so a sandbox key won’t validate production deliveries (and vice versa).
- Track which subscription belongs to which environment by URL — point staging at your staging handler, production at your production handler.
- If you want to receive sandbox events on a developer laptop for quick exploration, expose the local handler with a public HTTPS tunnel (for example, ngrok or Cloudflare Tunnel) and PATCH the subscription with the tunnel URL. Tunnel URLs typically change between sessions, so update the subscription each time.
Related
- Environments — sandbox and production base URLs
- Subscribe to events — full subscription lifecycle
- Retry policy — replaying past deliveries against updated handlers