Webhooks
Webhooks allow external systems to push event notifications to SmartPay. These endpoints receive payment confirmations, message events, and other real-time updates.
Features
Receive cash-in notifications from VULT processor
Process WhatsApp messages via Agent-TS
Secure webhook payloads with signature verification
Instant event handling and response
Endpoints
POST /webhooks/vult/cashin
Receive VULT cash-in notifications
POST /api/v1/external/whatsapp
Process WhatsApp messages
Webhook Security
All webhooks should verify the signature before processing:
- Extract signature from header (
X-Webhook-Signatureor equivalent) - Compute HMAC-SHA256 of the raw request body
- Compare signatures using timing-safe comparison
- Reject requests with invalid or missing signatures
Webhook Flow
External system (VULT, WhatsApp) generates an event
System sends HTTP POST to configured endpoint with signed payload
SmartPay verifies HMAC signature before processing
Event is processed (e.g., credit wallet, respond to message)
Return success response to confirm receipt