Skip to main content
How it works
Select a step, or let it play
The personYour appGet your cardWeb3CardplatformWhite-label appAPI v2 · eventsIdentity checkPartner issuerYour serveryour backendPOST /v2/invites
Step by step
  1. One call, with the email, the mobile number and the id of the person in your system (externalRef), which comes back in every event.

    curl -X POST "$W3C_API/invites" \
    -H "Authorization: Bearer $W3C_API_KEY" \
    -H "Idempotency-Key: invite-crm-1042" \
    -H "Content-Type: application/json" \
    -d '{"email": "[email protected]", "phone": "+14155550167", "externalRef": "crm-1042"}'

    # → { "success": true, "invite": { "id": "inv_8QX4M2T7KA9PB", "status": "pending",
    # "link": "https://cards.example.com/invite/9f3a…" } }

    $W3C_API stands for the API address of your environment, like https://api.sandbox.creditcard/v2, and $W3C_API_KEY for your key. The addresses and ids are samples.

  2. Open the link in an iframe or in a WebView. The person confirms the email and the mobile number and verifies the identity, without leaving your app. No password and no authenticator app of ours.

  3. The page tells your app it is done, and your server receives the signed events: the account, the identity and the answer of the card issuer.

  4. The API returns the transaction ready to sign, as DeFi APIs such as 0x and Uniswap do. Your wallet, or the wallet of the person, signs it. The card is created when the network confirms.

  5. Ask for a secure screen and open it in a frame. The card number never passes through your server, so it stays out of your PCI scope. The link works once, for 5 minutes.

  6. Each purchase arrives as a signed event. When a store asks to confirm a purchase, the code comes in the event and you show it in your app.

Three modes, one platform​

A company chooses how people get into its card program. The choice is made in the Business panel, in White label, and can be changed later: changing it never removes anyone, and applies to new sign-ups.

OpenPrivateEmbedded
Who opens an accountAnyone who reaches your appOnly people with your inviteOnly people with your invite
Where the person uses the cardThe app with your brand, on your domainThe app with your brand, on your domainYour own web or mobile app
Sign-in of the personPassword and authenticator appPassword and authenticator app, created in the inviteThe sign-in of your app. No password and no authenticator app of ours
Who shows the card detailsThe appThe appYour app, on a secure screen of ours inside a frame
What you buildNothingNothing, or one call to create invitesYour screens and a server that calls the API
PlanEvery planPaid plansPaid plans

In the three modes the platform does the same work behind: the identity verification, the program contract on the network, the cards, which are issued by licensed partner institutions within the Visa network, and the signed events of everything that happens.

Where the mode is chosen: White label, Who can open an account.

Open: an app with your brand​

You set the name, the logo, the colors, the cards and your domain in the panel, and the app is ready. Anyone who reaches its address signs up: email, authenticator app and mobile number. Then the person links a wallet, deposits, verifies their identity and gets a card.

You build nothing. If you want your system to follow what happens, add a webhook.

See Get started in the Business panel and Create a Personal account.

Private: the same app, by invite only​

The sign-up page of your app closes. Only people you invite get in.

  1. You create an invite, in the panel or with POST /v2/invites, with the email and the mobile number of the person.
  2. You send the link, by the channel you prefer. It works for 30 days.
  3. The person opens the invite page: confirms the email, creates the password, sets up the authenticator app, confirms the mobile number and verifies their identity.
  4. The person signs in to the app with your brand. Your system gets user.created.
  5. You can pause or revoke the invite at any time, also after the account is open.

See Invites and Accept an invite.

Embedded: the cards inside your app​

Your users never leave your app. Your server talks to the API, and two things open in a frame of ours inside your screens: the sign-up and the card details. This is how card platforms such as Stripe Issuing keep the card number out of your systems: the sensitive part runs in a frame of the provider.

1. Create the invite​

curl -X POST https://api.sandbox.creditcard/v2/invites \
-H "Authorization: Bearer w3c_test_YOUR_SECRET" \
-H "Idempotency-Key: invite-crm-1042" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "phone": "+14155550167", "externalRef": "crm-1042"}'

The answer brings invite.link. Keep it: the person may need to open it again to finish. externalRef is the id of the person in your system: it comes back in the user and in the user.* and invite.* events. The other events bring userId, so keep the pair.

2. Open the sign-up inside your app​

Open the link in an iframe on your website, or in a WebView in your mobile app:

<iframe src="https://cards.example.com/invite/9f3a…" allow="camera; microphone" style="width: 100%; height: 640px; border: 0"></iframe>
  • allow="camera; microphone" is required: the identity verification opens inside the frame, and without it the browser blocks the camera.
  • On a website, the frame opens only on the sites you listed in Sites for the sign-up, in White label. In a WebView, or opened directly, the link always works. To develop, list 127.0.0.1 or the name of a tunnel: localhost and names with a port are not accepted.
  • The person confirms the email and the mobile number with the codes that arrive, and verifies their identity. There is no password and no authenticator app of ours.
  • The invite covers the identity verification: the person does not need a deposit to verify.
A sample page, Your app, with the sign-up inside a frame.

3. Know when it is done​

When the identity is approved, the page shows Your account is ready. You can close this screen. and sends a message to your page:

window.addEventListener("message", (event) => {
if (event.origin !== "https://cards.example.com") return; // the address of your users' app
if (event.data?.type === "w3c.invite.done") closeSignUp(event.data.userId);
});

Use the message to close the frame. A review of the identity can take longer than the person stays on the page, and in a WebView there is no page above the frame to receive the message. So, for anything that matters, trust the signed events your server receives, which work the same in an iframe, in a WebView or with the link opened directly. Your app can also read GET /v2/users?externalRef=, whose kyc turns approved. The used of an invite only means the account was born, before the identity. Ask for the card when user.cardholder.updated arrives with active:

EventMeaning
user.createdThe account was born. It brings userId, inviteId and your externalRef
user.kyc.updatedThe identity was approved or declined
user.cardholder.updatedThe card issuer answered about the person. With active, the person can have a card

4. Request the card​

A card is paid from the balance that the wallet that signs has in the contract of your program. That wallet can be an admin wallet of your company, or the wallet of the person: link it to the account with POST /v2/users/{id}/wallets and fund it with a deposit. The wallet needs a balance of at least the first load plus the maxCharges of the answer. See Who pays. Then ask for the card:

curl -X POST https://api.sandbox.creditcard/v2/cards \
-H "Authorization: Bearer w3c_test_YOUR_SECRET" \
-H "Idempotency-Key: card-crm-1042-1" \
-H "Content-Type: application/json" \
-d '{"userId": "user_4M8T2KX9PQ7AB", "productId": "prd_12", "name": "My card", "firstLoad": 20}'

The answer brings calls: the transaction ready to sign. The wallet signs and sends it, and the card is created when the network confirms. You choose the wallet: the one of the person, in MetaMask or WalletConnect, or a wallet your company runs, with ethers, viem or a custody service. See Network operations.

Your server gets card.created and then card.activated. Top-ups work the same way, with POST /v2/cards/{id}/loads.

5. Show the card​

curl -X POST https://api.sandbox.creditcard/v2/cards/card_7KQ2M9XF3TB1A/secure-view \
-H "Authorization: Bearer w3c_test_YOUR_SECRET" \
-H "Idempotency-Key: view-7f2c" \
-H "Content-Type: application/json" \
-d '{"view": "card"}'

Open secureView.url in a frame, with allow="clipboard-write" so that Copy number works inside it. The number, the expiry date and the security code show inside it. Ask for a new link, with a new Idempotency-Key, each time the person opens the screen. The card number never passes through your server, so it stays out of your PCI scope. The link works once, for 5 minutes. See The secure card screen.

The same sample page with the secure card screen inside a frame.

6. Purchases and purchase codes​

Each purchase arrives as card.transaction.authorized, .declined, .refunded or .reversed. When a store asks to confirm a purchase, card.otp brings the code: show it in your app, or open the secure screen with "view": "otp". You can also freeze, unfreeze and cancel the card with one call each. See Users and cards.

Which one to choose​

If you wantChoose
To launch fast, with no code, for anyoneOpen
A program for your customers, your team or a closed community, with no codePrivate
Cards as a feature of a product you already have, with your own sign-in and your own screensEmbedded

You can start in Open or Private and move to Embedded when your app is ready: whoever is already in stays as they are.

PageWhat it covers
White labelWhere the mode is chosen, and the sites where the frames can open
InvitesInvites and invite credit in the panel
API v2 overviewThe principles of the API and the first call
Embedded accountsWallets and the secure card screen
Flow builderHow a token reaches a card, step by step