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

# Create a customer shipment

> **non-crypto programs only.** **Rate limit:** 30 a minute, shared with Create an order and Sell back a customer's card.

Ships 1-10 of a customer's vault cards in one box at a rate from Estimate a customer shipment. We re-quote the rate; the shipment's total (the postage, any cover's premium and the $5.99-per-card processing fee) goes on your statement, and nothing is paid or signed. Past your credit limit it is refused with `402 CREDIT_LIMIT`. A shipment that doesn't go through is taken off your statement.

The response is the shipment (`processing`), with its `id`. It then moves to `shipped` (with `carrier` and `tracking_number`) and `delivered`: follow it with List a customer's shipments or the `nft_shipment.updated` webhook. A replay with the same `Idempotency-Key` answers `200` with the shipment as it stands now and `idempotent_replay: true`, and never charges twice. Each key may create at most 50 shipments a UTC day. [Non-crypto model](/partner-api/v2/settlement).



## OpenAPI

````yaml /partner-api/v2/openapi.yaml post /api/partner/v2/customers/{customer}/shipments
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}/shipments:
    post:
      tags:
        - Customers
      summary: Create a customer shipment
      description: >-
        **non-crypto programs only.** **Rate limit:** 30 a minute, shared with
        Create an order and Sell back a customer's card.


        Ships 1-10 of a customer's vault cards in one box at a rate from
        Estimate a customer shipment. We re-quote the rate; the shipment's total
        (the postage, any cover's premium and the $5.99-per-card processing fee)
        goes on your statement, and nothing is paid or signed. Past your credit
        limit it is refused with `402 CREDIT_LIMIT`. A shipment that doesn't go
        through is taken off your statement.


        The response is the shipment (`processing`), with its `id`. It then
        moves to `shipped` (with `carrier` and `tracking_number`) and
        `delivered`: follow it with List a customer's shipments or the
        `nft_shipment.updated` webhook. A replay with the same `Idempotency-Key`
        answers `200` with the shipment as it stands now and `idempotent_replay:
        true`, and never charges twice. Each key may create at most 50 shipments
        a UTC day. [Non-crypto model](/partner-api/v2/settlement).
      operationId: createCustomerShipment
      parameters:
        - $ref: '#/components/parameters/Customer'
        - $ref: '#/components/parameters/CustomerShipmentIdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomerShipmentRequest'
            example:
              card_ids:
                - 838a5e7f-dc62-4618-ad4a-cf015de20536
              address:
                name: Alice Tester
                address1: 1 Market St
                city: San Francisco
                state: CA
                zip: '94105'
                country: US
                phone: '4155550100'
              rate:
                carrier: USPS
                token: r_9f3c
              max_cost: 13.49
      responses:
        '200':
          description: >-
            A replay of an earlier request with the same `Idempotency-Key`
            (`idempotent_replay` is true). Nothing is charged twice.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/CustomerShipment'
                  - type: object
                    required:
                      - idempotent_replay
                    properties:
                      idempotent_replay:
                        type: boolean
                        const: true
        '201':
          description: Created. The shipment's total is on your statement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerShipment'
              example:
                id: 80ba23e1-58ae-45d1-ba15-f88fdea1fb52
                status: processing
                card_ids:
                  - 838a5e7f-dc62-4618-ad4a-cf015de20536
                carrier: USPS
                service: Ground Advantage
                service_token: r_9f3c
                cost: 13.49
                cover_amount: null
                insurance_cost: 0
                destination_country: US
                tracking_number: null
                tracking_url: null
                created_at: '2026-11-24T18:20:02.114Z'
                status_updated_at: null
                shipped_at: null
                expected_delivery: null
                delivered_at: null
        '400':
          description: >-
            - `BAD_IDEMPOTENCY_KEY`: `Idempotency-Key` missing, or not 8-128
            characters of `A-Za-z0-9_-`.

            - Any of the refusals of Estimate a customer shipment's `400`.

            - `BAD_RATE`: `rate` isn't the `carrier` and `token` of a rate from
            the estimate.

            - `BAD_MAX_COST`: `max_cost` is missing, not positive or over
            10,000.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  max_cost (the most you will pay for this shipment, in dollars,
                  with any cover) is required
                code: BAD_MAX_COST
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            `CREDIT_LIMIT`: the shipment's total would take what you owe past
            your credit limit. The body has `owed`, `credit_limit` and
            `shipment_total`. Nothing is created or charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: This shipment would take your statement past its credit limit.
                code: CREDIT_LIMIT
                owed: 9995
                credit_limit: 10000
                shipment_total: 13.49
        '403':
          $ref: '#/components/responses/CustomerShipmentForbidden'
        '404':
          $ref: '#/components/responses/CustomerNotFound'
        '409':
          description: >-
            Nothing is created or charged.

            - `CARDS_NOT_IN_VAULT`, `CARDS_NOT_SHIPPABLE`: as on the estimate.
            `CARDS_NOT_SHIPPABLE` is also the answer when a card left the vault
            while the shipment was being created.

            - `RATE_UNAVAILABLE`: the carrier no longer offers that rate;
            estimate again.

            - `COVER_UNAVAILABLE`: the chosen service has no cover option;
            choose another rate or leave `cover_amount` out.

            - `PRICE_CHANGED`: the rate, any cover and the processing fee now
            cost more than `max_cost`. The body has the current `amount`, your
            `max_cost`, and its parts: `shipping_cost`, `processing_fee` and,
            with cover, `insurance_premium`.

            - `IDEMPOTENCY_IN_PROGRESS`: a shipment with this key is still being
            created (`shipment_id`, `started_at`; `needs_review` when it is with
            our team). Wait, then retry with the same key.

            - `IDEMPOTENCY_RETRY`: an earlier attempt with this key just failed
            and charged nothing. Retry with the same key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: The rate and the processing fee are now above your max_cost.
                code: PRICE_CHANGED
                amount: 13.49
                max_cost: 7.5
                shipping_cost: 7.5
                processing_fee: 5.99
        '422':
          description: >-
            `IDEMPOTENCY_KEY_REUSED`: the key was already used in your program
            for a different shipment, including one for another customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  This idempotency key was already used for a different
                  shipment.
                code: IDEMPOTENCY_KEY_REUSED
        '429':
          description: >-
            - `RATE_LIMITED`: too many requests from this key; wait
            `retry_after_seconds`.

            - `DAILY_SHIPMENT_LIMIT_REACHED`: this key has created 50 shipments
            this UTC day. The body has `limit`, `resets_at` and
            `retry_after_seconds`, and the response a `Retry-After` header.
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 'Daily shipment limit reached: 50 per key per UTC day.'
                code: DAILY_SHIPMENT_LIMIT_REACHED
                limit: 50
                resets_at: '2026-11-25T00:00:00.000Z'
                retry_after_seconds: 21600
        '500':
          description: >-
            - `SHIPMENT_OUTCOME_UNKNOWN`: we couldn't confirm whether the
            shipment went through; it is with our team (`shipment_id`,
            `needs_review`). Retrying with the same `Idempotency-Key` is safe
            and never charges twice. Don't resend under a new key.

            - No `code`: our fault; retry with the same `Idempotency-Key`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  We could not confirm whether this shipment went through. It is
                  with our team; retrying with the same Idempotency-Key is safe
                  and will not charge again.
                code: SHIPMENT_OUTCOME_UNKNOWN
                shipment_id: 80ba23e1-58ae-45d1-ba15-f88fdea1fb52
                needs_review: true
        '502':
          description: >-
            We couldn't confirm the carrier rate (no `code`). Nothing was
            charged; retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Could not confirm the carrier rate. Please try again.
        '503':
          description: >-
            - `SHIPMENT_NOT_CREATED`: the shipment didn't go through and its
            charge is being taken off your statement (`needs_review`).

            - No `code`: the shipment didn't go through and nothing was charged,
            or we couldn't run a check; retry with the same `Idempotency-Key`.
            Or `AUTH_UNAVAILABLE`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  The shipment did not go through and nothing was charged.
                  Please try again.
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
    CustomerShipmentIdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      description: >-
        Your own shipment id, 8-128 characters of `A-Za-z0-9_-`. Keys are per
        program, not per customer. Retry a timed-out or `5xx` call with the same
        key. The same key with a different request (another customer,
        `card_ids`, `address`, `rate`, `max_cost`, `cover_amount`) is `422`.
      schema:
        type: string
        pattern: ^[A-Za-z0-9_-]{8,128}$
      example: acme-ship-1c9e04
  schemas:
    CreateCustomerShipmentRequest:
      type: object
      required:
        - card_ids
        - address
        - rate
        - max_cost
      properties:
        card_ids:
          $ref: '#/components/schemas/CardIdList'
        address:
          $ref: '#/components/schemas/ShipmentAddress'
        rate:
          type: object
          required:
            - carrier
            - token
          description: A rate from the estimate. We re-quote it.
          properties:
            carrier:
              type: string
              maxLength: 100
            token:
              type: string
              maxLength: 100
        max_cost:
          type: number
          exclusiveMinimum: 0
          maximum: 10000
          description: >-
            The most the shipping may cost, in dollars: the estimate rate's
            `total` (the postage, any cover premium and the processing fee). If
            the re-quote is higher, nothing is created (`PRICE_CHANGED`).
        cover_amount:
          $ref: '#/components/schemas/CoverAmount'
    CustomerShipment:
      type: object
      description: A customer shipment. Never the address.
      required:
        - id
        - status
        - card_ids
        - carrier
        - service
        - service_token
        - cost
        - cover_amount
        - insurance_cost
        - destination_country
        - tracking_number
        - tracking_url
        - created_at
        - status_updated_at
        - shipped_at
        - expected_delivery
        - delivered_at
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The shipment. In the sandbox, pass it to Mark a shipment shipped or
            delivered.
        status:
          type: string
          enum:
            - pending
            - processing
            - shipped
            - delivered
            - cancelled
            - needs_review
          description: >-
            `pending`: being created. `processing`: created and being packed.
            `shipped`: on its way, with tracking. `delivered`. `cancelled`: by
            our team (rare); contact us. `needs_review`: we couldn't confirm it;
            our team resolves it.
        card_ids:
          type: array
          items:
            type: string
        carrier:
          type:
            - string
            - 'null'
        service:
          type:
            - string
            - 'null'
        service_token:
          type:
            - string
            - 'null'
          description: The rate's `token`.
        cost:
          type:
            - number
            - 'null'
          description: 'What went on your statement: the postage plus any cover premium.'
        cover_amount:
          type:
            - number
            - 'null'
          description: The shipping insurance cover, if any.
        insurance_cost:
          type:
            - number
            - 'null'
          description: The cover's premium (0 without cover).
        destination_country:
          type: string
        tracking_number:
          type:
            - string
            - 'null'
        tracking_url:
          type:
            - string
            - 'null'
          description: The carrier's own tracking page.
        created_at:
          type: string
          format: date-time
        status_updated_at:
          type:
            - string
            - 'null'
          format: date-time
        shipped_at:
          type:
            - string
            - 'null'
          format: date-time
        expected_delivery:
          type:
            - string
            - 'null'
          description: A date, not a moment.
        delivered_at:
          type:
            - string
            - 'null'
          format: date-time
        needs_review:
          type: boolean
          description: Present and true when `status` is `needs_review`.
        address_removed:
          type: boolean
          description: Present and true once the address has been deleted.
    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
    CardIdList:
      type: array
      minItems: 1
      maxItems: 10
      uniqueItems: true
      description: 1-10 distinct `card.id`s from the customer's vault, for one box.
      items:
        type: string
    ShipmentAddress:
      type: object
      description: >-
        No field may hold a control character or an invisible formatting
        character (zero-width, direction overrides). A US `state` must be a
        state or territory, as its code (`CA`) or name.
      required:
        - name
        - address1
        - city
        - country
      properties:
        name:
          type: string
          maxLength: 100
        address1:
          type: string
          maxLength: 100
        address2:
          type:
            - string
            - 'null'
          maxLength: 100
        city:
          type: string
          maxLength: 100
        state:
          type:
            - string
            - 'null'
          maxLength: 100
          description: Where the country uses it.
        zip:
          type:
            - string
            - 'null'
          maxLength: 20
          description: Where the country uses it.
        country:
          type: string
          minLength: 2
          maxLength: 2
          description: ISO 3166 alpha-2.
        phone:
          type:
            - string
            - 'null'
          maxLength: 20
          description: Required outside the US.
    CoverAmount:
      type:
        - number
        - 'null'
      exclusiveMinimum: 0
      description: >-
        Shipping insurance cover in dollars, with at most two decimals, within
        the range the items allow (a `400` `COVER_NOT_ALLOWED` gives the range).
        Leave it out or null for none.
    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.
  responses:
    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
    CustomerShipmentForbidden:
      description: >-
        - `CUSTOMER_BLOCKED`: this customer may not ship cards (`capability`
        says which block applies). Don't retry.

        - `CUSTOMER_UNAVAILABLE`: this customer's account is unavailable.

        - Any of the key and program refusals every endpoint can return.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: This customer cannot ship cards.
            code: CUSTOMER_BLOCKED
            capability: withdraw
    CustomerNotFound:
      description: >-
        `CUSTOMER_NOT_FOUND`: no customer with that id has bought from your
        program.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: No customer with that id has bought from this program.
            code: CUSTOMER_NOT_FOUND
  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.