Set up an endpoint
- Expose a public
httpsroute on your server, e.g.https://example.com/webhooks/malla. - In Settings → Developers → Webhooks, add it and choose the events (or create it through the API).
- Copy the signing secret (
whsec_...) into your server's environment. - Click Send test event and check your handler answers
2xx.
The event
Every delivery is a JSON event. Keys are snake_case, money is in integer cents and dates are ISO 8601.
{
"id": "evt_0199d6f0c2a87c3e9b1f4a5d6e7f8a9b",
"type": "order.paid",
"created": "2026-10-12T15:04:05.000Z",
"business_id": "0199b1c0-…",
"api_version": "2026-10-18",
"data": {
"object": {
"id": "0199ed2a-…",
"object": "order",
"order_number": 42,
"status": "paid",
"currency": "USD",
"total_cents": 4500,
"customer": { "id": "…", "name": "Ana López", "phone": "50370000000", "email": null },
"items": [{ "id": "…", "product_id": "…", "variant_id": "…", "title": "Camisa Oxford - M", "unit_price_cents": 2500, "quantity": 2, "line_total_cents": 5000 }],
"paid_at": "2026-10-12T15:04:05.000Z"
}
}
}data.object is the object as it was right after the change. See every type in the event catalog.
The request
| Method | POST |
Content-Type |
application/json |
User-Agent |
Malla-Webhooks/1.0 |
Malla-Event-Id |
The event id (evt_...). |
Malla-Event-Type |
E.g. order.paid. |
Malla-Signature |
t=<unix seconds>,v1=<hex HMAC>. Verify it. |
Responding
- Answer any
2xxwithin 10 seconds. Do slow work in the background (a queue,waitUntil…) after answering. - Anything else, a timeout or a network error counts as a failure. Redirects aren't followed.
Retries
Failed deliveries are retried with exponential backoff (±20 % jitter): after about 1 minute, 5 minutes, 30 minutes, 2 hours, 5 hours, then 10 hours three times. That's 9 attempts over ~38 hours before the delivery is marked failed. You can resend any delivery from the dashboard or the API.
Idempotency
The same event can arrive more than once (a retry after a timeout, a manual resend). The event id is the same for every attempt and every endpoint, so dedupe on id: store the ids you've processed and skip repeats.
Events can also arrive out of order. When order matters, compare created, or fetch the latest state from the API.
Auto-disable
After 20 deliveries in a row fail every retry, the endpoint is disabled and the business's owners get an email. Disabled endpoints receive no new events. Re-enable it in the dashboard or with PATCH /webhook-endpoints/:id and { "status": "active" }.
URL rules
Endpoint URLs must be public https with no credentials. Private, loopback and link-local IPs, localhost, *.local and *.internal are rejected. To test locally, expose your server with a tunnel (Cloudflare Tunnel, ngrok…).
Limits
Up to 10 endpoints per business. Each subscribes to a list of event types or to * (all, including types added later).