List Nickel Banking cards
curl --request GET \
--url https://rest.staging.nickel.com/nickelBanking/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://rest.staging.nickel.com/nickelBanking/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rest.staging.nickel.com/nickelBanking/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://rest.staging.nickel.com/nickelBanking/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 => [
"Authorization: Bearer <token>"
],
]);
$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://rest.staging.nickel.com/nickelBanking/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rest.staging.nickel.com/nickelBanking/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.staging.nickel.com/nickelBanking/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "cmf1card0001qz8x4k2v7c9d3",
"accountId": "cmf1nba0001qz8x4k2v7c9d3e",
"type": "VIRTUAL",
"status": "REQUESTED",
"closedReason": "MERCHANT",
"last4": "4242",
"expiration": "03/2029",
"cardholderName": "<string>",
"nickname": "<string>",
"spendingLimits": [
{
"interval": "PER_DAY",
"amountCents": 500000
}
],
"lifetimeSpendCents": 12345,
"billingAddress": {
"line1": "1 Main St",
"line2": "<string>",
"city": "Austin",
"state": "TX",
"zip": "78701"
},
"shipment": {
"address": {
"line1": "1 Main St",
"line2": "<string>",
"city": "Austin",
"state": "TX",
"zip": "78701"
},
"trackingNumber": "<string>",
"shippedAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Nickel Banking
List Nickel Banking cards
Returns your Nickel Banking debit cards, newest first: status, last four digits, expiration, spending limits and lifetime spend. The full card number and CVC are never returned.
When the list would be empty because your organization has no active Nickel Banking account, or because the team member the API key belongs to can’t see cards, the response is a 403 that says which. An accountId that isn’t one of your accounts returns an empty list.
GET
/
nickelBanking
/
cards
List Nickel Banking cards
curl --request GET \
--url https://rest.staging.nickel.com/nickelBanking/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://rest.staging.nickel.com/nickelBanking/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rest.staging.nickel.com/nickelBanking/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://rest.staging.nickel.com/nickelBanking/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 => [
"Authorization: Bearer <token>"
],
]);
$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://rest.staging.nickel.com/nickelBanking/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rest.staging.nickel.com/nickelBanking/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.staging.nickel.com/nickelBanking/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "cmf1card0001qz8x4k2v7c9d3",
"accountId": "cmf1nba0001qz8x4k2v7c9d3e",
"type": "VIRTUAL",
"status": "REQUESTED",
"closedReason": "MERCHANT",
"last4": "4242",
"expiration": "03/2029",
"cardholderName": "<string>",
"nickname": "<string>",
"spendingLimits": [
{
"interval": "PER_DAY",
"amountCents": 500000
}
],
"lifetimeSpendCents": 12345,
"billingAddress": {
"line1": "1 Main St",
"line2": "<string>",
"city": "Austin",
"state": "TX",
"zip": "78701"
},
"shipment": {
"address": {
"line1": "1 Main St",
"line2": "<string>",
"city": "Austin",
"state": "TX",
"zip": "78701"
},
"trackingNumber": "<string>",
"shippedAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Only cards that spend from this account (an id from List Nickel Banking accounts).
Maximum cards to return, newest first. Default 50, maximum 100; larger values are clamped to 100.
Required range:
x >= 1Example:
50
