Skip to main content
POST
Tokenize card

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
user_id
string
required

The Push identifier for the user the token will be associated with.

Example:

"user_28CJjV7P4Go5PNJvfzghiD"

pan
string
required

The cardholder's primary account number (PAN).

Example:

"5555555555554444"

cvv
string
required

The card verification value.

Example:

"123"

exp_month
string
required

The two-digit card expiration month.

Example:

"12"

exp_year
string
required

The two-digit card expiration year.

Example:

"28"

type
enum<string>

Optional processing type override to set payments processed using the token to card-only. If omitted, the processing type is dynamically assigned based on the processing category and bin type (card_only vs. secure_debit).

Available options:
card_only
Example:

"card_only"

Response

Token created successfully

token
string
required

A short-lived token that can be submitted to /authorize to process a payment.

Example:

"token_mbDRHFi3dxIZEtykHsgUGC"