List a card
curl --request POST \
--url https://catchbackcards.com/api/partner/v1/listings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"card_id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e",
"price": 45
}
'import requests
url = "https://catchbackcards.com/api/partner/v1/listings"
payload = {
"card_id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e",
"price": 45
}
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_id: '0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e', price: 45})
};
fetch('https://catchbackcards.com/api/partner/v1/listings', 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/v1/listings",
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_id' => '0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e',
'price' => 45
]),
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://catchbackcards.com/api/partner/v1/listings"
payload := strings.NewReader("{\n \"card_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\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://catchbackcards.com/api/partner/v1/listings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchbackcards.com/api/partner/v1/listings")
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_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\n}"
response = http.request(request)
puts response.read_body{
"listing_id": "5f1c…",
"card_id": "0e94dc61-…",
"price": 45
}{
"error": "You do not hold this card"
}{
"error": "Missing or malformed API key"
}{
"error": "<string>",
"code": "FEATURE_RESTRICTED",
"capability": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Marketplace
List a card
Scope: write:listings (needs a linked account). Changes data.
Puts a card you hold up for sale at a fixed price. The price must be at least 5andatmostthelargerof5 and 2× the card’s market value, and a card with no market value has no upper cap. The account needs a verified phone number. A listed card can’t be sold back until you delist it.
POST
/
api
/
partner
/
v1
/
listings
List a card
curl --request POST \
--url https://catchbackcards.com/api/partner/v1/listings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"card_id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e",
"price": 45
}
'import requests
url = "https://catchbackcards.com/api/partner/v1/listings"
payload = {
"card_id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e",
"price": 45
}
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_id: '0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e', price: 45})
};
fetch('https://catchbackcards.com/api/partner/v1/listings', 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/v1/listings",
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_id' => '0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e',
'price' => 45
]),
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://catchbackcards.com/api/partner/v1/listings"
payload := strings.NewReader("{\n \"card_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\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://catchbackcards.com/api/partner/v1/listings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://catchbackcards.com/api/partner/v1/listings")
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_id\": \"0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e\",\n \"price\": 45\n}"
response = http.request(request)
puts response.read_body{
"listing_id": "5f1c…",
"card_id": "0e94dc61-…",
"price": 45
}{
"error": "You do not hold this card"
}{
"error": "Missing or malformed API key"
}{
"error": "<string>",
"code": "FEATURE_RESTRICTED",
"capability": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Your API key, sent as a bearer token. Keep it on your server. See Authentication. A request from a location we refuse gets a 403 with Access denied, whether or not it has a valid key: where you can call from.
Body
application/json

