The flow
- Pick cards: List custom pack cards, one category per call, highest value first.
- Price the pack: Price a custom pack with the cards and odds. Show the customer the price and each card’s odds as returned.
- Order it: Create an order with
custominstead ofpack_type, andmax_priceset to the price you showed.
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, andfresh_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_priceis refused with409 PRICE_CHANGED, with the newprice; show it and order again with a newIdempotency-Key; - a card pulled or sold since you priced it is refused with
409 CUSTOM_CARDS_UNAVAILABLE, andunavailablelists 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, or Sell back a customer’s card on the Non-crypto model): atfresh_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 returnsverification_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.
