Create single-use token - API Reference
Tokenization API
Create single-use token
POST
Try it
Credentials
HTTP Basic
- site_id :
Body Parameters
| Parameter | Type | Required |
|---|---|---|
| cardNumber | string | |
| extra | map | |
| tokenAliases | map | |
| customerId | object | |
| expirationMonth | integer | |
| expirationYear | integer | |
| cardHolderName | string | |
| cvc | object | |
| siteId | object |
Responses
200 Default Response
| Field | Type | Required |
|---|---|---|
| token | string | |
| networkTokenStatus | NetworkTokenStatus | |
| cardInfo | NonPciBasicCardInfo |
400 Default Response
| Field | Type | Required |
|---|---|---|
| message | string |
Request Example
curl --request POST \
--url https://pci-tokenization-sandbox.checkouttools.com/v1/tokenization/tokenize-single-use \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"cardNumber": "",
"extra": "",
"tokenAliases": "",
"customerId": "",
"expirationMonth": "",
"expirationYear": "",
"cardHolderName": "",
"cvc": ""
}'
Responses Example
200 Default Response
{
"token": "",
"networkTokenStatus": {
"created": false,
"reason": {
"code": {},
"message": ""
}
},
"cardInfo": {
"bin": "",
"lastFourDigits": "",
"cardBrand": "",
"expirationMonth": 0,
"expirationYear": 0
}
}