Card as a Service · Card webhooks

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
01 — How it works

Live in three steps.

  1. Minute 1Add an endpoint

    In the console or by API, with a key that may manage webhooks.

    api
    · scope: webhooks:manage
    · signing secret ✓
  2. Minute 2Verify the signature

    HMAC-SHA256 over the timestamp and the raw body.

    api
    ⇢ X-GuaraPay-Signature
    ✓ v1 matches
  3. Every eventAnswer 200

    No 200 — the event is sent again, up to 7 times.

    api
    ⇢ transaction.posted ✓
    ← 200 OK
02 — What you get

Card webhooks, end to end.

Webhooks

One stream for every card

Card and transaction events from all your cards reach one endpoint — your ledger stays in sync without polling.

GuaraVIRTUAL
•••• •••• •••• 3907
Events · ledgerMASTERCARD
Security

Signed

X-GuaraPay-Signature, HMAC-SHA256 over "t.body".

Delivery

Retried

Up to 7 retries until your endpoint answers 200.

3-D Secure

Codes by webhook

One-time 3-D Secure codes reach you by API and webhook.

Keys

Scoped

Only a key with webhooks:manage can change endpoints.

webhooks:manage
03 — Code

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
});
04 — Access

Tell us what you're building.

Three steps from here to live cards.

  1. We reply within a business dayPricing for your volume, by email or in your messenger.
  2. You connect the APIKeys, webhooks and MCP for your agents.
  3. You go liveSwitch to live keys and issue cards to your users.
Prefer email? support@guarapay.io
What will the cards be for?
Cards per month

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.