Webhooks
Security
Webhook endpoint security practices.
- Use HTTPS only. Private or loopback callback URLs are rejected.
- Keep the signing secret server-side. Rotate it from the app webhook settings when needed; the secret remains visible on the subscription.
- Verify every request signature and timestamp before acting.
- Deduplicate with
X-OuiPay-Delivery-Id. - Treat event payloads as notifications: confirm state with the external transactions API when you need authoritative detail.
- Sandbox app webhooks do not receive live production traffic.
Confirm with the API
curl https://api.ouipay.africa/api/v1/external/transactions/01M2S18... \
-H "Authorization: Bearer sk_test_..."