curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "0x5e0c...91ab",
"holder_signature": "0x9b2e...1c"
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn"
payload = {
"quote_id": "0x5e0c...91ab",
"holder_signature": "0x9b2e...1c"
}
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({quote_id: '0x5e0c...91ab', holder_signature: '0x9b2e...1c'})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn', 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/tokens/{tokenId}/burn",
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([
'quote_id' => '0x5e0c...91ab',
'holder_signature' => '0x9b2e...1c'
]),
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/tokens/{tokenId}/burn"
payload := strings.NewReader("{\n \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\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/tokens/{tokenId}/burn")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn")
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 \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "0x5e0c...91ab",
"tx_hash": "0x3f8a...d41e"
}{
"error": "holder_signature is not the holder's signature over this quote.",
"code": "BAD_HOLDER_SIGNATURE"
}{
"error": "Missing or malformed API key"
}{
"error": "The holder's wallet doesn't hold enough of the postage token.",
"code": "INSUFFICIENT_FUNDS"
}{
"error": "The quote holder no longer holds this token.",
"code": "NOT_HOLDER"
}{
"error": "No such quote for this token.",
"code": "UNKNOWN_QUOTE"
}{
"error": "This quote has expired; request a new one.",
"code": "QUOTE_EXPIRED"
}{
"error": "Too many requests. Slow down.",
"code": "RATE_LIMITED",
"retry_after_seconds": 23
}{
"error": "Something went wrong. Retrying is safe: send the same Idempotency-Key if the request had one."
}{
"error": "The chain refused this burn; nothing was burned.",
"code": "CHAIN_REFUSED"
}{
"error": "Redemptions are paused; try again later.",
"code": "CONTRACT_PAUSED"
}Burn without gas
EVM only. The holder signs the quote (EIP-712, the same domain and Quote type the contract checks) instead of sending a transaction, and we send burnWithQuoteFor(quote, signature, holderSignature) and pay its gas. Works for a sell-back quote and for each token’s burn in a paid shipment; the payout or shipment follows as for a burn the holder sent. ERC-1271 wallets can sign.
A one-tap shipment sends permit_signature instead, and we send shipWithPayment: the shipping payment moves and the token burns together.
The signature authorizes only that quote, once, and is checked on chain. We simulate the burn before sending it, so a refusal sends nothing. A repeat call for the same quote returns the first tx_hash and sends nothing, also after the burn is final (RELAY_IN_PROGRESS while that send is in flight). While a burn with another of the token’s quotes is in flight, or once it has landed, the call answers TOKEN_BURNED; a recorded burn expires the token’s other unpaid quotes (outside a multi-token shipment). While the token has a paid shipment waiting, only that shipment’s burn goes. Sell-back.
curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "0x5e0c...91ab",
"holder_signature": "0x9b2e...1c"
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn"
payload = {
"quote_id": "0x5e0c...91ab",
"holder_signature": "0x9b2e...1c"
}
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({quote_id: '0x5e0c...91ab', holder_signature: '0x9b2e...1c'})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn', 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/tokens/{tokenId}/burn",
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([
'quote_id' => '0x5e0c...91ab',
'holder_signature' => '0x9b2e...1c'
]),
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/tokens/{tokenId}/burn"
payload := strings.NewReader("{\n \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\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/tokens/{tokenId}/burn")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/tokens/{tokenId}/burn")
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 \"quote_id\": \"0x5e0c...91ab\",\n \"holder_signature\": \"0x9b2e...1c\"\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "0x5e0c...91ab",
"tx_hash": "0x3f8a...d41e"
}{
"error": "holder_signature is not the holder's signature over this quote.",
"code": "BAD_HOLDER_SIGNATURE"
}{
"error": "Missing or malformed API key"
}{
"error": "The holder's wallet doesn't hold enough of the postage token.",
"code": "INSUFFICIENT_FUNDS"
}{
"error": "The quote holder no longer holds this token.",
"code": "NOT_HOLDER"
}{
"error": "No such quote for this token.",
"code": "UNKNOWN_QUOTE"
}{
"error": "This quote has expired; request a new one.",
"code": "QUOTE_EXPIRED"
}{
"error": "Too many requests. Slow down.",
"code": "RATE_LIMITED",
"retry_after_seconds": 23
}{
"error": "Something went wrong. Retrying is safe: send the same Idempotency-Key if the request had one."
}{
"error": "The chain refused this burn; nothing was burned.",
"code": "CHAIN_REFUSED"
}{
"error": "Redemptions are paused; try again later.",
"code": "CONTRACT_PAUSED"
}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.
Path Parameters
Body
Send holder_signature for a sell-back or a shipment paid first, or permit_signature for a one-tap shipment.

