curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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"
}
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate"
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"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {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'
}
})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate', 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/estimate",
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'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/estimate"
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}")
req, _ := http.NewRequest("POST", url, payload)
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/estimate")
.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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
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}"
response = http.request(request)
puts response.read_bodyEstimate a customer shipment
non-crypto programs only. Rate limit: 30 a minute, shared with Estimate a shipment and Estimate a one-token shipment.
Live carrier rates to ship 1-10 of a customer’s vault cards in one box to an address. Charges nothing and stores nothing: the address only goes to the carrier for the quote. Pass a rate’s carrier and token to Create a customer shipment, with max_cost set to that rate’s total: the postage, any cover premium and the card processing fee, $5.99 for each item shipped. Non-crypto model.
curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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"
}
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate"
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"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {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'
}
})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate', 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/estimate",
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'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/estimate"
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}")
req, _ := http.NewRequest("POST", url, payload)
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/estimate")
.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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/shipments/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
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}"
response = http.request(request)
puts response.read_bodyAuthorizations
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.
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
The rates.

