Skip to main content
Card tokenization replaces a card number with a Jupico token. You send the token on sales, authorizations, subscriptions, and installments instead of the card details. You can tokenize a card in two ways:

Tokenize in the browser

Render the <tokenization-form> web component on your checkout page. The component sends the card to Jupico and returns a one-time token. Your backend charges the one-time token and gets a permanent token back in the response. See Tokenization for the full flow and Web components for the component reference.

Tokenize raw card data

Call POST /v1/tokenization/creditcard/raw from your server to exchange raw card data for a permanent token.
Sending raw card numbers through your servers puts them in PCI DSS scope. Use this endpoint only if your systems are PCI DSS compliant.

Before you start

  • Your API user needs raw tokenization access, and card tokenization must be enabled for the product and the submerchant. Ask your Jupico contact to set this up.
  • This endpoint runs on its own host. Use the server URL shown in the API reference, not the platform host.

Send the request

Use the token

The response contains data.paymentToken. Store it with the customer record, then send it as the paymentToken on later transactions:
Store a token only if the customer agreed to save their card. Keep tokens on your backend.

Errors

Tokenization errors use the tkn_cc_* codes, such as tkn_cc_invalid_number and tkn_cc_expired_credit_card. Too many requests return HTTP 429 with tkn_cc_too_many_requests. See Error codes for the full list.

What’s next

BIN lookup

Look up card details from the first digits of a card number. Coming soon.

Card transactions

Charge a tokenized card with a sale or authorization.
Last modified on November 9, 2026