These docs are for v4.0.2. Click to read the latest docs for v4.3.0.

Card Token Information

👍

HTTPS POST / Server-to-Server

https://sandbox-pgw.2c2p.com/payment/4.1/cardtokeninfo
https://pgw.2c2p.com/payment/4.1/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.1/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=",
    "cardTokenDetails": [{
        "cardToken": "000000001",
        "pan": "411111XXXXXX1111",
        "expiryDate": "11/20",
        "cardholderName": "DavidBilly",
        "cardholderEmail": "d********y@g***l.com",
        "status": "EX",
        "iconUrl": "https://img.2c2p.com/pgw/icon/visa.png",
        "logoUrl": "https://img.2c2p.com/pgw/visa.png"
    }, {
        "cardToken": "000000002",
        "pan": "555544XXXXXX4444",
        "expiryDate": "",
        "cardholderName": "DavidBilly",
        "cardholderEmail": "d********y@g***l.com",
        "status": "ED",
        "iconUrl": "https://img.2c2p.com/pgw/icon/master_card.png",
        "logoUrl": "https://img.2c2p.com/pgw/master_card.png"
    }, {
        "cardToken": "000000003",
        "pan": "555544XXXXXX5555",
        "expiryDate": "XX/XX",
        "cardholderName": "DavidBilly",
        "cardholderEmail": "d********y@g***l.com",
        "status": "A",
        "iconUrl": "https://img.2c2p.com/pgw/icon/master_card.png",
        "logoUrl": "https://img.2c2p.com/pgw/master_card.png"
    }],
    "respCode": "0000",
    "respDesc": "success"
}

Run test with Swagger Editor