List active or suspended cards
curl --request GET \
--url https://api.wallbit.io/api/public/v1/cards \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.wallbit.io/api/public/v1/cards"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wallbit.io/api/public/v1/cards', 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://api.wallbit.io/api/public/v1/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wallbit.io/api/public/v1/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wallbit.io/api/public/v1/cards")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wallbit.io/api/public/v1/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": "ACTIVE",
"card_type": "VIRTUAL",
"card_network": "visa",
"card_last4": "1234",
"expiration": "2029-01-01"
},
{
"uuid": "c37ea154-f6d2-4c95-b3f4-80f07858db7f",
"status": "SUSPENDED",
"card_type": "PHYSICAL",
"card_network": "mastercard",
"card_last4": "5678",
"expiration": "2028-06-01"
}
]
}Cards
List Cards
Returns the cards of the authenticated user that are either active (ACTIVE) or suspended (SUSPENDED).
GET
/
api
/
public
/
v1
/
cards
List active or suspended cards
curl --request GET \
--url https://api.wallbit.io/api/public/v1/cards \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.wallbit.io/api/public/v1/cards"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wallbit.io/api/public/v1/cards', 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://api.wallbit.io/api/public/v1/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wallbit.io/api/public/v1/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wallbit.io/api/public/v1/cards")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wallbit.io/api/public/v1/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": "ACTIVE",
"card_type": "VIRTUAL",
"card_network": "visa",
"card_last4": "1234",
"expiration": "2029-01-01"
},
{
"uuid": "c37ea154-f6d2-4c95-b3f4-80f07858db7f",
"status": "SUSPENDED",
"card_type": "PHYSICAL",
"card_network": "mastercard",
"card_last4": "5678",
"expiration": "2028-06-01"
}
]
}⌘I

