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

# Open a customer's reward pack

> **non-crypto programs with rewards on only.** **Rate limit:** 30 a minute, shared with Create an order, Sell back a customer's card and Create a customer shipment. [Customer rewards](/partner-api/v2/rewards).

The pack opens as an order for that pack at Standard odds, charged to your statement at your price for the pack as a `reward_order` entry (with its `pack_type`), with no revenue share. It counts against your credit limit, not the daily limits, and earns no XP. The card lands in the customer's vault like any pull, and sells back or ships as usual. The order is like any other in List orders, Get an order and `nft_order.updated`, with `reward_pack_id` set and an `order_id` of `reward_` and 32 hex characters.

A pack opens once: a retry for the same pack returns the same order (`200`, `idempotent_replay: true`), so no body and no `Idempotency-Key` are sent. `card` is null while the order is still opening: poll Get an order with `order.id` until it is `in_vault`. If the order is accepted but the pack then can't open, the order ends `refunded`, its price comes back off your statement as an `order_refund`, and the pack is unopened again; opening it later makes a new order.



## OpenAPI

````yaml /partner-api/v2/openapi.yaml post /api/partner/v2/customers/{customer}/reward-packs/{pack_id}/open
openapi: 3.1.0
info:
  title: CatchBack Partner API v2
  version: 2.0.0
  summary: >-
    Sell CatchBack packs to your users, on the Crypto Wallet model (NFTs in
    their own wallets) or the Non-crypto model (a CatchBack vault per customer,
    settled on your statement).
  description: >-
    The official contract for Partner API v2. Generate clients from this file.


    Every program runs one of two models, shown as `payment_mode` on Get your
    key. Guides: [Overview](/partner-api/v2/overview), [Integration
    models](/partner-api/v2/integration-models).


    - **Crypto Wallet model** (`payment_mode: wallet`): each customer pays for
    their own pack (USDC on
      Base or Solana, through a Unifold Payment Intent), and each pulled item is minted as an NFT to
      the customer's wallet. Whoever holds the NFT can trade it, sell it back for USDC, or have the
      physical item shipped. Selling back and shipping both burn the NFT. These programs use the
      wallet, token, quote, shipment and burn operations.
    - **Non-crypto model** (`payment_mode: partner`, also called partner
    settlement): you buy for your
      customer, named by your own id for them (`customer`), each card stays in that customer's
      CatchBack vault, and orders, sell-backs and shipping go on your statement with a credit limit.
      These programs use the operations tagged `Customers` and `Settlement` instead of the wallet,
      token, quote and burn ones. [Non-crypto model](/partner-api/v2/settlement).

    Catalog, odds, orders, webhooks, keys and the sandbox are shared by both.


    - **Auth:** every `/api/partner/v2` request sends your key as a bearer
    token, and every key
      needs the scope `nft:orders`. The public token metadata needs no key.
    - **Your program:** your key is linked to your partner program, which fixes
    the chain your
      NFTs mint on (`mint_chain`) and your collection contract. An order, token, quote or shipment
      from another program answers `404`.
    - **Formats:** JSON, UTF-8. Money is USD as a number in dollars (`25`,
    `9.85`). New fields can be
      added to any response; ignore fields you don't know.
    - **Errors:** bodies are `{ "error": "<message>" }`, and errors your
    integration should act on
      also carry a stable `code` (see `ErrorCode`). Branch on the status and the `code`, never on the
      message text. [Errors](/partner-api/v2/errors).
    - **Idempotency:** `POST /orders`, `POST /shipments`, `POST
    /tokens/{tokenId}/shipment`,
      `POST /customers/{customer}/shipments` and `POST /keys/rotate` require an `Idempotency-Key`. [Idempotency](/partner-api/v2/idempotency).
    - **Sandbox:** the sandbox runs the same API with simulated payments on a
    public testnet. Set it up
      yourself: in your manager (`catchbackcards.com/<slug>/admin/api`), Get started, **Set up my sandbox**, then create a sandbox key there. The operations tagged `Sandbox` exist only there
      and answer `404` in production.
    - **`x-moves-money: true`:** marks the operations that start real money
    moving in production: the
      customer pays (an order or a shipment), or the holder is paid in USDC (a sell-back quote, and the
      burn that settles it). On a non-crypto program they put an order, a sell-back credit or
      shipping on your statement instead. In the sandbox the same operations move
      only simulated money, so flag them in your tooling, but they are safe to call there.
  contact:
    name: CatchBack support
    email: support@catchbackcards.com
servers:
  - url: https://sandbox.catchbackcards.com
    description: >-
      Sandbox. Simulated payments, real NFTs on Base Sepolia. Set it up from Get
      started in your manager. Build and test here first.
  - url: https://catchbackcards.com
    description: Production. Every payment is real money.
security:
  - bearerAuth:
      - nft:orders
tags:
  - name: Packs
    description: The packs you can sell, their odds and every item they can pull.
  - name: Custom packs
    description: >-
      Your customer picks 5-10 cards and sets each card's odds; price the pack,
      then order it with Create an order.
  - name: Orders
    description: >-
      Buy 1-10 packs for one wallet, follow the order to the mint, and prove the
      pull.
  - name: Tokens
    description: A wallet's tokens and one token's item, holder and sell-back schedule.
  - name: Sell-back
    description: >-
      Quote a sell-back, have the holder burn with it, and follow the USDC
      payout.
  - name: Shipments
    description: >-
      Pay shipping for 1-25 tokens, have the holder burn each one, and track the
      box.
  - name: Webhooks
    description: Register, read, test and remove your webhook URL.
  - name: Webhook events
    description: Signed POSTs we send to your webhook URL.
  - name: Keys
    description: Read, rotate and revoke your API key.
  - name: Revenue
    description: Your monthly revenue-share statement.
  - name: Customers
    description: >-
      Non-crypto programs only: a customer's vault, sell-backs and shipments, by
      your own id for the customer.
  - name: Settlement
    description: >-
      Non-crypto programs only: what you owe, your limits and your monthly
      statement.
  - name: Sandbox
    description: Sandbox-only helpers. Every one answers `404` in production.
  - name: Metadata
    description: Public NFT metadata that wallets and marketplaces read with no key.
paths:
  /api/partner/v2/customers/{customer}/reward-packs/{pack_id}/open:
    post:
      tags:
        - Customers
      summary: Open a customer's reward pack
      description: >-
        **non-crypto programs with rewards on only.** **Rate limit:** 30 a
        minute, shared with Create an order, Sell back a customer's card and
        Create a customer shipment. [Customer rewards](/partner-api/v2/rewards).


        The pack opens as an order for that pack at Standard odds, charged to
        your statement at your price for the pack as a `reward_order` entry
        (with its `pack_type`), with no revenue share. It counts against your
        credit limit, not the daily limits, and earns no XP. The card lands in
        the customer's vault like any pull, and sells back or ships as usual.
        The order is like any other in List orders, Get an order and
        `nft_order.updated`, with `reward_pack_id` set and an `order_id` of
        `reward_` and 32 hex characters.


        A pack opens once: a retry for the same pack returns the same order
        (`200`, `idempotent_replay: true`), so no body and no `Idempotency-Key`
        are sent. `card` is null while the order is still opening: poll Get an
        order with `order.id` until it is `in_vault`. If the order is accepted
        but the pack then can't open, the order ends `refunded`, its price comes
        back off your statement as an `order_refund`, and the pack is unopened
        again; opening it later makes a new order.
      operationId: openCustomerRewardPack
      parameters:
        - $ref: '#/components/parameters/Customer'
        - name: pack_id
          in: path
          required: true
          description: A `pack_id` from List a customer's reward packs.
          schema:
            type: string
            format: uuid
          example: 4f0c2a8e-1b9d-4e57-9a63-0c1d2e3f4a5b
      responses:
        '200':
          description: >-
            A retry. The same order, now; nothing is charged again. `card` is
            null if the card has left the vault since.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenRewardPackResponse'
        '201':
          description: Opened. The order is on your statement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenRewardPackResponse'
              example:
                order:
                  order_id: reward_9b2e4c1a7f3d4e5b8a6c0d1e2f3a4b5c
                  id: 9b2e4c1a-7f3d-4e5b-8a6c-0d1e2f3a4b5c
                  status: in_vault
                  pack_type: gold
                  category: pokemon
                  odds: standard
                  price: 100
                  recipient: null
                  mint_chain: null
                  paid_at: '2026-12-03T18:04:59.812Z'
                  custody: vault
                  customer: user-1842
                  reward_pack_id: 4f0c2a8e-1b9d-4e57-9a63-0c1d2e3f4a5b
                  pull:
                    card_id: 838a5e7f-dc62-4618-ad4a-cf015de20536
                    category: pokemon
                    name: Charizard ex PSA 10
                    value: 104
                    pulled_at: '2026-12-03T18:05:00.317Z'
                  token: null
                  failure_reason: null
                  created_at: '2026-12-03T18:04:59.812Z'
                card:
                  card:
                    id: 838a5e7f-dc62-4618-ad4a-cf015de20536
                    category: pokemon
                    name: Charizard ex PSA 10
                    grading_company: PSA
                    grading_rank: 10
                    market_value: 104
                    market_value_last_updated: '2026-12-03T17:04:12.000Z'
                    image_url: https://images.catchbackcards.com/render.png
                  order_id: reward_9b2e4c1a7f3d4e5b8a6c0d1e2f3a4b5c
                  pulled_at: '2026-12-03T18:05:00.317Z'
                  value_at_pull: 104
                  sellback:
                    amount: 104
                    rate: 1
                    fresh: true
                    fresh_until: '2026-12-03T18:10:00.317Z'
                    locked_until: '2026-12-10T18:05:00.317Z'
        '400':
          $ref: '#/components/responses/CustomerBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            `CREDIT_LIMIT`: the pack's price would take what you owe past your
            credit limit. Carries `owed`, `credit_limit` and `order_total`.
            Nothing is charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  Opening this reward pack would take your statement past its
                  credit limit.
                code: CREDIT_LIMIT
                owed: 9950
                credit_limit: 10000
                order_total: 100
        '403':
          description: >-
            - `REWARDS_NOT_ENABLED`: rewards aren't turned on for your program.
            Ask your CatchBack contact.

            - `CUSTOMER_BLOCKED`: the customer can't open packs (self-excluded
            or banned). The pack stays unopened. Don't retry.

            - `PROGRAM_INACTIVE`: your program is not live.

            - Or any of the key and program refusals every endpoint can give
            (`NO_PROGRAM`, `NOT_AVAILABLE`, a missing scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: This customer cannot open packs here.
                code: CUSTOMER_BLOCKED
        '404':
          description: >-
            - `CUSTOMER_NOT_FOUND`: no customer with that id has bought from
            your program.

            - `REWARD_PACK_NOT_FOUND`: no reward pack with that id for this
            customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: No reward pack with that id for this customer.
                code: REWARD_PACK_NOT_FOUND
        '409':
          description: '`REWARD_PACK_ALREADY_OPENED`: the pack was already opened.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: This reward pack was already opened.
                code: REWARD_PACK_ALREADY_OPENED
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          description: >-
            - `REWARD_PACK_UNAVAILABLE`: the pack can't open right now
            (restocking). Carries `retryable: true`. Nothing is charged and the
            pack stays unopened; retry later.

            - `CUSTOMER_CHECK_UNAVAILABLE`: we couldn't check the customer right
            now. Nothing is charged; retry shortly.

            - `AUTH_UNAVAILABLE`, or no code: we couldn't check your key or load
            your program; retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  Gold can't open right now; the reward stays unopened. Try
                  again later.
                code: REWARD_PACK_UNAVAILABLE
                retryable: true
components:
  parameters:
    Customer:
      name: customer
      in: path
      required: true
      description: >-
        Your own id for the customer, as you sent it as `customer` on Create an
        order. 1-128 characters of `A-Za-z0-9_.:-`, not dots alone; never
        personal data. Case-sensitive.
      schema:
        $ref: '#/components/schemas/CustomerId'
      example: user-1842
  schemas:
    OpenRewardPackResponse:
      type: object
      required:
        - order
        - card
      properties:
        order:
          description: >-
            The order that opened the pack, with `custody` `vault`, `odds`
            `standard` and `reward_pack_id`.
          allOf:
            - $ref: '#/components/schemas/Order'
        card:
          description: >-
            The card in the customer's vault. Null while the order is still
            opening (poll Get an order), or on a retry once the card has been
            sold back or shipped.
          oneOf:
            - $ref: '#/components/schemas/VaultCard'
            - type: 'null'
        idempotent_replay:
          type: boolean
          const: true
          description: Only on a retry for a pack already opened.
    Error:
      type: object
      required:
        - error
      description: >-
        Every error body. `code` is stable where you might branch on it; some
        errors add the fields below.
      properties:
        error:
          type: string
          description: >-
            For people. The text can change, so branch on the status and the
            `code`.
        code:
          description: >-
            Machine-readable, where you might branch on it. New codes can be
            added, so treat an unknown one like a missing one.
          anyOf:
            - $ref: '#/components/schemas/ErrorCode'
            - type: string
        retry_after_seconds:
          type: integer
          description: >-
            Seconds to wait, on `RATE_LIMITED`, `TOO_MANY_UNPAID_ORDERS`,
            `CUSTOMER_DAILY_LIMIT`, `DAILY_LIMIT` and
            `DAILY_SHIPMENT_LIMIT_REACHED` (with a `Retry-After` header).
        odds:
          description: >-
            On `BAD_ODDS` when the pack sells other odds: the choices it sells.
            On `ODDS_UNAVAILABLE` from Create an order: the choice asked for.
          oneOf:
            - type: array
              items:
                $ref: '#/components/schemas/Odds'
            - $ref: '#/components/schemas/Odds'
        reason:
          type:
            - string
            - 'null'
          description: >-
            On `ODDS_UNAVAILABLE` from Create an order: `Out of stock`, `Odds
            maintenance in progress` or `Not available right now`.
        status:
          type: string
          description: >-
            On `NOT_PULLED`, the order's status; on `ALREADY_PAID`, the
            payment's; on `BAD_TRANSITION`, the shipment's.
        unpaid_packs:
          type: integer
          description: On `TOO_MANY_UNPAID_ORDERS`, the wallet's unpaid packs.
        argument:
          type: string
          description: >-
            On `MISSING_ARGUMENT`, `UNKNOWN_ARGUMENT` and `BAD_ARGUMENT` from
            the MCP server, the argument.
        token_ids:
          type: array
          items:
            type: string
          description: On a refusal about particular tokens, the token ids it is about.
        quote_id:
          type: string
          description: >-
            On `TOKEN_IN_SHIPMENT` from the one-token endpoint, the shipment
            waiting for the burn.
        fields:
          description: >-
            On `BAD_ADDRESS` from a shipment or estimate: an object mapping each
            bad address field to what is wrong with it. On
            `WALLET_FIELDS_NOT_ACCEPTED`: an array naming the wallet fields that
            were sent.
          oneOf:
            - type: object
              additionalProperties:
                type: string
            - type: array
              items:
                type: string
        order_value:
          type: number
          description: On `COVER_NOT_ALLOWED`.
        min_cover:
          type: number
          description: On `COVER_NOT_ALLOWED`.
        max_cover:
          type:
            - number
            - 'null'
          description: On `COVER_NOT_ALLOWED`; null when the items can't be insured.
        amount:
          type: number
          description: On `PRICE_CHANGED`, the current shipping cost.
        successor:
          type: object
          description: On `ALREADY_ROTATED`, the key that replaced this one.
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: On `ALREADY_ROTATED`, when this key stops working.
        owed:
          type: number
          description: On `CREDIT_LIMIT`, what you owe now.
        credit_limit:
          type: number
          description: On `CREDIT_LIMIT`, your credit limit.
        order_total:
          type: number
          description: >-
            On `CREDIT_LIMIT`, `CUSTOMER_DAILY_LIMIT` and `DAILY_LIMIT` from
            Create an order, the order's total; on `CREDIT_LIMIT` from Open a
            customer's reward pack, the pack's price.
        shipment_total:
          type: number
          description: >-
            On `CREDIT_LIMIT` from Create a customer shipment, the shipment's
            total (postage, any cover and the processing fee).
        spent_today:
          type: number
          description: >-
            On `CUSTOMER_DAILY_LIMIT` and `DAILY_LIMIT`, what was spent this UTC
            day.
        limit:
          type: number
          description: >-
            On `CUSTOMER_DAILY_LIMIT` and `DAILY_LIMIT`, the daily limit in
            dollars; on `DAILY_SHIPMENT_LIMIT_REACHED`, the shipments allowed a
            day; on `TOO_MANY_UNPAID_ORDERS`, the unpaid packs allowed.
        resets_at:
          type: string
          format: date-time
          description: On `DAILY_SHIPMENT_LIMIT_REACHED`, the next UTC midnight.
        card_ids:
          type: array
          items:
            type: string
          description: >-
            On `CARDS_NOT_IN_VAULT`, the cards that aren't in the customer's
            vault from your program.
        cards:
          type: array
          description: >-
            On `CARDS_NOT_SHIPPABLE` from a customer shipment or estimate, each
            card that can't ship and why.
          items:
            type: object
            required:
              - card_id
              - reason
            properties:
              card_id:
                type: string
              reason:
                type: string
                enum:
                  - not_in_vault
                  - listed
                  - shipping
                  - on_hold
                  - not_a_card
        unavailable:
          type: array
          description: >-
            On `CUSTOM_CARDS_UNAVAILABLE`, the cards that can't go in a custom
            pack now.
          items:
            type: object
            required:
              - card_source
              - id
            properties:
              card_source:
                $ref: '#/components/schemas/CustomPackCardSource'
              id:
                type: string
        price:
          type: number
          description: >-
            On `PRICE_CHANGED` from Create an order with `custom`, the custom
            pack's price now.
        max_price:
          type: number
          description: >-
            On `PRICE_CHANGED` from Create an order with `custom`, the
            `max_price` you sent.
        payout_amount:
          type: number
          description: >-
            On `PRICE_CHANGED` from Sell back a customer's card, the current
            offer.
        payout_rate:
          type:
            - number
            - 'null'
          description: >-
            On `PRICE_CHANGED` from Sell back a customer's card, the current
            rate.
        max_cost:
          type: number
          description: >-
            On `PRICE_CHANGED` from Create a customer shipment, the `max_cost`
            you sent.
        shipping_cost:
          type: number
          description: >-
            On `PRICE_CHANGED` from Create a customer shipment, the postage
            alone.
        processing_fee:
          type: number
          description: >-
            On `PRICE_CHANGED` from a shipment, the card processing fee: $5.99
            for each item.
        insurance_premium:
          type: number
          description: >-
            On `PRICE_CHANGED` from Create a customer shipment with cover, the
            cover's premium.
        shipment_id:
          type: string
          description: >-
            On `SHIPMENT_OUTCOME_UNKNOWN` and `IDEMPOTENCY_IN_PROGRESS`, the
            shipment.
        started_at:
          type: string
          format: date-time
          description: On `IDEMPOTENCY_IN_PROGRESS`, when that shipment started.
        needs_review:
          type: boolean
          description: True when the request is with our team.
        retryable:
          type: boolean
          description: 'On `REWARD_PACK_UNAVAILABLE`: `true`, retry later.'
        capability:
          type: string
          description: >-
            On `CUSTOMER_BLOCKED` from a customer shipment or estimate, which
            block applies.
    CustomerId:
      type: string
      pattern: ^(?!\.+$)[A-Za-z0-9_.:-]{1,128}$
      description: >-
        Your own id for a customer on a non-crypto program, 1-128 characters of
        `A-Za-z0-9_.:-`, not dots alone. Use something stable that is not
        personal data (your internal user id, never an email address or phone
        number). Ids are yours alone. Leading and trailing spaces are trimmed,
        and ids are case-sensitive (`User-1` and `user-1` are two customers).
      examples:
        - user-1842
    Order:
      type: object
      description: One single-pack order.
      required:
        - order_id
        - id
        - status
        - pack_type
        - category
        - odds
        - price
        - recipient
        - mint_chain
        - paid_at
        - custody
        - pull
        - token
        - failure_reason
        - created_at
      properties:
        order_id:
          type: string
          description: Your `Idempotency-Key`.
        id:
          type: string
          format: uuid
          description: Our id.
        status:
          $ref: '#/components/schemas/OrderStatus'
        pack_type:
          type: string
          description: '`custom` on a custom pack.'
        category:
          description: '`custom` on a custom pack.'
          anyOf:
            - $ref: '#/components/schemas/PackCategory'
            - type: string
              const: custom
        odds:
          description: >-
            Null on a custom pack, whose odds are in `custom`. `classic` only on
            an order placed before 2026-12-04.
          oneOf:
            - $ref: '#/components/schemas/OrderOdds'
            - type: 'null'
        custom:
          allOf:
            - $ref: '#/components/schemas/CustomPackOrderBlock'
          description: Only on a custom pack.
        price:
          type: number
        recipient:
          type:
            - string
            - 'null'
          description: Null on a non-crypto program.
        mint_chain:
          description: Null on a non-crypto program.
          oneOf:
            - $ref: '#/components/schemas/ChainKey'
            - type: 'null'
        paid_at:
          type:
            - string
            - 'null'
          format: date-time
        custody:
          type: string
          enum:
            - wallet
            - vault
          description: >-
            `wallet`: the item is minted as an NFT to `recipient`. `vault`: a
            Non-crypto model order; the card stays in the `customer`'s CatchBack
            vault.
        customer:
          type:
            - string
            - 'null'
          description: 'Only when `custody` is `vault`: the customer, by your own id.'
        reward_pack_id:
          type: string
          format: uuid
          description: >-
            Only on an order that opened a customer's reward pack (Open a
            customer's reward pack): the pack's `pack_id`. Its `order_id` is
            `reward_` and 32 hex characters.
        pull:
          oneOf:
            - $ref: '#/components/schemas/Pull'
            - type: 'null'
        token:
          oneOf:
            - $ref: '#/components/schemas/OrderToken'
            - type: 'null'
        failure_reason:
          type:
            - string
            - 'null'
          description: >-
            On `mint_failed`, `expired`, `refund_due` and `refunded`: why. On
            `mint_failed`: `mint_send_failed`, `mint_tx_dropped` or
            `mint_tx_reverted` (retried), `mint_not_configured` or
            `mint_asset_conflict` (our team resolves it), or
            `unmintable_source:<source>`. On `refund_due`/`refunded`:
            `underpaid`, `paid_after_expiry`, or why the pack couldn't open.
        created_at:
          type: string
          format: date-time
    VaultCard:
      type: object
      required:
        - card
        - order_id
        - pulled_at
        - value_at_pull
        - sellback
      properties:
        card:
          description: >-
            The card as our catalog has it at this moment, read on every call:
            `id` (pass it as `card_id` to read, sell back or ship it),
            `category`, `name` (the name the card was pulled as), grade, cert,
            images, its current `market_value` and `market_value_last_updated`,
            and the other catalog fields it has. Values can change at any time.
          allOf:
            - $ref: '#/components/schemas/Item'
            - type: object
              required:
                - name
                - market_value
        order_id:
          type: string
          description: The `order_id` (your `Idempotency-Key`) of the order that pulled it.
        pulled_at:
          type: string
          format: date-time
        value_at_pull:
          type: number
          description: >-
            The card's value when it was pulled, in dollars. Never changes;
            `card.market_value` is today's.
        sellback:
          type: object
          description: What a sell-back pays right now.
          required:
            - amount
            - rate
            - fresh
            - fresh_until
            - locked_until
          properties:
            amount:
              type: number
              description: The payout, in dollars.
            rate:
              type: number
              description: The share of the basis paid (1 = 100%).
            fresh:
              type: boolean
              description: True inside the fresh window after the pull, at the higher rate.
            fresh_until:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                When the fresh window ends (or ended): 5 minutes after
                `pulled_at` on our standard terms, or your terms' own window.
                Null when your terms' fresh rate has no expiry; then
                `locked_until` is null too and the amount stays fixed at the
                value when pulled.
            locked_until:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Until then the offer is based on the value when the card was
                acquired, so a price change doesn't move it.
    ErrorCode:
      type: string
      description: >-
        Every `code` v2 returns. Branch on these, never on the message text.
        `UNKNOWN_TOOL`, `MISSING_ARGUMENT`, `UNKNOWN_ARGUMENT`, `BAD_ARGUMENT`,
        `MISSING_SCOPE`, `BAD_PATH`, `DOC_NOT_FOUND` and `DOCS_UNAVAILABLE` come
        only from the MCP server, as a tool result; `UNKNOWN_PROGRAM` only from
        the public feeds.
      enum:
        - BAD_PAYMENT_METHOD
        - SIGNATURE_PAYMENT_UNAVAILABLE
        - POSTAGE_DUE
        - BAD_PERMIT_SIGNATURE
        - INSUFFICIENT_FUNDS
        - PERMIT2_NOT_APPROVED
        - RATE_LIMITED
        - AUTH_UNAVAILABLE
        - NO_PROGRAM
        - PROGRAM_INACTIVE
        - NOT_AVAILABLE
        - BAD_JSON
        - BAD_IDEMPOTENCY_KEY
        - IDEMPOTENCY_KEY_REUSED
        - BAD_RECIPIENT
        - BAD_PACK
        - BAD_CATEGORY
        - BAD_ODDS
        - BAD_QUANTITY
        - BAD_CUSTOM_PACK
        - BAD_MAX_PRICE
        - BAD_QUERY
        - CUSTOM_CARDS_UNAVAILABLE
        - ODDS_UNAVAILABLE
        - BAD_REFUND_ADDRESS
        - PACK_NOT_OFFERED
        - WALLET_REFUSED
        - WALLET_BLOCKED
        - SCREENING_UNAVAILABLE
        - UNKNOWN_ORDER
        - NOT_PULLED
        - VERIFY_UNAVAILABLE
        - BAD_CURSOR
        - BAD_LIMIT
        - BAD_STATUS
        - BAD_ADDRESS
        - BAD_CARD_IDS
        - BAD_RATE
        - BAD_PARTNER_USER_REF
        - UNKNOWN_TOKEN
        - BAD_HOLDER
        - NOT_HOLDER
        - CHAIN_UNAVAILABLE
        - TOKEN_NOT_MINTED
        - TOKEN_BURNED
        - TOKEN_NOT_LIVE
        - NO_OFFER
        - PAYOUT_CHAIN_NOT_SUPPORTED
        - PAYOUT_CHAIN_NOT_ENABLED
        - BAD_PAYOUT_ADDRESS
        - USE_SHIPMENT_ENDPOINT
        - BAD_TOKEN_IDS
        - TOKEN_IN_SHIPMENT
        - BAD_COVER
        - COVER_NOT_ALLOWED
        - COVER_UNAVAILABLE
        - BAD_MAX_COST
        - NOT_SHIPPABLE
        - PARTNER_GOODS
        - COUNTRY_NOT_SUPPORTED
        - OVER_CUSTOMS_CAP
        - RATE_UNAVAILABLE
        - PRICE_CHANGED
        - UNKNOWN_SHIPMENT
        - NOT_PAID
        - ALREADY_REDEEMED
        - HOLDER_CHANGED
        - UNKNOWN_QUOTE
        - INVALID_WEBHOOK_URL
        - WEBHOOK_ACCOUNT_CHANGED
        - WEBHOOKS_UNAVAILABLE
        - UNKNOWN_WEBHOOK
        - KEY_ROTATED
        - BAD_PERIOD
        - INVALID_KEY
        - NO_PREVIOUS_KEY
        - ALREADY_ROTATED
        - UNKNOWN_PAYMENT
        - NOT_BURNED
        - WALLET_FIELDS_NOT_ACCEPTED
        - BAD_CUSTOMER
        - CUSTOMER_BLOCKED
        - CUSTOMER_CHECK_UNAVAILABLE
        - CREDIT_LIMIT
        - CUSTOMER_DAILY_LIMIT
        - DAILY_LIMIT
        - NOT_PARTNER_SETTLED
        - CUSTOMER_NOT_FOUND
        - CUSTOMER_UNAVAILABLE
        - BAD_CARD
        - BAD_MIN_PAYOUT
        - CARD_NOT_IN_VAULT
        - CARDS_NOT_IN_VAULT
        - CARDS_NOT_SHIPPABLE
        - DAILY_SHIPMENT_LIMIT_REACHED
        - IDEMPOTENCY_IN_PROGRESS
        - IDEMPOTENCY_RETRY
        - SHIPMENT_OUTCOME_UNKNOWN
        - SHIPMENT_NOT_CREATED
        - NOT_CREATED
        - TOO_MANY_UNPAID_ORDERS
        - SELLBACK_REFUSED
        - SHIPMENT_REFUSED
        - BAD_QUOTE_ID
        - BAD_HOLDER_SIGNATURE
        - RELAY_NOT_SUPPORTED
        - QUOTE_USED
        - QUOTE_EXPIRED
        - QUOTE_NOT_RELAYABLE
        - RELAY_IN_PROGRESS
        - CHAIN_REFUSED
        - CONTRACT_PAUSED
        - BAD_AMOUNT
        - UNKNOWN_PROGRAM
        - UNKNOWN_TOOL
        - MISSING_ARGUMENT
        - MISSING_SCOPE
        - BAD_PATH
        - DOCS_UNAVAILABLE
        - DOC_NOT_FOUND
        - UNKNOWN_ARGUMENT
        - BAD_ARGUMENT
        - CRYPTO_WALLET_MODEL_ONLY
        - BAD_TRANSITION
        - ALREADY_PAID
        - SANDBOX_KEY
        - NOT_FOUND
        - CARD_IN_BATTLE
        - CARD_LISTED_ON_MARKETPLACE
        - SHOP_PURCHASE_NOT_SELLABLE
        - GOODS_NOT_SELLABLE
        - NO_PURCHASE_RECORD
        - REWARDS_NOT_ENABLED
        - REWARD_PACK_NOT_FOUND
        - REWARD_PACK_ALREADY_OPENED
        - REWARD_PACK_UNAVAILABLE
        - BAD_TIER
    Odds:
      type: string
      enum:
        - standard
        - hot
        - chill
        - fifty_fifty
      description: >-
        The odds a pack is opened at, as in our app's picker. Standard, Hot and
        Chill share one value-band ladder and differ only in the chance of each
        band; 50/50 (`fifty_fifty`) is two bands at exactly even chances, a
        small loss or a pull worth about twice the price, offered only on the
        packs that sell it in our app, once it is open to every customer there,
        and, on a program with its own agreed pricing terms, only when those
        terms include 50/50. Classic odds are not sold to partners.
        [Odds](/partner-api/v2/odds).
    CustomPackCardSource:
      type: string
      enum:
        - pokemon
        - onepiece
        - sports
        - riftbound
        - watches
      default: pokemon
      description: >-
        The categories a custom pack can hold. Streetwear, jewelry and raw
        singles can't go in one.
    OrderStatus:
      type: string
      enum:
        - awaiting_payment
        - accepted
        - paid
        - rolled
        - minted
        - in_vault
        - mint_failed
        - expired
        - refund_due
        - refunded
      description: >-
        - `awaiting_payment`: waiting for the payment, for up to 24 hours.

        - `expired`: not paid within 24 hours. A payment that still arrives is
        refunded in full.

        - `paid`: settled; the pack opens next.

        - `rolled`: the pack opened (`pull` is set); the NFT is being minted.

        - `minted` (final): the NFT is in `recipient`'s wallet.

        - `in_vault` (final, non-crypto programs): the pack opened and the card
        is in the `customer`'s vault. Nothing is minted. A settled order goes
        `paid` → `in_vault`, or to `refunded` (the price back off your
        statement) if the pack can't open.

        - `mint_failed`: the mint hasn't landed yet; it is retried and never
        re-opens the pack.

        - `refund_due`: being refunded in USDC on Base to `refund_address`;
        `failure_reason` says why (e.g. `paid_after_expiry`, `underpaid`).

        - `refunded` (final): the refund was sent.
    PackCategory:
      type: string
      enum:
        - pokemon
        - onepiece
        - sports
        - riftbound
        - watches
        - goods
      default: pokemon
      description: >-
        `goods` packs hold streetwear and jewelry. A pack is never `singles`:
        raw singles come out of other categories' packs (see ItemCategory).
    OrderOdds:
      type: string
      enum:
        - standard
        - hot
        - chill
        - fifty_fifty
        - classic
      description: >-
        The odds an order was placed at: one of the `Odds` values, or `classic`
        on an order placed before 2026-12-04, when partners could still buy
        Classic odds.
    CustomPackOrderBlock:
      type: object
      description: A custom pack's cards, each with the odds the draw uses.
      required:
        - cards
      properties:
        cards:
          type: array
          items:
            type: object
            required:
              - card_source
              - id
              - odds
            properties:
              card_source:
                $ref: '#/components/schemas/CustomPackCardSource'
              id:
                type: string
              odds:
                type: number
    ChainKey:
      type: string
      description: >-
        A chain as `<family>:<id>`: `evm:8453` is Base, `evm:<chainId>` any
        other EVM chain (e.g. `evm:10`, OP Mainnet), `solana:mainnet` Solana.
        The sandbox uses a public testnet.
      pattern: ^(evm:[0-9]+|solana:(mainnet|devnet))$
      examples:
        - evm:8453
    Pull:
      type: object
      required:
        - card_id
        - category
        - name
        - value
        - pulled_at
      properties:
        card_id:
          type: string
        category:
          $ref: '#/components/schemas/ItemCategory'
        name:
          type:
            - string
            - 'null'
        value:
          type: number
          description: The item's value when it was pulled; it anchors the sell-back offer.
        pulled_at:
          type: string
          format: date-time
    OrderToken:
      type: object
      description: >-
        The NFT. On an EVM program it has `contract`; on a Solana program
        `collection` and `asset` instead.
      required:
        - chain
        - token_id
        - status
        - tx
      properties:
        chain:
          $ref: '#/components/schemas/ChainKey'
        contract:
          type:
            - string
            - 'null'
          description: EVM only.
        collection:
          type:
            - string
            - 'null'
          description: Solana only.
        asset:
          type:
            - string
            - 'null'
          description: Solana only.
        token_id:
          type:
            - string
            - 'null'
          description: Decimal. Keep it as a string or bigint.
        status:
          type: string
          enum:
            - pending
            - submitted
            - confirmed
            - failed
            - burned
          description: >-
            `pending` (reserved, not sent), `submitted`, `confirmed`, `failed`
            (being retried), or `burned` once sold back or shipped.
        tx:
          type:
            - string
            - 'null'
          description: The mint transaction.
    Item:
      type: object
      description: >-
        An item's catalog fields. Which fields an item has depends on its
        category; every one can be absent or null.
      required:
        - id
        - category
      additionalProperties: true
      properties:
        id:
          type: string
        category:
          $ref: '#/components/schemas/ItemCategory'
        name:
          type:
            - string
            - 'null'
        set:
          type:
            - string
            - 'null'
        year:
          type:
            - string
            - integer
            - 'null'
        number:
          type:
            - string
            - 'null'
        variant:
          type:
            - string
            - 'null'
        rarity:
          type:
            - string
            - 'null'
          description: Print rarity, e.g. "Rare Holo".
        card_type:
          type:
            - string
            - 'null'
        language:
          type:
            - string
            - 'null'
        slab_label:
          type:
            - string
            - 'null'
        grading_company:
          type:
            - string
            - 'null'
        grading_rank:
          type:
            - number
            - string
            - 'null'
        card_condition:
          type:
            - string
            - 'null'
        cert_number:
          type:
            - string
            - 'null'
        brand:
          type:
            - string
            - 'null'
        reference_number:
          type:
            - string
            - 'null'
        condition:
          type:
            - string
            - 'null'
        size:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        goods_category:
          type:
            - string
            - 'null'
          description: >-
            Luxury goods only (`category: goods`): the item's own kind, e.g.
            `streetwear` or `jewelry`.
        video_url:
          type:
            - string
            - 'null'
        sport:
          type:
            - string
            - 'null'
        player_name:
          type:
            - string
            - 'null'
        team:
          type:
            - string
            - 'null'
        manufacturer:
          type:
            - string
            - 'null'
        parallel:
          type:
            - string
            - 'null'
        is_rookie:
          type:
            - boolean
            - 'null'
        is_autograph:
          type:
            - boolean
            - 'null'
        is_memorabilia:
          type:
            - boolean
            - 'null'
        serial_numbered:
          type:
            - string
            - integer
            - boolean
            - 'null'
        front_image:
          type:
            - string
            - 'null'
        back_image:
          type:
            - string
            - 'null'
        render_image:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        market_value:
          type:
            - number
            - 'null'
          description: The item's current market value in dollars.
        market_value_last_updated:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When `market_value` was last set. Can be null for an item priced by
            hand.
        price:
          type:
            - number
            - 'null'
          description: >-
            The item's listed price in our shop, in dollars. Sell-backs don't
            use it: they are priced from the value at pull and `market_value`.
    ItemCategory:
      type: string
      enum:
        - pokemon
        - onepiece
        - sports
        - riftbound
        - watches
        - goods
        - singles
      description: >-
        The category of an item a pack pulled: a pack's categories plus
        `singles`, the raw ungraded singles some packs pull.
  responses:
    CustomerBadRequest:
      description: >-
        - `NOT_PARTNER_SETTLED`: your program pays through customer wallets; use
        the wallet, token and shipment operations.

        - `BAD_CUSTOMER`: `customer` isn't 1-128 characters of `A-Za-z0-9_.:-`,
        or is only dots.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: >-
              This program pays through customer wallets: read GET
              /wallets/{address}/tokens
            code: NOT_PARTNER_SETTLED
    Unauthorized:
      description: >-
        - `Missing or malformed API key`: no `Bearer cb_live_…` or `Bearer
        cb_test_…` header.

        - `This is a sandbox key. Send it to https://sandbox.catchbackcards.com
        instead.` (code `SANDBOX_KEY`): a `cb_test_` key sent to production.

        - `Invalid API key`: unknown or disabled, or a rotated key past its 24
        hours.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Missing or malformed API key
    RateLimited:
      description: >-
        `RATE_LIMITED`: too many requests from this key. Wait
        `retry_after_seconds`. Limits per key: `POST /orders`, `POST
        /customers/{customer}/cards/{card_id}/sellback`, `POST
        /customers/{customer}/shipments`, `POST
        /customers/{customer}/reward-packs/{pack_id}/open` and `POST
        /customers/{customer}/tier` 30 a minute together; the three shipment
        estimates 30 a minute together; every other endpoint 120 a minute
        together.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests. Slow down.
            code: RATE_LIMITED
            retry_after_seconds: 23
    ServerError:
      description: >-
        Our fault. Retry with backoff, with the same `Idempotency-Key` where the
        endpoint takes one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: >-
              Something went wrong. Retrying is safe: send the same
              Idempotency-Key if the request had one.
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: cb_live_<48 hex> (production) or cb_test_<48 hex> (sandbox)
      description: >-
        Your API key, sent as a bearer token, with the scope `nft:orders`. A
        production key starts `cb_live_` and works only at
        https://catchbackcards.com; a sandbox key starts `cb_test_` and works
        only at https://sandbox.catchbackcards.com (production refuses one with
        `401 SANDBOX_KEY`). Keep it on your servers: never in a browser, app or
        wallet. Use a separate key per environment. A request from a country on
        our sanctions list gets a `403` with `Access denied`, whether or not it
        has a valid key. See [Authentication and
        keys](/partner-api/v2/authentication).

````

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