Cards Pan
This endpoint is used to get details of a card with full card number and cvv
POST {{base_url}}/business/vcard-pan
Headers
Name
Type
Description
Authorization*
String
SECRET_KEY
Request Body
Name
Type
Description
cardid*
Sting
Card ID
Your secret keys are to be kept secret and only stored on your servers. Do not pass your secret key to the front-end language where it can be exploited.
Take a look at how you might do this:
curl --location '{{base_url}}/business/vcard-pan' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRET_KEY' \
--data '{
"cardid": "021109a9-4bfa-4321-02ca-dc91e9a7b4"
}'const axios = require('axios');
let data = JSON.stringify({
"cardid": "021109a9-4bfa-4321-02ca-dc91e9a7b4"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{base_url}}/business/vcard-pan'
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer SECRET_KEY'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{{base_url}}/business/vcard-pan',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"cardid": "021109a9-4bfa-4321-02ca-dc91e9a7b4"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Bearer SECRET_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer SECRET_KEY'
};
var request = http.Request('POST', Uri.parse('{{base_url}}/business/vcard-pan'));
request.body = json.encode({
"cardid": "021109a9-4bfa-4321-02ca-dc91e9a7b4"
});
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}
Sample response
{
"status": true,
"msg": "Card info retrieved",
"exist": true,
"responsecode": "01",
"cardnumber": "583310035580000",
"cvv": "915",
"expiryyr": "27",
"expirymnt": "06",
"current_bal": 112.27,
"available_bal": 112.27,
"cardstatus": true
}Last updated
Was this helpful?
