Card Token Information
HTTPS POST / Server-to-ServerRequests and Responses are encrypted using JWT
- Algorithm : HMAC SHA-256 using Merchantās Secret Key.
Refer JWT Token Guide on how to prepare requests and process responses.
https://sandbox-pgw.2c2p.com/payment/4.3/cardtokeninfohttps://pgw.2c2p.com/payment/4.3/cardtokeninfo
API ParameterCard Token Information Request Parameters Card Token Information Response Parameters
The Card Token Information API allows merchants to retrieve card token details.
Card Token Information Request
To prepare a card token information request, refer to the guidelines below.
The sample code below demonstrates the correct structure for an API request.
{
"paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=7",
"clientID": "E380BEC2BFD727A4B6845133519F3AD7",
"locale": "en"
}curl --location --request POST 'https://sandbox-pgw.2c2p.com/payment/4.3/cardtokeninfo' \
--header 'Content-Type: application/json' \
--data-raw '{
"paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=7",
"clientID": "E380BEC2BFD727A4B6845133519F3AD7",
"locale": "en"
}'Ā
Card Token Information Response
The sample code below demonstrates the correct structure for an API response.
{
Ā Ā Ā Ā "paymentToken":Ā "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=",
Ā Ā Ā Ā "customerToken": [{
Ā Ā Ā Ā Ā Ā Ā Ā "channelCode":Ā "CC",
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā "token":Ā "000000001",
Ā Ā Ā Ā Ā Ā Ā Ā "accountNo":Ā "411111XXXXXX1111",
Ā Ā Ā Ā Ā Ā Ā Ā "expiry":Ā "XXXX-XX-XX",
Ā Ā Ā Ā Ā Ā Ā Ā "name":Ā "DavidBilly",
Ā Ā Ā Ā Ā Ā Ā Ā "email":Ā "d***y@g**l.com",
Ā Ā Ā Ā Ā Ā Ā Ā "status":Ā "EX",
Ā Ā Ā Ā Ā Ā Ā Ā "iconUrl":Ā "https://img.2c2p.com/pgw/icon/visa.png",
Ā Ā Ā Ā Ā Ā Ā Ā "logoUrl":Ā "https://img.2c2p.com/pgw/visa.png"
Ā Ā Ā Ā }, {
Ā Ā Ā Ā Ā Ā Ā Ā "channelCode":Ā "TRUEMONEY",
Ā Ā Ā Ā Ā Ā Ā Ā "token":Ā "000000001",
Ā Ā Ā Ā Ā Ā Ā Ā "accountNo":Ā "123XXXX5555",
Ā Ā Ā Ā Ā Ā Ā Ā "expiry":Ā "XXXX-XX-XX",
Ā Ā Ā Ā Ā Ā Ā Ā "name":Ā "DavidBilly",
Ā Ā Ā Ā Ā Ā Ā Ā "email":Ā "d***y@g**l.com",
Ā Ā Ā Ā Ā Ā Ā Ā "status":Ā "ED",
Ā Ā Ā Ā Ā Ā Ā Ā "iconUrl":Ā "https://img.2c2p.com/pgw/icon/truemoney.png",
Ā Ā Ā Ā Ā Ā Ā Ā "logoUrl":Ā "https://img.2c2p.com/pgw/truemoney.png"
Ā Ā Ā Ā }, {
Ā Ā Ā Ā Ā Ā Ā Ā "channelCode":Ā "CC",
Ā Ā Ā Ā Ā Ā Ā Ā "token":Ā "000000001",
Ā Ā Ā Ā Ā Ā Ā Ā "accountNo":Ā "411111XXXXXX1111",
Ā Ā Ā Ā Ā Ā Ā Ā "expiry":Ā "2021-12-31",
Ā Ā Ā Ā Ā Ā Ā Ā "name":Ā "DavidBilly",
Ā Ā Ā Ā Ā Ā Ā Ā "email":Ā "d***y@g**l.com",
Ā Ā Ā Ā Ā Ā Ā Ā "status":Ā "A",
Ā Ā Ā Ā Ā Ā Ā Ā "iconUrl":Ā "https://img.2c2p.com/pgw/icon/visa.png",
Ā Ā Ā Ā Ā Ā Ā Ā "logoUrl":Ā "https://img.2c2p.com/pgw/visa.png"
Ā Ā Ā Ā }],
Ā Ā Ā Ā "respCode":Ā "0000",
Ā Ā Ā Ā "respDesc":Ā "success"
}Run test with Swagger Editor
Updated about 2 months ago
