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

# Estimate a customer shipment

> Non-crypto model: live carrier rates to ship 1-10 of a customer's vault cards in one box. Charges nothing and stores nothing.

Scope: `nft:orders` · Rate limit: 30 a minute, shared with [Estimate a shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-shipment.md) and [Estimate a one-token shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-token-shipment.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`.

Live carrier rates to ship 1-10 of a customer's vault cards to an address in one box. Charges nothing and stores nothing: the address only goes to the carrier for the quote. Pass a rate's `carrier` and `token` to [Create a customer shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-customer-shipment.md), with `max_cost` set to that rate's `total` if you sent `cover_amount`, else its `amount`.

**customer** `string` *required*

Your own id for the customer.

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

1-10 distinct `card.id`s from the customer's [vault](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/get-customer-vault.md), for one box.

**address** `object` *required*

`name`, `address1`, `city` and `country` (ISO 3166 alpha-2) are required; `address2` is optional; `state` and `zip` where the country uses them; `phone` is required outside the US. `name`, `address1`, `address2`, `city` and `state` take up to 100 characters, `zip` and `phone` up to 20. Control and invisible formatting characters are refused, and a US `state` must be a real state or territory (`CA`, or its name).

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

Shipping insurance cover in dollars, with at most two decimals, within the range the cards allow (the response's `max_cover`; a `400 COVER_NOT_ALLOWED` gives the range). The sandbox's one rate offers no cover.

## Response

**destination\_country** `string`

**package\_type** `string`

**order\_value** `number`

What the cards are worth for cover, in dollars.

**max\_cover** `number | null`

The most they can be covered for; null when they can't be insured.

**cover\_amount** `number`

The `cover_amount` you sent, when you sent one.

**rates** `object[]`

**rate**

**carrier** `string`

**service** `string`

**token** `string`

Pass `carrier` and `token` as `rate` to Create a customer shipment.

**amount** `number`

The postage. Pass it as `max_cost` when you sent no `cover_amount`.

**estimated\_days** `integer | null`

**cover\_available** `boolean`

Only with `cover_amount`: whether this service offers the cover.

**insurance\_premium** `number | null`

Only with `cover_amount`: the cover's premium on this rate.

**total** `number | null`

Only with `cover_amount`: the postage plus the premium (null when the cover isn't available). Pass it as `max_cost`.

## Errors

| Status | Code | When |
| - | - | - |
| `400` | `NOT_PARTNER_SETTLED` | Your program pays through customer wallets; use [Estimate a shipment](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/estimate-shipment.md) |
| `400` | `BAD_JSON` | The body isn't JSON |
| `400` | `WALLET_FIELDS_NOT_ACCEPTED` | A Crypto Wallet field (`recipient`, `refund_address`, `partner_user_ref`, `holder`, `payout_chain` or `payout_address`) was sent; `fields` lists them |
| `400` | `BAD_CUSTOMER` | `customer` isn't 1-128 characters of `A-Z a-z 0-9 _ . : -`, or is only dots |
| `400` | `BAD_CARD_IDS` | `card_ids` isn't a list of 1-10 distinct card ids from the vault |
| `400` | `BAD_ADDRESS` | The address is invalid; `fields` maps each bad field to a message |
| `400` | `BAD_COVER` | `cover_amount` isn't a positive dollar amount with at most two decimals |
| `400` | `COVER_NOT_ALLOWED` | `cover_amount` is outside what the cards can be insured for; the body has `order_value`, `min_cover` and `max_cover` |
| `400` | `PARTNER_GOODS` | An item is held by its brand partner and can't ship through CatchBack; it can still be sold back |
| `400` | `COUNTRY_NOT_SUPPORTED` | We don't ship to that country |
| `400` | `OVER_CUSTOMS_CAP` | The cards are worth more than we can ship internationally |
| `403` | `CUSTOMER_BLOCKED` | This customer may not ship cards (`capability` says which block applies) |
| `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 right now (for example it was sold back: `not_in_vault`); `cards` lists each with its `reason` (`not_in_vault`, `listed`, `shipping`, `on_hold` or `not_a_card`) |
| `429` | `RATE_LIMITED` | Too many estimates from this key; wait `retry_after_seconds` |
| `502` | | The carrier didn't answer; retry |
| `503` | | We couldn't check the customer or the cards just now; retry |

```bash cURL theme={null}
curl -X POST https://sandbox.catchbackcards.com/api/partner/v2/customers/user-1842/shipments/estimate \
  -H "Authorization: Bearer $CATCHBACK_KEY" \
  -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" }
  }'
```

```json 200 theme={null}
{
  "destination_country": "US",
  "package_type": "mailer",
  "order_value": 31,
  "max_cover": null,
  "rates": [
    { "carrier": "USPS", "service": "Ground Advantage", "token": "r_9f3c", "amount": 7.5, "estimated_days": 3 }
  ]
}
```

```json 200 with cover_amount theme={null}
{
  "destination_country": "US",
  "package_type": "mailer",
  "order_value": 420,
  "max_cover": 420,
  "cover_amount": 400,
  "rates": [
    { "carrier": "USPS", "service": "Priority Mail", "token": "r_1a7d", "amount": 9.85, "estimated_days": 2, "cover_available": true, "insurance_premium": 4.2, "total": 14.05 }
  ]
}
```


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