Store a customer's card so you can charge it later without the customer present.
- Open a tokenization request with
POST /card-tokenization. Send the customer to thecard_urlin the response. - The customer enters their card. Dime places a small verification charge on it: a random 0.30–0.99 USD, converted to the request's currency. The charge is not refunded.
- The customer reads the amount from their statement, and you submit it with
PUT /card-tokenization/verify. - Call
GET /cards/{card_request_token}. The response'stokenis the card token. - Charge the card token with
POST /payments/saleorPOST /payments/auth.
In sandbox the verification charge is always 65, and verify also accepts 1.58, 28 or 32.46.
Returns card_url, the hosted page where the customer enters their card. webhookUrl is required: the customer enters the card on Dime's page, so the webhook is how you learn the outcome. Expect card_request.succeeded once the customer verifies, or card_request.failed. Some cards also send card_request.card_saved first; see Webhooks. Omitting it returns 400 parameter_missing.
Your own reference for this request. Returned as reference_id on the card.
Required (or its alias callbackUrl). Where Dime POSTs the tokenization request's result.
Where to send the customer after they enter their card.
Alias of webhookUrl, kept for v1 parity. Used only when webhookUrl is absent.
- Mock serverhttps://docs.dimepay.net/_mock/apis/v2/dime-v2/card-tokenization
- Sandbox. A separate environment with its own data; no real money
moves. Use a client key created in sandbox.
https://sandbox.api.dimepay.app/dapi/v2/card-tokenization
- Production. Real payments. Use a client key created in production.
https://api.dimepay.app/dapi/v2/card-tokenization
curl -i -X POST \
https://docs.dimepay.net/_mock/apis/v2/dime-v2/card-tokenization \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Dime-Client: YOUR_API_KEY_HERE' \
-d '{
"id": "your-reference-1024",
"currency": "USD",
"webhookUrl": "https://example.com/hooks/card",
"redirectUrl": "https://example.com/done"
}'The tokenization request was opened.
The tokenization request's token. Use it to verify and to retrieve the card.
STARTED: opened, card not yet entered. VERIFICATION: card accepted and the verification charge placed; waiting for PUT /card-tokenization/verify. SUCCESS: verified; the card can be retrieved. FAILED: the card was declined, or verification failed three times.
{ "object": "card_request", "token": "crq_lnM3xzwx_nFcWA9XR_bVWBl76P_slIlKTM", "status": "STARTED", "currency": "USD", "verification_attempts": 0, "last_four_digits": null, "card_scheme": null, "card_expiry": null, "expired": false, "metadata": { "type": "API", "api_version": "v2", "return_url": "https://example.com/done", "webhook_url": "https://example.com/hooks/card", "reference_id": "your-reference-1024" }, "created_at": "2026-08-26T00:53:02.169Z", "card_url": "https://pay.sandbox.dimepay.app/e-card/m82yalYupLIdpAz/crq_lnM3xzwx_nFcWA9XR_bVWBl76P_slIlKTM" }