Card Token Information

👍

HTTPS POST / Server-to-Server

Sandbox endpoint : sandbox-pgw.2c2p.com/payment/4.1/cardtokeninfo
Run test with Swagger Editor

To go live, refer to: Live endpoint guide

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.

For API specifications, refer to: Card Tokens Information Request Parameters

{
    "paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=7",
    "clientID": "E380BEC2BFD727A4B6845133519F3AD7",
    "locale": "en"
}

 

Card Token Information Response


The sample code below demonstrates the correct structure for an API response.

For API specifications, refer to: Card Token Information Response Parameters

{
    "paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=",
    "cardTokenDetails": [{
        "cardToken": "000000001",
        "pan": "411111XXXXXX1111",
        "expiryDate": "11/20",
        "cardholderName": "DavidBilly",
        "cardholderEmail": "d********[email protected]***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********[email protected]***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********[email protected]***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"
}