What are Webhooks?
Webhooks are HTTP callbacks that HopNow sends to your application when specific events occur. Instead of repeatedly polling our API for changes, webhooks provide real-time notifications about important events like completed payments, account updates, and more.How Webhooks Work
1
Configure Webhook Endpoint
Create a webhook endpoint in your application and register it with HopNow
2
Event Occurs
An event happens in your HopNow account (e.g., payment completes)
3
Webhook Sent
We send an HTTP POST request to your endpoint with event details
4
Process Event
Your application receives and processes the webhook data
5
Respond
Your endpoint returns a 2xx status code to acknowledge receipt
Webhook Events
Payment Events
payin.created- Incoming payment initiatedpayin.completed- Incoming payment successfulpayin.failed- Incoming payment failedpayout.created- Outgoing payment initiatedpayout.completed- Outgoing payment successfulpayout.failed- Outgoing payment failed
Account Events
account.created- New account createdaccount.updated- Account information changedaccount.deactivated- Account deactivated
FX Events
fx_quote.created- Foreign exchange quote generatedfx_quote.expired- FX quote expired
Infrastructure Events
virtual_account.created- Virtual account createdwallet.created- Crypto wallet created
Security
Signature Verification
All webhooks are signed with HMAC-SHA256 using your webhook secret:HTTPS Required
All webhook URLs must use HTTPS to ensure data security in transit.Delivery and Retries
Retry Strategy
- Immediate failure: Retry after 1 minute
- Continued failure: Exponential backoff (5m, 15m, 1h, 6h)
- Maximum attempts: 5 retries over 24 hours
Success Criteria
Your endpoint must:- Respond with 2xx status code
- Respond within 30 seconds
- Return response quickly (process asynchronously if needed)
Best Practices
1. Idempotency
Handle duplicate events gracefully:2. Async Processing
Return success quickly, process in background:3. Error Handling
Log errors but don’t block webhooks:Getting Started
- Create a webhook endpoint in your application
- Register it with HopNow
- Implement signature verification
- Test with sample events
Ready to implement webhooks? Start with our security guide or jump to creating your first endpoint.