Create multi-use token - API Reference

Tokenization API

Create multi-use token

POST

Try it

Credentials
HTTP Basic
site_id:


Body Parameters

Name Type Required Description
cardNumber string ✅
expirationMonth integer ✅
expirationYear integer ✅
cardHolderName string ✅
networkToken NetworkTokenOptions
extra map<string, string>
tokenAliases map<string, string>
customerId object

Responses

200

Default Response

{
   "token": "",
   "networkTokenStatus": {
      "created": false,
      "reason": {
         "code": {},
         "message": ""
      }
   },
   "cardInfo": {
      "bin": "",
      "lastFourDigits": "",
      "cardBrand": "",
      "expirationMonth": 0,
      "expirationYear": 0
   }
}

Request

Curl

curl --request POST \  
  --url https://pci-tokenization-sandbox.checkouttools.com/v1/tokenization/tokenize \  
  --header 'accept: application/json' \  
  --header 'content-type: application/json' \  
  --data '{  
    "cardNumber": "",  
    "expirationMonth": "",  
    "expirationYear": "",  
    "cardHolderName": "",  
    "networkToken": {  
        "provision": "",  
        "async": false  
    }  
}'

Responses