Card as a Service · 3-D Secure

3-D Secure codes, by API

When a store asks for a one-time code, it comes to your backend — with the card, merchant and amount — so the right user or agent can finish the payment.

  • Webhook threeds.code
  • Merchant and amount
  • Signed
01 — How it works

Live in three steps.

  1. At checkoutThe store asks for a code

    The card network sends a one-time 3-D Secure code.

    api
    · card •••• 6614
    · merchant · amount
  2. Seconds laterIt reaches your backend

    A signed webhook, or a call to the API.

    api
    ⇢ threeds.code ✓
    GET /cards/6614/3ds-codes 200
  3. ThenThe right person enters it

    Show it to the cardholder, or give it to the agent.

    api
    → code 482 913
    ✓ payment confirmed
02 — What you get

3-D Secure, end to end.

3-D Secure

Codes go where the card lives

Each code carries the card, merchant, amount and expiry — your app shows it to the user or agent the card belongs to.

GuaraVIRTUAL
•••• •••• •••• 6614
3DS · codesMASTERCARD
Webhooks

One event

threeds.code, signed with HMAC-SHA256.

threeds.code
API

Latest codes

GET /cards/{id}/3ds-codes returns the active ones.

Context

Merchant and amount

So the user knows which payment the code is for.

AI agents

Agents can finish checkout

An agent paying online gets its code from your backend.

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.

// a one-time 3-D Secure code arrives as a signed webhook
app.post("/guara/webhooks", express.raw({ type: "application/json" }), (req, res) => {
  if (!verify(req)) return res.status(401).end();   // HMAC-SHA256 signature

  const event = JSON.parse(req.body);
  if (event.type === "threeds.code") {
    const { card_id, code, merchant, amount_cents, expires_at } = event.data;
    notify(owners.byCard(card_id), { code, merchant, amount_cents, expires_at });
  }
  res.status(200).end();
});

// or ask for the latest codes: GET /cards/{id}/3ds-codes
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

What is 3-D Secure?

An extra check some stores ask for at checkout: the cardholder enters a one-time code to confirm the payment.

How do I get the code of a virtual card?

It comes to your backend as a signed threeds.code webhook, and GET /cards/{id}/3ds-codes returns the active codes of a card.

What comes with a code?

The card, the code, the merchant, the amount and currency, and when the code expires.

Which key can read the codes?

A key with the cards:read scope.

Can I test it?

Yes. In the sandbox one call simulates a 3-D Secure code for any of your test cards.