Create encrypted token - API Reference
Create encrypted token
POST
Try it
Credentials
HTTP Basic
site_id:
Body Parameters
| Parameter | Type | Required |
|---|---|---|
| body | object | Yes |
EncryptedTokenizedPayload
- Any Of
- EncryptedTokenizeFullPaymentMethodWithCVVPayload
cardNumber: stringexpirationMonth: stringexpirationYear: stringcvc: stringcardHolderName: stringsiteId: object
- EncryptedTokenizeFullPaymentMethodWithCVVPayload
Responses
200 Default Response
- TokenPayload
token: stringnetworkTokenStatus: NetworkTokenStatuscardInfo: NonPciBasicCardInfo
- TokenPayload
400 Default Response
- TokenizationErrorResponse
message: string
- TokenizationErrorResponse
Request
Curl
curl --request POST \
--url https://pci-tokenization-sandbox.checkouttools.com/v1/tokenization/tokenize-encrypted \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"cardNumber": "",
"expirationMonth": "",
"expirationYear": "",
"cvc": "",
"cardHolderName": ""
}'
Responses
- 200
// Default Response
{
"token": "",
"networkTokenStatus": {
"created": false,
"reason": {
"code": {},
"message": ""
}
},
"cardInfo": {
"bin": "",
"lastFourDigits": "",
"cardBrand": "",
"expirationMonth": 0,
"expirationYear": 0
}
}