Skip to content

MOD-03

Webhooks

Real-time events your backend can trust.

Every state change in NyoriPay fires a signed event to your endpoints within milliseconds. Automatic retries, one-click replay and a full delivery log keep your systems perfectly in sync.

Median delivery time
<300ms
Retry window
3 days
Event types
60+
payment.succeeded.json
{  "id": "evt_3Lm9Qa",  "type": "payment.succeeded",  "created": "2026-12-05T14:02:11Z",  "data": {    "object": {      "id": "pay_7Hq2nK",      "amount": 4200,      "currency": "eur",      "status": "succeeded"    }  }}

Webhook deliveries

POST /webhooks/nyoripay

  1. payment.succeeded20084ms
  2. checkout.session.completed20091ms
  3. rule.triggered20077ms
  4. refund.createdretry in 30s5032.1s
  5. refund.createdretry 1 delivered20088ms

MOD-03 / Capabilities

Events that always arrive.

  • 01

    Signed payloads

    Each event carries an HMAC-SHA256 signature and a timestamp, so you can verify the sender and reject replays.

  • 02

    Automatic retries

    Failed deliveries retry with exponential backoff for up to three days before an endpoint is flagged.

  • 03

    Replay anything

    Re-send a single event or a whole time range from the dashboard or the API after you ship a fix.

  • 04

    Filtered subscriptions

    Point each endpoint at only the events it cares about and keep noisy traffic away from critical services.

  • 05

    Ordered per object

    Events for the same payment arrive in sequence, so your state machine never sees a refund before a capture.

  • 06

    Delivery log

    Status code, latency and response body for every attempt, searchable for 30 days.

How it works

Three steps to live.

  1. 01

    Register an endpoint

    Add a URL and choose exactly which events it should receive.

  2. 02

    Verify the signature

    Check the signature header with your endpoint secret before trusting the payload.

  3. 03

    Answer with a 200

    Acknowledge fast and do heavy work in the background. Anything else schedules a retry.

webhooks.js
app.post('/webhooks/nyoripay', express.raw({ type: 'application/json' }), (req, res) => {  const event = nyori.webhooks.verify(    req.body,    req.headers['nyori-signature'],    process.env.NYORI_WEBHOOK_SECRET  )  if (event.type === 'payment.succeeded') {    fulfillOrder(event.data.object)  }  res.sendStatus(200)})

Jack in

Plug in Webhooks.

Sandbox keys are free and ready in minutes. Build against the real API today and go live whenever you are ready.