curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_ids": [
"838a5e7f-dc62-4618-ad4a-cf015de20536"
],
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "r_9f3c"
},
"max_cost": 13.49
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments"
payload = {
"card_ids": ["838a5e7f-dc62-4618-ad4a-cf015de20536"],
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "r_9f3c"
},
"max_cost": 13.49
}
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: ['838a5e7f-dc62-4618-ad4a-cf015de20536'],
address: {
name: 'Alice Tester',
address1: '1 Market St',
city: 'San Francisco',
state: 'CA',
zip: '94105',
country: 'US',
phone: '4155550100'
},
rate: {carrier: 'USPS', token: 'r_9f3c'},
max_cost: 13.49
})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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([
'card_ids' => [
'838a5e7f-dc62-4618-ad4a-cf015de20536'
],
'address' => [
'name' => 'Alice Tester',
'address1' => '1 Market St',
'city' => 'San Francisco',
'state' => 'CA',
'zip' => '94105',
'country' => 'US',
'phone' => '4155550100'
],
'rate' => [
'carrier' => 'USPS',
'token' => 'r_9f3c'
],
'max_cost' => 13.49
]),
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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments"
payload := strings.NewReader("{\n \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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 \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"card_ids": [
"<string>"
],
"carrier": "<string>",
"service": "<string>",
"service_token": "<string>",
"cost": 123,
"cover_amount": 123,
"insurance_cost": 123,
"destination_country": "<string>",
"tracking_number": "<string>",
"tracking_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status_updated_at": "2023-11-07T05:31:56Z",
"shipped_at": "2023-11-07T05:31:56Z",
"expected_delivery": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"idempotent_replay": true,
"needs_review": true,
"address_removed": true
}{
"id": "80ba23e1-58ae-45d1-ba15-f88fdea1fb52",
"status": "processing",
"card_ids": [
"838a5e7f-dc62-4618-ad4a-cf015de20536"
],
"carrier": "USPS",
"service": "Ground Advantage",
"service_token": "r_9f3c",
"cost": 13.49,
"cover_amount": null,
"insurance_cost": 0,
"destination_country": "US",
"tracking_number": null,
"tracking_url": null,
"created_at": "2026-11-24T18:20:02.114Z",
"status_updated_at": null,
"shipped_at": null,
"expected_delivery": null,
"delivered_at": null
}{
"error": "max_cost (the most you will pay for this shipment, in dollars, with any cover) is required",
"code": "BAD_MAX_COST"
}{
"error": "Missing or malformed API key"
}{
"error": "This shipment would take your statement past its credit limit.",
"code": "CREDIT_LIMIT",
"owed": 9995,
"credit_limit": 10000,
"shipment_total": 13.49
}{
"error": "This customer cannot ship cards.",
"code": "CUSTOMER_BLOCKED",
"capability": "withdraw"
}{
"error": "No customer with that id has bought from this program.",
"code": "CUSTOMER_NOT_FOUND"
}{
"error": "The rate and the processing fee are now above your max_cost.",
"code": "PRICE_CHANGED",
"amount": 13.49,
"max_cost": 7.5,
"shipping_cost": 7.5,
"processing_fee": 5.99
}{
"error": "This idempotency key was already used for a different shipment.",
"code": "IDEMPOTENCY_KEY_REUSED"
}{
"error": "Daily shipment limit reached: 50 per key per UTC day.",
"code": "DAILY_SHIPMENT_LIMIT_REACHED",
"limit": 50,
"resets_at": "2026-11-25T00:00:00.000Z",
"retry_after_seconds": 21600
}{
"error": "We could not confirm whether this shipment went through. It is with our team; retrying with the same Idempotency-Key is safe and will not charge again.",
"code": "SHIPMENT_OUTCOME_UNKNOWN",
"shipment_id": "80ba23e1-58ae-45d1-ba15-f88fdea1fb52",
"needs_review": true
}{
"error": "Could not confirm the carrier rate. Please try again."
}{
"error": "The shipment did not go through and nothing was charged. Please try again."
}Create a customer shipment
non-crypto programs only. Rate limit: 30 a minute, shared with Create an order and Sell back a customer’s card.
Ships 1-10 of a customer’s vault cards in one box at a rate from Estimate a customer shipment. We re-quote the rate; the shipment’s total (the postage, any cover’s premium and the $5.99-per-card processing fee) goes on your statement, and nothing is paid or signed. Past your credit limit it is refused with 402 CREDIT_LIMIT. A shipment that doesn’t go through is taken off your statement.
The response is the shipment (processing), with its id. It then moves to shipped (with carrier and tracking_number) and delivered: follow it with List a customer’s shipments or the nft_shipment.updated webhook. A replay with the same Idempotency-Key answers 200 with the shipment as it stands now and idempotent_replay: true, and never charges twice. Each key may create at most 50 shipments a UTC day. Non-crypto model.
curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_ids": [
"838a5e7f-dc62-4618-ad4a-cf015de20536"
],
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "r_9f3c"
},
"max_cost": 13.49
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments"
payload = {
"card_ids": ["838a5e7f-dc62-4618-ad4a-cf015de20536"],
"address": {
"name": "Alice Tester",
"address1": "1 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"phone": "4155550100"
},
"rate": {
"carrier": "USPS",
"token": "r_9f3c"
},
"max_cost": 13.49
}
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: ['838a5e7f-dc62-4618-ad4a-cf015de20536'],
address: {
name: 'Alice Tester',
address1: '1 Market St',
city: 'San Francisco',
state: 'CA',
zip: '94105',
country: 'US',
phone: '4155550100'
},
rate: {carrier: 'USPS', token: 'r_9f3c'},
max_cost: 13.49
})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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([
'card_ids' => [
'838a5e7f-dc62-4618-ad4a-cf015de20536'
],
'address' => [
'name' => 'Alice Tester',
'address1' => '1 Market St',
'city' => 'San Francisco',
'state' => 'CA',
'zip' => '94105',
'country' => 'US',
'phone' => '4155550100'
],
'rate' => [
'carrier' => 'USPS',
'token' => 'r_9f3c'
],
'max_cost' => 13.49
]),
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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments"
payload := strings.NewReader("{\n \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\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://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/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 \"card_ids\": [\n \"838a5e7f-dc62-4618-ad4a-cf015de20536\"\n ],\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\": \"r_9f3c\"\n },\n \"max_cost\": 13.49\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"card_ids": [
"<string>"
],
"carrier": "<string>",
"service": "<string>",
"service_token": "<string>",
"cost": 123,
"cover_amount": 123,
"insurance_cost": 123,
"destination_country": "<string>",
"tracking_number": "<string>",
"tracking_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status_updated_at": "2023-11-07T05:31:56Z",
"shipped_at": "2023-11-07T05:31:56Z",
"expected_delivery": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"idempotent_replay": true,
"needs_review": true,
"address_removed": true
}{
"id": "80ba23e1-58ae-45d1-ba15-f88fdea1fb52",
"status": "processing",
"card_ids": [
"838a5e7f-dc62-4618-ad4a-cf015de20536"
],
"carrier": "USPS",
"service": "Ground Advantage",
"service_token": "r_9f3c",
"cost": 13.49,
"cover_amount": null,
"insurance_cost": 0,
"destination_country": "US",
"tracking_number": null,
"tracking_url": null,
"created_at": "2026-11-24T18:20:02.114Z",
"status_updated_at": null,
"shipped_at": null,
"expected_delivery": null,
"delivered_at": null
}{
"error": "max_cost (the most you will pay for this shipment, in dollars, with any cover) is required",
"code": "BAD_MAX_COST"
}{
"error": "Missing or malformed API key"
}{
"error": "This shipment would take your statement past its credit limit.",
"code": "CREDIT_LIMIT",
"owed": 9995,
"credit_limit": 10000,
"shipment_total": 13.49
}{
"error": "This customer cannot ship cards.",
"code": "CUSTOMER_BLOCKED",
"capability": "withdraw"
}{
"error": "No customer with that id has bought from this program.",
"code": "CUSTOMER_NOT_FOUND"
}{
"error": "The rate and the processing fee are now above your max_cost.",
"code": "PRICE_CHANGED",
"amount": 13.49,
"max_cost": 7.5,
"shipping_cost": 7.5,
"processing_fee": 5.99
}{
"error": "This idempotency key was already used for a different shipment.",
"code": "IDEMPOTENCY_KEY_REUSED"
}{
"error": "Daily shipment limit reached: 50 per key per UTC day.",
"code": "DAILY_SHIPMENT_LIMIT_REACHED",
"limit": 50,
"resets_at": "2026-11-25T00:00:00.000Z",
"retry_after_seconds": 21600
}{
"error": "We could not confirm whether this shipment went through. It is with our team; retrying with the same Idempotency-Key is safe and will not charge again.",
"code": "SHIPMENT_OUTCOME_UNKNOWN",
"shipment_id": "80ba23e1-58ae-45d1-ba15-f88fdea1fb52",
"needs_review": true
}{
"error": "Could not confirm the carrier rate. Please try again."
}{
"error": "The shipment did not go through and nothing was charged. Please try again."
}Authorizations
Your API key, sent as a bearer token, with the scope nft:orders. A production key starts cb_live_ and works only at https://catchbackcards.com; a sandbox key starts cb_test_ and works only at https://sandbox.catchbackcards.com (production refuses one with 401 SANDBOX_KEY). 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
Your own shipment id, 8-128 characters of A-Za-z0-9_-. Keys are per program, not per customer. Retry a timed-out or 5xx call with the same key. The same key with a different request (another customer, card_ids, address, rate, max_cost, cover_amount) is 422.
^[A-Za-z0-9_-]{8,128}$Path Parameters
Your own id for the customer, as you sent it as customer on Create an order. 1-128 characters of A-Za-z0-9_.:-, not dots alone; never personal data. Case-sensitive.
Your own id for a customer on a non-crypto program, 1-128 characters of A-Za-z0-9_.:-, not dots alone. Use something stable that is not personal data (your internal user id, never an email address or phone number). Ids are yours alone. Leading and trailing spaces are trimmed, and ids are case-sensitive (User-1 and user-1 are two customers).
^(?!\.+$)[A-Za-z0-9_.:-]{1,128}$"user-1842"
Body
Response
A replay of an earlier request with the same Idempotency-Key (idempotent_replay is true). Nothing is charged twice.
A customer shipment. Never the address.
pending: being created. processing: created and being packed. shipped: on its way, with tracking. delivered. cancelled: by our team (rare); contact us. needs_review: we couldn't confirm it; our team resolves it.
pending, processing, shipped, delivered, cancelled, needs_review 
