curl --request POST \
--url https://catchbackcards.com/api/partner/v2/shipments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"token_ids": [
"81264573985362058461377125337283195667",
"90311820476190023716442901288201455"
],
"holder": "0x8f3c...e21a",
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "usps_priority"
},
"max_cost": 9.85,
"cover_amount": null
}
'import requests
url = "https://catchbackcards.com/api/partner/v2/shipments"
payload = {
"token_ids": ["81264573985362058461377125337283195667", "90311820476190023716442901288201455"],
"holder": "0x8f3c...e21a",
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "usps_priority"
},
"max_cost": 9.85,
"cover_amount": None
}
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({
token_ids: [
'81264573985362058461377125337283195667',
'90311820476190023716442901288201455'
],
holder: '0x8f3c...e21a',
address: {
name: 'Alice Tester',
address1: '1 Market St',
city: 'San Francisco',
state: 'CA',
zip: '94105',
country: 'US',
phone: '4155550100'
},
rate: {carrier: 'USPS', token: 'usps_priority'},
max_cost: 9.85,
cover_amount: null
})
};
fetch('https://catchbackcards.com/api/partner/v2/shipments', 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://catchbackcards.com/api/partner/v2/shipments",
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([
'token_ids' => [
'81264573985362058461377125337283195667',
'90311820476190023716442901288201455'
],
'holder' => '0x8f3c...e21a',
'address' => [
'name' => 'Alice Tester',
'address1' => '1 Market St',
'city' => 'San Francisco',
'state' => 'CA',
'zip' => '94105',
'country' => 'US',
'phone' => '4155550100'
],
'rate' => [
'carrier' => 'USPS',
'token' => 'usps_priority'
],
'max_cost' => 9.85,
'cover_amount' => null
]),
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://catchbackcards.com/api/partner/v2/shipments"
payload := strings.NewReader("{\n \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\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://catchbackcards.com/api/partner/v2/shipments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchbackcards.com/api/partner/v2/shipments")
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 \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\n}"
response = http.request(request)
puts response.read_body{
"shipment": {
"shipment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "awaiting_payment",
"shipping_cost": 123,
"holder": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"tokens": [
{
"token_id": "<string>",
"quote_id": "<string>",
"status": "awaiting_payment",
"burned_at": "2023-11-07T05:31:56Z",
"burn_tx": "<string>",
"burn": {
"quote": {
"tokenId": "<string>",
"kind": 1,
"quoteId": "<string>",
"holder": "<string>",
"payoutHash": "<string>",
"amount": "<string>",
"expiresAt": "<string>"
},
"signature": "<string>"
}
}
],
"fulfilment": {
"status": "pending",
"carrier": "<string>",
"service": "<string>",
"tracking_number": "<string>",
"tracking_url": "<string>",
"shipped_at": "2023-11-07T05:31:56Z",
"expected_delivery": "2023-12-25",
"delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
},
"payment": {
"intent_id": "<string>",
"client_secret": "<string>",
"publishable_key": "<string>",
"amount": 123,
"deposit_addresses": [
{
"chain": "evm:196",
"address": "<string>"
}
]
},
"idempotent_replay": true
}{
"shipment": {
"shipment_id": "7e2a91c4-5b0d-4f3e-8a6c-1d9b0e2f4a73",
"status": "awaiting_payment",
"shipping_cost": 9.85,
"holder": "0x8f3c...e21a",
"expires_at": "2026-11-17T18:40:00.000Z",
"paid_at": null,
"tokens": [
{
"token_id": "90311820476190023716442901288201455",
"quote_id": "0x1b7c...e4a0",
"status": "awaiting_payment",
"burned_at": null,
"burn_tx": null,
"burn": null
},
{
"token_id": "81264573985362058461377125337283195667",
"quote_id": "0xa93f...0c2d",
"status": "awaiting_payment",
"burned_at": null,
"burn_tx": null,
"burn": null
}
],
"fulfilment": null
},
"payment": {
"intent_id": "pi_01JE...",
"client_secret": "pi_01JE..._secret_...",
"publishable_key": "pk_live_...",
"amount": 9.85,
"deposit_addresses": [
{
"chain": "evm:8453",
"address": "0x5a4d...0002"
},
{
"chain": "solana:mainnet",
"address": "7kPq...Rt4w"
}
]
}
}{
"error": "max_cost (the most the holder will pay for shipping, in dollars) is required",
"code": "BAD_MAX_COST"
}{
"error": "Missing or malformed API key"
}{
"error": "This wallet cannot redeem right now.",
"code": "WALLET_REFUSED"
}{
"error": "Unknown token",
"code": "UNKNOWN_TOKEN",
"token_ids": [
"90311820476190023716442901288201455"
]
}{
"error": "The shipping cost is now above max_cost.",
"code": "PRICE_CHANGED",
"amount": 10.4
}{
"error": "This Idempotency-Key was already used for a different shipment.",
"code": "IDEMPOTENCY_KEY_REUSED"
}{
"error": "Too many requests. Slow down.",
"code": "RATE_LIMITED",
"retry_after_seconds": 23
}{
"error": "Something went wrong; retry with the same Idempotency-Key."
}{
"error": "This wallet cannot redeem right now.",
"code": "SCREENING_UNAVAILABLE"
}Create a shipment
Creates and opens one payment for a shipment of 1-25 tokens held by one wallet, in one box. We re-quote the chosen rate for all the tokens together. Pay it exactly like an order. Once paid, Get a shipment returns a burn per token; the box ships once every token is burned, within 24 hours of payment (renew a lapsed window).
shipment_id names the whole box; each token has its own quote_id, which it burns with. An unpaid shipment never expires. A replay with the same Idempotency-Key returns payment again while the shipment is unpaid (null once paid). Shipping.
curl --request POST \
--url https://catchbackcards.com/api/partner/v2/shipments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"token_ids": [
"81264573985362058461377125337283195667",
"90311820476190023716442901288201455"
],
"holder": "0x8f3c...e21a",
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "usps_priority"
},
"max_cost": 9.85,
"cover_amount": null
}
'import requests
url = "https://catchbackcards.com/api/partner/v2/shipments"
payload = {
"token_ids": ["81264573985362058461377125337283195667", "90311820476190023716442901288201455"],
"holder": "0x8f3c...e21a",
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "usps_priority"
},
"max_cost": 9.85,
"cover_amount": None
}
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({
token_ids: [
'81264573985362058461377125337283195667',
'90311820476190023716442901288201455'
],
holder: '0x8f3c...e21a',
address: {
name: 'Alice Tester',
address1: '1 Market St',
city: 'San Francisco',
state: 'CA',
zip: '94105',
country: 'US',
phone: '4155550100'
},
rate: {carrier: 'USPS', token: 'usps_priority'},
max_cost: 9.85,
cover_amount: null
})
};
fetch('https://catchbackcards.com/api/partner/v2/shipments', 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://catchbackcards.com/api/partner/v2/shipments",
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([
'token_ids' => [
'81264573985362058461377125337283195667',
'90311820476190023716442901288201455'
],
'holder' => '0x8f3c...e21a',
'address' => [
'name' => 'Alice Tester',
'address1' => '1 Market St',
'city' => 'San Francisco',
'state' => 'CA',
'zip' => '94105',
'country' => 'US',
'phone' => '4155550100'
],
'rate' => [
'carrier' => 'USPS',
'token' => 'usps_priority'
],
'max_cost' => 9.85,
'cover_amount' => null
]),
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://catchbackcards.com/api/partner/v2/shipments"
payload := strings.NewReader("{\n \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\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://catchbackcards.com/api/partner/v2/shipments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchbackcards.com/api/partner/v2/shipments")
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 \"token_ids\": [\n \"81264573985362058461377125337283195667\",\n \"90311820476190023716442901288201455\"\n ],\n \"holder\": \"0x8f3c...e21a\",\n \"address\": {\n \"name\": \"Alice Tester\",\n \"address1\": \"1 Market St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94105\",\n \"country\": \"US\",\n \"phone\": \"4155550100\"\n },\n \"rate\": {\n \"carrier\": \"USPS\",\n \"token\": \"usps_priority\"\n },\n \"max_cost\": 9.85,\n \"cover_amount\": null\n}"
response = http.request(request)
puts response.read_body{
"shipment": {
"shipment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "awaiting_payment",
"shipping_cost": 123,
"holder": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"tokens": [
{
"token_id": "<string>",
"quote_id": "<string>",
"status": "awaiting_payment",
"burned_at": "2023-11-07T05:31:56Z",
"burn_tx": "<string>",
"burn": {
"quote": {
"tokenId": "<string>",
"kind": 1,
"quoteId": "<string>",
"holder": "<string>",
"payoutHash": "<string>",
"amount": "<string>",
"expiresAt": "<string>"
},
"signature": "<string>"
}
}
],
"fulfilment": {
"status": "pending",
"carrier": "<string>",
"service": "<string>",
"tracking_number": "<string>",
"tracking_url": "<string>",
"shipped_at": "2023-11-07T05:31:56Z",
"expected_delivery": "2023-12-25",
"delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
},
"payment": {
"intent_id": "<string>",
"client_secret": "<string>",
"publishable_key": "<string>",
"amount": 123,
"deposit_addresses": [
{
"chain": "evm:196",
"address": "<string>"
}
]
},
"idempotent_replay": true
}{
"shipment": {
"shipment_id": "7e2a91c4-5b0d-4f3e-8a6c-1d9b0e2f4a73",
"status": "awaiting_payment",
"shipping_cost": 9.85,
"holder": "0x8f3c...e21a",
"expires_at": "2026-11-17T18:40:00.000Z",
"paid_at": null,
"tokens": [
{
"token_id": "90311820476190023716442901288201455",
"quote_id": "0x1b7c...e4a0",
"status": "awaiting_payment",
"burned_at": null,
"burn_tx": null,
"burn": null
},
{
"token_id": "81264573985362058461377125337283195667",
"quote_id": "0xa93f...0c2d",
"status": "awaiting_payment",
"burned_at": null,
"burn_tx": null,
"burn": null
}
],
"fulfilment": null
},
"payment": {
"intent_id": "pi_01JE...",
"client_secret": "pi_01JE..._secret_...",
"publishable_key": "pk_live_...",
"amount": 9.85,
"deposit_addresses": [
{
"chain": "evm:8453",
"address": "0x5a4d...0002"
},
{
"chain": "solana:mainnet",
"address": "7kPq...Rt4w"
}
]
}
}{
"error": "max_cost (the most the holder will pay for shipping, in dollars) is required",
"code": "BAD_MAX_COST"
}{
"error": "Missing or malformed API key"
}{
"error": "This wallet cannot redeem right now.",
"code": "WALLET_REFUSED"
}{
"error": "Unknown token",
"code": "UNKNOWN_TOKEN",
"token_ids": [
"90311820476190023716442901288201455"
]
}{
"error": "The shipping cost is now above max_cost.",
"code": "PRICE_CHANGED",
"amount": 10.4
}{
"error": "This Idempotency-Key was already used for a different shipment.",
"code": "IDEMPOTENCY_KEY_REUSED"
}{
"error": "Too many requests. Slow down.",
"code": "RATE_LIMITED",
"retry_after_seconds": 23
}{
"error": "Something went wrong; retry with the same Idempotency-Key."
}{
"error": "This wallet cannot redeem right now.",
"code": "SCREENING_UNAVAILABLE"
}Authorizations
Your API key (cb_live_…), sent as a bearer token, with the scope nft:orders. Keep it on your servers: never in a browser, app or wallet. Use a separate key per environment. A request from a country on our sanctions list gets a 403 with Access denied, whether or not it has a valid key. See Authentication and keys.
Headers
Body
Response
A replay of an earlier request with the same Idempotency-Key (idempotent_replay is true).

