Skip to main content
GET
/
v2.01
/
{ClientId}
/
cards
/
fingerprints
/
{Fingerprint}
<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $fingerprint = '36c74d2e60ba474eab6d6f6d46a642b0';

    $response = $api->Cards->GetByFingerprint($fingerprint);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
[
    {
        "ExpirationDate": "1229",
        "Alias": "497010XXXXXX8183",
        "CardType": "CB_VISA_MASTERCARD",
        "CardProvider": "VISA",
        "Country": "FRA",
        "Product": "I",
        "BankCode": "unknown",
        "Active": true,
        "Currency": "EUR",
        "Validity": "UNKNOWN",
        "UserId": "user_m_01HWQ0VWBTFSWCPF29SR3E7PK9",
        "Id": "card_m_01HXVF29TMRSTBRE11RY6EY6PT",
        "Tag": null,
        "CreationDate": 1715687466,
        "Fingerprint": "48d63bbcfc2c47fcbc19df35e47b2f8d",
        "CardHolderName": "Jody Smith"
    },
    {
        "ExpirationDate": "1229",
        "Alias": "497010XXXXXX8183",
        "CardType": "CB_VISA_MASTERCARD",
        "CardProvider": "VISA",
        "Country": "FRA",
        "Product": "I",
        "BankCode": "unknown",
        "Active": true,
        "Currency": "EUR",
        "Validity": "UNKNOWN",
        "UserId": "user_m_01HWWPNMR93ASQYJEH6XVDW44T",
        "Id": "card_m_01HXVD91R8QEDY7MYC8TX9R9M8",
        "Tag": null,
        "CreationDate": 1715685590,
        "Fingerprint": "48d63bbcfc2c47fcbc19df35e47b2f8d",
        "CardHolderName": "Alex Smith"
    }
]
This call returns all the cards with the same Fingerprint value. This can be useful to detect abnormal or fraudulent behavior. Learn more about card fingerprint →

Path parameters

Fingerprint
string
required
The unique representation of the card number. This string can be used to track the card behavior while keeping the card information confidential.

Responses

Array (Cards)
array
The list of the cards created by the platform.
[
    {
        "ExpirationDate": "1229",
        "Alias": "497010XXXXXX8183",
        "CardType": "CB_VISA_MASTERCARD",
        "CardProvider": "VISA",
        "Country": "FRA",
        "Product": "I",
        "BankCode": "unknown",
        "Active": true,
        "Currency": "EUR",
        "Validity": "UNKNOWN",
        "UserId": "user_m_01HWQ0VWBTFSWCPF29SR3E7PK9",
        "Id": "card_m_01HXVF29TMRSTBRE11RY6EY6PT",
        "Tag": null,
        "CreationDate": 1715687466,
        "Fingerprint": "48d63bbcfc2c47fcbc19df35e47b2f8d",
        "CardHolderName": "Jody Smith"
    },
    {
        "ExpirationDate": "1229",
        "Alias": "497010XXXXXX8183",
        "CardType": "CB_VISA_MASTERCARD",
        "CardProvider": "VISA",
        "Country": "FRA",
        "Product": "I",
        "BankCode": "unknown",
        "Active": true,
        "Currency": "EUR",
        "Validity": "UNKNOWN",
        "UserId": "user_m_01HWWPNMR93ASQYJEH6XVDW44T",
        "Id": "card_m_01HXVD91R8QEDY7MYC8TX9R9M8",
        "Tag": null,
        "CreationDate": 1715685590,
        "Fingerprint": "48d63bbcfc2c47fcbc19df35e47b2f8d",
        "CardHolderName": "Alex Smith"
    }
]
<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $fingerprint = '36c74d2e60ba474eab6d6f6d46a642b0';

    $response = $api->Cards->GetByFingerprint($fingerprint);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}