Step 1: Create a webhook endpoint
Build an HTTP endpoint that accepts POST requests:Step 2: Test locally
Use ngrok to expose your local server:Step 3: Register with Bluum
Step 4: Trigger test events
Create an order or deposit in sandbox to generate events:Event handling patterns
Idempotent processing
The same event may be delivered more than once. Use the event ID for deduplication:Event routing
Production checklist
- Endpoint uses HTTPS
- Responds with
2xxwithin 30 seconds - Processes events asynchronously (don’t block the response)
- Handles duplicate events idempotently
- Verifies webhook signatures
- Monitors for delivery failures
- Logs all received events for debugging
- Update the webhook URL from ngrok/dev to your production domain