Get card
curl --request GET \
--url https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'const options = {
method: 'GET',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>'
}
};
fetch('https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"card": {
"id": "mock-bitnob-1789820551052",
"status": "pending",
"currency": "USD",
"cardType": "dollar"
}
}
}{
"success": false,
"message": "Virtual card not found",
"error": "MERCHANT_VC_NOT_FOUND"
}Virtual cards
Get card
Retrieve a virtual card by id. Scope: virtual-cards:read.
GET
/
api
/
v1
/
merchant
/
virtual-cards
/
{id}
Get card
curl --request GET \
--url https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'const options = {
method: 'GET',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>'
}
};
fetch('https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/virtual-cards/{id}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"card": {
"id": "mock-bitnob-1789820551052",
"status": "pending",
"currency": "USD",
"cardType": "dollar"
}
}
}{
"success": false,
"message": "Virtual card not found",
"error": "MERCHANT_VC_NOT_FOUND"
}
