> ## 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 model: ship 1-10 of a customer's vault cards in one box, with the postage on your statement.

Scope: `nft:orders` · Rate limit: 30 a minute, shared with [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md) and [Sell back a customer's card](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/sell-back-customer-card.md)

For [Non-crypto model](https://catchbackcards.mintlify.site/partner-api/v2/settlement.md) programs only; a Crypto Wallet program gets `400 NOT_PARTNER_SETTLED`.

Ships 1-10 of a customer's vault cards in one box at a rate from [Estimate a customer shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-customer-shipment.md). We re-quote the rate; the postage (and any cover's premium) goes on your statement, and nothing is paid or signed. 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](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/list-customer-shipments.md) or the [`nft_shipment.updated`](https://catchbackcards.mintlify.site/partner-api/v2/webhooks#events) webhook. Each key may create up to 50 shipments a UTC day.

> [!WARNING]
>
> Always send an `Idempotency-Key`, and reuse it when retrying. A retry with the same key never charges twice. See [Idempotency](https://catchbackcards.mintlify.site/partner-api/v2/idempotency.md).

**Idempotency-Key** `string` *required*

Your own shipment id: 8-128 characters of `A-Za-z0-9_-`. Keys are per program: one key is one shipment, whichever customer it names. The same key with a different request (another customer, `card_ids`, `address`, `rate`, `max_cost`, `cover_amount`) is `422`.

**customer** `string` *required*

Your own id for the customer.

**card\_ids** `string[]` *required*

1-10 distinct `card.id`s from the customer's vault, as for the estimate.

**address** `object` *required*

As for [Estimate a customer shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-customer-shipment.md).

**rate** `object` *required*

`{ "carrier": "...", "token": "..." }` from the estimate's `rates`.

**max\_cost** `number` *required*

The most the shipping may cost, in dollars: the estimate rate's `total` if you sent `cover_amount`, else its `amount`. If the re-quote is higher, nothing is created and you get `PRICE_CHANGED` with the current `amount`.

**cover\_amount** `number | null`

Shipping insurance cover in dollars, as for the estimate. The sandbox's one rate offers no cover, so leave it out there.

## Response

**201** (200 with `"idempotent_replay": true` on a replay, with the shipment as it stands now). The shipment is the whole body, not wrapped.

**id** `string`

The shipment. In the sandbox, pass it to [Simulate shipping](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/sandbox-ship.md).

**status** `string`

`processing` once created; then `shipped` and `delivered`. Also `pending` (being created), `cancelled` (by our team, rare; contact us) and `needs_review` (we couldn't confirm it; our team resolves it).

**card\_ids** `string[]`

**carrier** `string | null`

**service** `string | null`

**service\_token** `string | null`

The rate's `token`.

**cost** `number | null`

What went on your statement: the postage plus any cover premium.

**cover\_amount** `number | null`

**insurance\_cost** `number | null`

The cover's premium (0 without cover).

**destination\_country** `string`

**tracking\_number** `string | null`

Set once shipped.

**tracking\_url** `string | null`

The carrier's own tracking page.

**created\_at** `string`

**status\_updated\_at** `string | null`

**shipped\_at** `string | null`

**expected\_delivery** `string | null`

A `YYYY-MM-DD` date.

**delivered\_at** `string | null`

**needs\_review** `boolean`

Present and `true` when `status` is `needs_review`.

**address\_removed** `boolean`

Present and `true` once the address has been deleted.

**idempotent\_replay** `boolean`

Present and `true` on a replay.

We never return the delivery address.

## Errors

Nothing is created or charged on any refusal below, except `SHIPMENT_OUTCOME_UNKNOWN`.

| Status | Code | When |
| - | - | - |
| `400` | `BAD_IDEMPOTENCY_KEY` | `Idempotency-Key` missing or malformed |
| `400` | | Any `400` of [Estimate a customer shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-customer-shipment.md#errors) |
| `400` | `BAD_RATE` | `rate` isn't the `carrier` and `token` of a rate from the estimate |
| `400` | `BAD_MAX_COST` | `max_cost` is missing, not positive or over 10,000 |
| `402` | `CREDIT_LIMIT` | The postage would take what you owe past your credit limit; the body has `owed`, `credit_limit` and `shipment_total` |
| `403` | `CUSTOMER_BLOCKED` | This customer may not ship cards |
| `403` | `CUSTOMER_UNAVAILABLE` | This customer's account is unavailable |
| `404` | `CUSTOMER_NOT_FOUND` | No customer with that id has bought from your program |
| `409` | `CARDS_NOT_IN_VAULT` | Your program never pulled a card into this customer's vault (another customer's card, or a wrong id); `card_ids` lists them |
| `409` | `CARDS_NOT_SHIPPABLE` | A card your program pulled into this vault can't ship now (sold back, already shipping, listed or on hold; `cards` gives each `reason`), or left the vault while the shipment was being created |
| `409` | `RATE_UNAVAILABLE` | The carrier no longer offers that rate; estimate again |
| `409` | `COVER_UNAVAILABLE` | The chosen service has no cover option; choose another rate or leave `cover_amount` out |
| `409` | `PRICE_CHANGED` | The rate (with any cover) now costs more than `max_cost`; the body has the current `amount` and your `max_cost` (and, with cover, `shipping_cost` and `insurance_premium`) |
| `409` | `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 |
| `409` | `IDEMPOTENCY_RETRY` | An earlier attempt with this key just failed and charged nothing; retry with the same key |
| `422` | `IDEMPOTENCY_KEY_REUSED` | The key was already used in your program for a different shipment, including one for another customer |
| `429` | `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 |
| `500` | `SHIPMENT_OUTCOME_UNKNOWN` | We couldn't confirm whether it went through; it is with our team (`shipment_id`, `needs_review`). Retrying with the same key is safe and never charges twice; don't resend under a new key |
| `502` | | We couldn't confirm the carrier rate; retry |
| `503` | `SHIPMENT_NOT_CREATED` | It didn't go through, and its postage is being taken off your statement |
| `503` | | It didn't go through and nothing was charged, or a check couldn't run; retry with the same key |

```bash cURL theme={null}
curl -X POST https://sandbox.catchbackcards.com/api/partner/v2/customers/user-1842/shipments \
  -H "Authorization: Bearer $CATCHBACK_KEY" \
  -H "Idempotency-Key: acme-ship-1c9e04" \
  -H "Content-Type: application/json" \
  -d '{
    "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": 7.5
  }'
```

```json 201 theme={null}
{
  "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": 7.5,
  "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
}
```

```json 402 theme={null}
{ "error": "This shipment would take your statement past its credit limit.", "code": "CREDIT_LIMIT", "owed": 9995, "credit_limit": 10000, "shipment_total": 7.5 }
```


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