Card Token Information

👍

HTTPS POST / Server-to-Server

https://sandbox-pgw.2c2p.com/payment/4.3/cardtokeninfo
https://pgw.2c2p.com/payment/4.3/cardtokeninfo

📘

API Parameter

Card 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