Card Tokens Information

👍

HTTPS POST / Server-to-Server

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

Go live when you are ready, Live endpoint is provided.

Card Tokens Information API is for merchant to retrieve card token details.

Card Tokens Information Request


Below are the guidelines that how to prepare a card tokens information request and send to 2c2p

Sample request data show the request structure. Refer Card Tokens Information Request Parameterfor API Specification.

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

 

Card Tokens Information Response


Below sample response data show the data structure. Refer Card Tokens Information Response Parameter for API Specification.

{
    "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"
}