List masked cards
curl --request GET \
--url https://api.recadd.com/v1/orders/{id}/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recadd.com/v1/orders/{id}/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recadd.com/v1/orders/{id}/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.recadd.com/v1/orders/{id}/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://api.recadd.com/v1/orders/{id}/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://api.recadd.com/v1/orders/{id}/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/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{
"items": [
{
"id": "crd_01ka5krkayfxg8m6sc7n75ytkx",
"order_item_id": "oit_01ka5krkayfxg8m6sc7n75ytkw",
"masked_code": "****0001",
"serial_number": null,
"expires_on": null,
"first_revealed_at": null,
"code_available_until": null,
"code_status": "not_revealed"
}
],
"next_cursor": null
}Orders
List masked cards
Lists masked cards for an order in the API key’s business and mode, by ascending card id. Omit limit for 50 items or choose 1 to 100. Continue with the opaque next_cursor. A known order with no cards returns an empty page. Listing does not start the 24-hour reveal window or write a reveal audit. A refunded card cannot be revealed. A malformed, unknown, foreign-business or other-mode order id returns the same 404 not_found. Responses carry Cache-Control: private, no-store.
GET
/
v1
/
orders
/
{id}
/
cards
List masked cards
curl --request GET \
--url https://api.recadd.com/v1/orders/{id}/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recadd.com/v1/orders/{id}/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recadd.com/v1/orders/{id}/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.recadd.com/v1/orders/{id}/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://api.recadd.com/v1/orders/{id}/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://api.recadd.com/v1/orders/{id}/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/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{
"items": [
{
"id": "crd_01ka5krkayfxg8m6sc7n75ytkx",
"order_item_id": "oit_01ka5krkayfxg8m6sc7n75ytkw",
"masked_code": "****0001",
"serial_number": null,
"expires_on": null,
"first_revealed_at": null,
"code_available_until": null,
"code_status": "not_revealed"
}
],
"next_cursor": null
}