Webhooks Overview
Real-time event notifications for your IvoryPay transactions.
How webhooks work
1. A transaction event occurs (e.g., user pays fiat for an on-ramp)
2. IvoryPay sends an HTTP POST request to your configured webhook URL
3. Your server processes the event and responds with HTTP 200
4. If your server doesn't respond with 200, IvoryPay retries (up to 3 attempts)Setting up webhooks
Via API
curl -X POST https://ramp-api.ivorypay.io/api/v1/webhooks \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com/webhooks/ivorypay",
"environment": "LIVE",
"events": ["onramp.success", "offramp.success", "deposit.received"]
}'Webhook payload structure
Headers
Header
Description
Handling webhooks
Example handler (Node.js / Express)
Example handler (Python / Flask)
Retry behavior
Attempt
Timing
Best practices
Last updated