curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"min_payout": 30
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback"
payload = { "min_payout": 30 }
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({min_payout: 30})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback', 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}/cards/{card_id}/sellback",
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([
'min_payout' => 30
]),
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}/cards/{card_id}/sellback"
payload := strings.NewReader("{\n \"min_payout\": 30\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}/cards/{card_id}/sellback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"min_payout\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback")
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 \"min_payout\": 30\n}"
response = http.request(request)
puts response.read_body{
"sellback": {
"status": "already_sold",
"card_id": "838a5e7f-dc62-4618-ad4a-cf015de20536",
"transaction_id": "5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"payout_amount": 31,
"payout_rate": null,
"on_statement": true
}
}{
"sellback": {
"status": "sold",
"card_id": "838a5e7f-dc62-4618-ad4a-cf015de20536",
"transaction_id": "5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"payout_amount": 31,
"payout_rate": 1,
"on_statement": true
}
}{
"error": "min_payout must be a non-negative number",
"code": "BAD_MIN_PAYOUT"
}{
"error": "Missing or malformed API key"
}{
"error": "This partner program is not live",
"code": "PROGRAM_INACTIVE"
}{
"error": "That card was not pulled into this customer's vault by this program.",
"code": "CARD_NOT_IN_VAULT"
}{
"error": "This sell-back pays 29.5, below your min_payout of 30",
"code": "PRICE_CHANGED",
"payout_amount": 29.5,
"payout_rate": 1
}{
"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": "Could not load the partner program; try again."
}Sell back a customer's card
non-crypto programs only. Rate limit: 30 a minute, shared with Create an order and Create a customer shipment.
Sells one vault card back at its current offer (the sellback.amount Get a customer’s vault shows) and credits the payout to your statement. Nothing is paid out to the customer: you credit them your way. min_payout refuses an offer below it, so the customer is never paid less than you showed them.
A card sells once: a retry returns the first sale (200, status: already_sold) and never sells again, so no Idempotency-Key is needed. Retries sent at the same time get the same answer: one sells, the rest return already_sold. Non-crypto model.
curl --request POST \
--url https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"min_payout": 30
}
'import requests
url = "https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback"
payload = { "min_payout": 30 }
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({min_payout: 30})
};
fetch('https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback', 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}/cards/{card_id}/sellback",
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([
'min_payout' => 30
]),
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}/cards/{card_id}/sellback"
payload := strings.NewReader("{\n \"min_payout\": 30\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}/cards/{card_id}/sellback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"min_payout\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.catchbackcards.com/api/partner/v2/customers/{customer}/cards/{card_id}/sellback")
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 \"min_payout\": 30\n}"
response = http.request(request)
puts response.read_body{
"sellback": {
"status": "already_sold",
"card_id": "838a5e7f-dc62-4618-ad4a-cf015de20536",
"transaction_id": "5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"payout_amount": 31,
"payout_rate": null,
"on_statement": true
}
}{
"sellback": {
"status": "sold",
"card_id": "838a5e7f-dc62-4618-ad4a-cf015de20536",
"transaction_id": "5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"payout_amount": 31,
"payout_rate": 1,
"on_statement": true
}
}{
"error": "min_payout must be a non-negative number",
"code": "BAD_MIN_PAYOUT"
}{
"error": "Missing or malformed API key"
}{
"error": "This partner program is not live",
"code": "PROGRAM_INACTIVE"
}{
"error": "That card was not pulled into this customer's vault by this program.",
"code": "CARD_NOT_IN_VAULT"
}{
"error": "This sell-back pays 29.5, below your min_payout of 30",
"code": "PRICE_CHANGED",
"payout_amount": 29.5,
"payout_rate": 1
}{
"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": "Could not load the partner program; 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.
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"

