> ## Documentation Index
> Fetch the complete documentation index at: https://catchbackcards.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sell back a customer's card

> Non-crypto model: sell one vault card back at its current offer, credited to your statement.

Scope: `nft:orders` · Rate limit: 30 a minute, shared with [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md) and [Create a customer shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-customer-shipment.md)

For [Non-crypto model](https://catchbackcards.mintlify.site/partner-api/v2/settlement.md) programs only; a Crypto Wallet program gets `400 NOT_PARTNER_SETTLED` and sells back with a [quote and a burn](https://catchbackcards.mintlify.site/partner-api/v2/sell-back.md).

Sells the card at its current offer (the `sellback.amount` [Get a customer's vault](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/get-customer-vault.md) shows) and credits the payout to your statement. Nothing is paid out to the customer: you credit them your way.

A card sells once: a retry returns the first sale with `status: "already_sold"` and never sells or credits again, so this endpoint needs no `Idempotency-Key`. Retries sent at the same moment get the same answer: one sells, the rest return `already_sold`.

**customer** `string` *required*

Your own id for the customer.

**card\_id** `string` *required*

A `card.id` from the customer's vault. A UUID matches in any case.

**min\_payout** `number`

The least to accept, in dollars. A lower current offer is refused with `409 PRICE_CHANGED` and nothing is sold. Send what you showed your customer.

## Response

**201** when sold; **200** with `status: "already_sold"` on a retry.

**sellback** `object`

**sellback**

**status** `string`

`sold`, or `already_sold` (the first sale, unchanged).

**card\_id** `string`

**transaction\_id** `string`

The sale. The [statement](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/get-settlement.md) entry's `sellback_id`.

**payout\_amount** `number`

Credited to your statement, in dollars.

**payout\_rate** `number | null`

The rate paid (1 = 100%). Null on `already_sold`.

**on\_statement** `boolean`

Whether the credit is on your statement yet. Rarely `false`, and then it is added shortly.

## Errors

| Status | Code | When |
| - | - | - |
| `400` | `NOT_PARTNER_SETTLED` | Your program pays through customer wallets |
| `400` | `BAD_CUSTOMER` | `customer` isn't 1-128 characters of `A-Z a-z 0-9 _ . : -`, or is only dots |
| `400` | `BAD_CARD` | `card_id` isn't a card id |
| `400` | `BAD_JSON` | The body isn't JSON |
| `400` | `BAD_MIN_PAYOUT` | `min_payout` isn't a non-negative number |
| `404` | `CUSTOMER_NOT_FOUND` | No customer with that id has bought from your program |
| `404` | `CARD_NOT_IN_VAULT` | Your program didn't pull that card into this customer's vault |
| `409` | `PRICE_CHANGED` | The current offer is below `min_payout`; the body has `payout_amount` and `payout_rate`. Nothing is sold |
| `409` | `CARD_IN_BATTLE` | The card is held by a battle that hasn't finished |
| `409` | `CARD_LISTED_ON_MARKETPLACE` | The card is listed on the marketplace |
| `409` | `SHOP_PURCHASE_NOT_SELLABLE` | The item was bought from a partner shop: it can ship, not sell back |
| `409` | `GOODS_NOT_SELLABLE` | The item can't be sold back; it can still ship |
| `403` | `NO_PURCHASE_RECORD` | A sealed item with no purchase record can't be sold back |
| the refusal's, usually `400` | `SELLBACK_REFUSED` | Any other refusal of the sale, for example the card was shipped or is on its way out; the message says why. A `500` means it didn't go through: retry |

Nothing is sold on any refusal.

```bash cURL theme={null}
curl -X POST https://sandbox.catchbackcards.com/api/partner/v2/customers/user-1842/cards/838a5e7f-dc62-4618-ad4a-cf015de20536/sellback \
  -H "Authorization: Bearer $CATCHBACK_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "min_payout": 30 }'
```

```json 201 theme={null}
{
  "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
  }
}
```

```json 409 theme={null}
{ "error": "This sell-back pays 29.5, below your min_payout of 30", "code": "PRICE_CHANGED", "payout_amount": 29.5, "payout_rate": 1 }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.