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
Live in three steps.
- At checkoutThe store asks for a code
The card network sends a one-time 3-D Secure code.
· card •••• 6614· merchant · amount - Seconds laterIt reaches your backend
A signed webhook, or a call to the API.
⇢ threeds.code ✓GET /cards/6614/3ds-codes 200 - ThenThe right person enters it
Show it to the cardholder, or give it to the agent.
→ code 482 913✓ payment confirmed
3-D Secure, end to end.
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.
One event
threeds.code, signed with HMAC-SHA256.
Latest codes
GET /cards/{id}/3ds-codes returns the active ones.
Merchant and amount
So the user knows which payment the code is for.
Agents can finish checkout
An agent paying online gets its code from your backend.
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
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.
3-D Secure: FAQ
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.