Skip to main content
POST
/
api
/
v1
/
elements
/
tokenize
Tokenize card data for a session (iframe / allowed origins only)
curl --request POST \
  --url http://localhost:3001/api/v1/elements/tokenize \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionId": "es_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "number": "4242424242424242",
  "expMonth": 12,
  "expYear": 2030,
  "cvc": "123"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "last4": "<string>",
    "brand": "<string>",
    "expiresInSeconds": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
sessionId
string
required

Session id returned from POST /elements/session

Example:

"es_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

number
string
required
Example:

"4242424242424242"

expMonth
number
required
Required range: 1 <= x <= 12
Example:

12

expYear
number
required
Required range: 2024 <= x <= 2100
Example:

2030

cvc
string
required
Example:

"123"

Response

OK

success
boolean
required
Example:

true

data
object
required