Webhooks
Real-time events, signed and retried.
Subscribe to the events your integration needs. Every delivery is signed, timestamped and retried with backoff until your endpoint responds with a 2xx status.
Event types
| Event | When it is sent |
|---|---|
| order.created | An order has been created |
| order.paid | Payment has been verified by the payment provider |
| order.refunded | A refund has been processed |
| esim.provisioned | The supplier has issued the eSIM profile |
| esim.provisioning_failed | Provisioning failed after reconciliation |
| esim.installed | The supplier confirmed installation (where supported) |
| esim.activated | The eSIM connected and validity started |
| esim.usage.threshold | Usage crossed a configured percentage |
| esim.expired | Validity ended |
| topup.completed | A top-up was applied |
| voucher.redeemed | A voucher was redeemed |
| settlement.created | A settlement statement is available |
Verifying signatures
Each request carries Nesvra-Signature with a timestamp and an HMAC-SHA256 signature of timestamp.body using your endpoint secret. Reject requests older than five minutes and compare signatures in constant time.
$payload = file_get_contents('php://input');
[$t, $sig] = parse_signature($_SERVER['HTTP_NESVRA_SIGNATURE']);
if (abs(time() - $t) > 300) { http_response_code(400); exit; }
$expected = hash_hmac('sha256', $t . '.' . $payload, $secret);
if (!hash_equals($expected, $sig)) { http_response_code(401); exit; }
Retry schedule
-
01
Immediately
First attempt.
-
02
1 minute
Second attempt.
-
03
10 minutes, 1 hour
Further attempts.
-
04
Up to 24 hours
Final attempts, then marked failed and available for replay.