Every card event, signed and delivered
Issued cards, purchases, declines — each event comes to your endpoint signed, and is retried until you take it.
- HMAC-SHA256
- 7 retries
- One endpoint
Live in three steps.
- Minute 1Add an endpoint
In the console or by API, with a key that may manage webhooks.
· scope: webhooks:manage· signing secret ✓ - Minute 2Verify the signature
HMAC-SHA256 over the timestamp and the raw body.
⇢ X-GuaraPay-Signature✓ v1 matches - Every eventAnswer 200
No 200 — the event is sent again, up to 7 times.
⇢ transaction.posted ✓← 200 OK
Card webhooks, end to end.
One stream for every card
Card and transaction events from all your cards reach one endpoint — your ledger stays in sync without polling.
Signed
X-GuaraPay-Signature, HMAC-SHA256 over "t.body".
Retried
Up to 7 retries until your endpoint answers 200.
Codes by webhook
One-time 3-D Secure codes reach you by API and webhook.
Scoped
Only a key with webhooks:manage can change endpoints.
A few lines
to start.
Same REST API, same keys and limits for every program. Docs open in the console after sign-up.
// every card event reaches your backend, signed app.post("/guara/webhooks", express.raw({ type: "application/json" }), (req, res) => { if (!verify(req)) return res.status(401).end(); // HMAC-SHA256 over "t.body" const event = JSON.parse(req.body); if (seen.has(event.id)) return res.status(200).end(); // a retry: already handled seen.add(event.id); if (event.type === "transaction.posted") ledger.record(event.data); if (event.type === "card.issued") users.attach(event.data); res.status(200).end(); // anything else → retried, up to 7 times });
Tell us what you're building.
Three steps from here to live cards.
- We reply within a business dayPricing for your volume, by email or in your messenger.
- You connect the APIKeys, webhooks and MCP for your agents.
- You go liveSwitch to live keys and issue cards to your users.
Card webhooks: FAQ
Which events come by webhook?
Card events (card.issued, card.blocked, card.unblocked, card.cancelled) and transaction events (transaction.posted, transaction.declined, transaction.refunded). The full list is in the docs in the console.
How do I verify a webhook?
Split X-GuaraPay-Signature into t and v1, compute HMAC-SHA256 over "t.body" with your signing secret, compare in constant time and reject stale timestamps.
What if my endpoint is down?
The webhook is retried up to 7 times. Make your handler idempotent, so a retried event is handled once.
Are webhooks the same as real-time authorization?
No. Webhooks tell you what happened. Real-time authorization asks your endpoint before a purchase and needs an answer within 1.2 seconds.