> ## 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.

# Price a custom pack

> The price of a custom pack now, each card's value and the odds the draw uses.

Scope: `nft:orders` · Rate limit: 30 a minute, shared with the shipment estimates

The price of a [custom pack](https://catchbackcards.mintlify.site/partner-api/v2/custom-packs.md) now. It writes nothing and reserves nothing. Card values move, so [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md) prices the pack again: send the price you showed as `max_price`.

**cards** `object[]` *required*

5 to 10 different cards from [List custom pack cards](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/list-custom-pack-cards.md), each `{ "card_source", "id", "odds" }`. `odds` is any positive number; the cards' odds are normalized to sum to 1 and made the whole-number weights the draw uses (each card at least 1 in 1,000,000).

## Response

**price** `number`

The price now, in dollars, to the cent: the pack's expected value, with no fee on top. On a program with its own contract terms it follows them.

**cards** `object[]`

Each card with its `name`, `value` and `odds` as the draw uses them. Show these odds.

**fresh\_buyback\_rate** `number`

The sell-back rate in the fresh window, as a fraction (`1` = 100%). See [Sell-back](https://catchbackcards.mintlify.site/partner-api/v2/sell-back.md#what-a-sell-back-pays).

## Errors

| Status | Code | When |
| - | - | - |
| `400` | `BAD_JSON` | The body isn't JSON |
| `400` | `BAD_CUSTOM_PACK` | Not 5-10 cards, a card twice, an unknown `card_source`, a malformed `id`, or `odds` that aren't a positive number. The message names the card |
| `409` | `CUSTOM_CARDS_UNAVAILABLE` | Some cards can't go in a custom pack now (pulled, sold, or unknown); `unavailable` lists them |

```bash cURL theme={null}
curl -X POST https://sandbox.catchbackcards.com/api/partner/v2/custom-packs/price \
  -H "Authorization: Bearer $CATCHBACK_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "cards": [
    { "card_source": "pokemon", "id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e", "odds": 0.05 },
    { "card_source": "pokemon", "id": "4c1d2e3f-6a7b-4c8d-9e0f-1a2b3c4d5e6f", "odds": 0.2 },
    { "card_source": "pokemon", "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d", "odds": 0.25 },
    { "card_source": "pokemon", "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e", "odds": 0.25 },
    { "card_source": "pokemon", "id": "9d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a", "odds": 0.25 }
  ] }'
```

```json 200 theme={null}
{
  "price": 62.4,
  "cards": [
    { "card_source": "pokemon", "id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e", "name": "Charizard ex", "value": 410, "odds": 0.05 },
    { "card_source": "pokemon", "id": "4c1d2e3f-6a7b-4c8d-9e0f-1a2b3c4d5e6f", "name": "Pikachu", "value": 95, "odds": 0.2 }
  ],
  "fresh_buyback_rate": 0.9
}
```

```json 409 theme={null}
{ "error": "Some of these cards can't be put in a custom pack right now.", "code": "CUSTOM_CARDS_UNAVAILABLE", "unavailable": [{ "card_source": "pokemon", "id": "0e94dc61-5a2f-4b1e-9c3d-7f8a1b2c3d4e" }] }
```


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