Card List
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--data '
{
"cardId": "<string>",
"status": "<string>",
"cardTypeId": 123,
"cardholderId": 123,
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list"
payload = {
"cardId": "<string>",
"status": "<string>",
"cardTypeId": 123,
"cardholderId": 123,
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10
}
headers = {
"X-Forwarded-From": "<x-forwarded-from>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Forwarded-From': '<x-forwarded-from>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cardId: '<string>',
status: '<string>',
cardTypeId: 123,
cardholderId: 123,
startTime: 123,
endTime: 123,
pageNum: 1,
pageSize: 10
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cardId' => '<string>',
'status' => '<string>',
'cardTypeId' => 123,
'cardholderId' => 123,
'startTime' => 123,
'endTime' => 123,
'pageNum' => 1,
'pageSize' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Forwarded-From: <x-forwarded-from>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list"
payload := strings.NewReader("{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("Content-Type", "application/json")
.body("{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 123,
"msg": "<string>",
"data": {
"total": 123,
"records": [
{
"cardId": "card-12345678",
"cardToken": "tok_12345678",
"maskedCardNumber": "**** **** **** 4242",
"expiryDate": "12/25",
"cardStatus": "ACTIVE",
"cardType": "VIRTUAL",
"brand": "VISA",
"currency": "USD",
"accountId": "wsb-12345678",
"cardholderId": "ch-12345678",
"cardName": "My Virtual Card",
"availableBalance": 1000,
"currentBalance": 1000,
"blockedAmount": 0,
"spendingLimit": 5000,
"dailyLimit": 1000,
"monthlyLimit": 10000,
"dailySpent": 100,
"monthlySpent": 500,
"createTime": 1640995200000,
"updateTime": 1640995200000,
"activateTime": 1640995200000,
"expireTime": 1767225600000,
"settings": {
"enableOnline": true,
"enableInternational": true,
"enableContactless": true,
"enableAtm": true,
"allowedMcc": [
"5411",
"5812"
],
"blockedMcc": [
"7995"
],
"pinFreeAmount": 100,
"autoLoad": false,
"autoLoadAmount": 1000,
"autoLoadThreshold": 100
},
"limits": {
"spendingLimit": 5000,
"dailyLimit": 1000,
"monthlyLimit": 10000,
"perTransactionLimit": 2500,
"atmDailyLimit": 500,
"atmPerTransactionLimit": 300
},
"features": [
"CHIP",
"NFC",
"3DS"
]
}
]
}
}Cards
Card List
Query cards with pagination and filters
POST
/
api
/
v2.1
/
fincard
/
virtual
/
card
/
list
Card List
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--data '
{
"cardId": "<string>",
"status": "<string>",
"cardTypeId": 123,
"cardholderId": 123,
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list"
payload = {
"cardId": "<string>",
"status": "<string>",
"cardTypeId": 123,
"cardholderId": 123,
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10
}
headers = {
"X-Forwarded-From": "<x-forwarded-from>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Forwarded-From': '<x-forwarded-from>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cardId: '<string>',
status: '<string>',
cardTypeId: 123,
cardholderId: 123,
startTime: 123,
endTime: 123,
pageNum: 1,
pageSize: 10
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cardId' => '<string>',
'status' => '<string>',
'cardTypeId' => 123,
'cardholderId' => 123,
'startTime' => 123,
'endTime' => 123,
'pageNum' => 1,
'pageSize' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Forwarded-From: <x-forwarded-from>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list"
payload := strings.NewReader("{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("Content-Type", "application/json")
.body("{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/card/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cardId\": \"<string>\",\n \"status\": \"<string>\",\n \"cardTypeId\": 123,\n \"cardholderId\": 123,\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 123,
"msg": "<string>",
"data": {
"total": 123,
"records": [
{
"cardId": "card-12345678",
"cardToken": "tok_12345678",
"maskedCardNumber": "**** **** **** 4242",
"expiryDate": "12/25",
"cardStatus": "ACTIVE",
"cardType": "VIRTUAL",
"brand": "VISA",
"currency": "USD",
"accountId": "wsb-12345678",
"cardholderId": "ch-12345678",
"cardName": "My Virtual Card",
"availableBalance": 1000,
"currentBalance": 1000,
"blockedAmount": 0,
"spendingLimit": 5000,
"dailyLimit": 1000,
"monthlyLimit": 10000,
"dailySpent": 100,
"monthlySpent": 500,
"createTime": 1640995200000,
"updateTime": 1640995200000,
"activateTime": 1640995200000,
"expireTime": 1767225600000,
"settings": {
"enableOnline": true,
"enableInternational": true,
"enableContactless": true,
"enableAtm": true,
"allowedMcc": [
"5411",
"5812"
],
"blockedMcc": [
"7995"
],
"pinFreeAmount": 100,
"autoLoad": false,
"autoLoadAmount": 1000,
"autoLoadThreshold": 100
},
"limits": {
"spendingLimit": 5000,
"dailyLimit": 1000,
"monthlyLimit": 10000,
"perTransactionLimit": 2500,
"atmDailyLimit": 500,
"atmPerTransactionLimit": 300
},
"features": [
"CHIP",
"NFC",
"3DS"
]
}
]
}
}Headers
User agent
Forwarded for
Client application identifier
Example:
"client-app"
Tenant ID
Device ID
Platform
Body
application/json
Card list request
Card list request
Card ID (optional filter)
Card status filter: pending, un_activated, Normal, Freeze, Freezing, UnFreezing, canceling, cancel, fail
Card type ID (optional filter)
Cardholder ID (optional filter)
Start time - card create time (milliseconds)
End time - card create time (milliseconds)
Current page. Default is 1
Page size. Default 10, maximum 100
⌘I