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

# Custom packs

> Your customer picks 5 to 10 cards and sets each card's odds; one card is drawn.

A custom pack is one your customer designs: they pick 5 to 10 cards, set each card's odds, and one card is drawn. It is priced and opened by the same engine as the custom packs on catchbackcards.com. Everything after the order works as for any pack: payment, the mint or the vault, sell-back, shipping, webhooks and the proof. It works on both [integration models](https://catchbackcards.mintlify.site/partner-api/v2/integration-models.md).

## The flow

1. **Pick cards:** [List custom pack cards](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/list-custom-pack-cards.md), one category per call, highest value first.
2. **Price the pack:** [Price a custom pack](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/price-custom-pack.md) with the cards and odds. Show the customer the price and each card's odds as returned.
3. **Order it:** [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md) with `custom` instead of `pack_type`, and `max_price` set to the price you showed.

```bash theme={null}
curl -X POST https://sandbox.catchbackcards.com/api/partner/v2/orders \
  -H "Authorization: Bearer $CATCHBACK_KEY" \
  -H "Idempotency-Key: okx-ord-custom-0001" \
  -H "Content-Type: application/json" \
  -d '{
    "custom": { "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 }
    ] },
    "max_price": 62.4,
    "recipient": "0x8f3c...e21a"
  }'
```

On the Non-crypto model send `customer` instead of `recipient`, as for any order. Send no `pack_type`, `category` or `odds`, and `quantity` only as 1: each card is one physical item, so a custom pack is ordered one at a time.

The order is the usual order with `pack_type: "custom"`, `category: "custom"`, `odds: null` and a `custom` block listing each card with the odds the draw uses.

## The price

The price is the pack's expected value: each card's value times its odds, summed, to the cent. There is no fee on top. If your program has its own contract terms with CatchBack, the price and the fresh sell-back follow them, and `fresh_buyback_rate` shows the fresh rate.

Card values move with our daily price update, so the order prices the pack again:

* a price above `max_price` is refused with `409 PRICE_CHANGED`, with the new `price`; show it and order again with a new `Idempotency-Key`;
* a card pulled or sold since you priced it is refused with `409 CUSTOM_CARDS_UNAVAILABLE`, and `unavailable` lists the cards to swap out.

## The odds

The odds you send can be any positive numbers. They are normalized to sum to 1 and made the whole-number weights the draw uses, so each card is at least 1 in 1,000,000. The price endpoint and the order return the odds as drawn; show those.

## When the pack opens

The pack opens after the payment settles on the Crypto Wallet model, and at once on the Non-crypto model. It is checked again then: if a card is gone, or the cards are now worth more than was paid, it isn't opened and the order is refunded, exactly as a pack whose odds stopped selling is (`refund_due` then `refunded` in USDC on the Crypto Wallet model; `refunded` to your statement on the Non-crypto model). `failure_reason` is `CUSTOM_CARDS_UNAVAILABLE` or `PRICE_CHANGED`.

## Selling back

A custom pull sells back like any pull ([Sell-back](https://catchbackcards.mintlify.site/partner-api/v2/sell-back.md), or [Sell back a customer's card](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/sell-back-customer-card.md) on the Non-crypto model): at `fresh_buyback_rate` inside its fresh window, and on the usual schedule after.

## Proof

A custom pack draws with commit-reveal seeds. [Verify an order's pull](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/get-order-verification.md) returns `verification_type: "commit_reveal"`: every check (the pool, the card at the drawn index, the result hash) is shown, and `verified` stays false until the seed is revealed.


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