curl --request POST \
--url https://api.recadd.com/v1/orders/{id}/cards/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_ids": [
"crd_01ka5krkayfxg8m6sc7n75ytkx"
]
}
'import requests
url = "https://api.recadd.com/v1/orders/{id}/cards/reveal"
payload = { "card_ids": ["crd_01ka5krkayfxg8m6sc7n75ytkx"] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({card_ids: ['crd_01ka5krkayfxg8m6sc7n75ytkx']})
};
fetch('https://api.recadd.com/v1/orders/{id}/cards/reveal', 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/reveal",
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([
'card_ids' => [
'crd_01ka5krkayfxg8m6sc7n75ytkx'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.recadd.com/v1/orders/{id}/cards/reveal"
payload := strings.NewReader("{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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://api.recadd.com/v1/orders/{id}/cards/reveal")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/cards/reveal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "crd_01ka5krkayfxg8m6sc7n75ytkx",
"order_item_id": "oit_01ka5krkayfxg8m6sc7n75ytkw",
"masked_code": "****0001",
"serial_number": null,
"expires_on": null,
"first_revealed_at": "2026-11-17T10:00:00+00:00",
"code_available_until": "2026-11-18T10:00:00+00:00",
"code_status": "shown",
"code": "EXAMPLE-CODE-0001",
"pin": "EXAMPLE-PIN"
}
]
}Reveal card codes
Reveals 1 to 100 distinct card ids for one order in the API key’s business and mode, in the order requested. Malformed card_ids receive 400 without spending the requested-code budget. A valid request spends that budget even if the order id is malformed or any card is missing or belongs to another business, mode or order. Those requests return the same 404 and are audited. The requested-code allowance is shared across API replicas. When it is exhausted, Retry-After gives the seconds until the next UTC minute according to the database clock. Shown cards start their 24-hour window on the first reveal, after which Recadd can never show them again. An unavailable or refunded card returns no code or PIN and starts no window. The body of a successful reveal is never stored. A replay receives 409 idempotency_response_unavailable. Use a fresh Idempotency-Key to reveal the codes again within the original reveal window. Responses carry Cache-Control: private, no-store.
curl --request POST \
--url https://api.recadd.com/v1/orders/{id}/cards/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_ids": [
"crd_01ka5krkayfxg8m6sc7n75ytkx"
]
}
'import requests
url = "https://api.recadd.com/v1/orders/{id}/cards/reveal"
payload = { "card_ids": ["crd_01ka5krkayfxg8m6sc7n75ytkx"] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({card_ids: ['crd_01ka5krkayfxg8m6sc7n75ytkx']})
};
fetch('https://api.recadd.com/v1/orders/{id}/cards/reveal', 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/reveal",
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([
'card_ids' => [
'crd_01ka5krkayfxg8m6sc7n75ytkx'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.recadd.com/v1/orders/{id}/cards/reveal"
payload := strings.NewReader("{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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://api.recadd.com/v1/orders/{id}/cards/reveal")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recadd.com/v1/orders/{id}/cards/reveal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_ids\": [\n \"crd_01ka5krkayfxg8m6sc7n75ytkx\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"cards": [
{
"id": "crd_01ka5krkayfxg8m6sc7n75ytkx",
"order_item_id": "oit_01ka5krkayfxg8m6sc7n75ytkw",
"masked_code": "****0001",
"serial_number": null,
"expires_on": null,
"first_revealed_at": "2026-11-17T10:00:00+00:00",
"code_available_until": "2026-11-18T10:00:00+00:00",
"code_status": "shown",
"code": "EXAMPLE-CODE-0001",
"pin": "EXAMPLE-PIN"
}
]
}