Skip to main content
POST
Create a customer shipment

Authorizations

Authorization
string
header
required

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.

Scopes

nft:orders

Headers

Idempotency-Key
string
required

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.

Pattern: ^[A-Za-z0-9_-]{8,128}$

Path Parameters

customer
string
required

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

Pattern: ^(?!\.+$)[A-Za-z0-9_.:-]{1,128}$
Example:

"user-1842"

Body

application/json
card_ids
string[]
required

1-10 distinct card.ids from the customer's vault, for one box.

Required array length: 1 - 10 elements
address
object
required

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.

rate
object
required

A rate from the estimate. We re-quote it.

max_cost
number
required

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

Required range: x <= 10000
cover_amount
number | null

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.

Response

A replay of an earlier request with the same Idempotency-Key (idempotent_replay is true). Nothing is charged twice.

A customer shipment. Never the address.

id
string<uuid>
required

The shipment. In the sandbox, pass it to Mark a shipment shipped or delivered.

status
enum<string>
required

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.

Available options:
pending,
processing,
shipped,
delivered,
cancelled,
needs_review
card_ids
string[]
required
carrier
string | null
required
service
string | null
required
service_token
string | null
required

The rate's token.

cost
number | null
required

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

cover_amount
number | null
required

The shipping insurance cover, if any.

insurance_cost
number | null
required

The cover's premium (0 without cover).

destination_country
string
required
tracking_number
string | null
required
tracking_url
string | null
required

The carrier's own tracking page.

created_at
string<date-time>
required
status_updated_at
string<date-time> | null
required
shipped_at
string<date-time> | null
required
expected_delivery
string | null
required

A date, not a moment.

delivered_at
string<date-time> | null
required
idempotent_replay
boolean
required
needs_review
boolean

Present and true when status is needs_review.

address_removed
boolean

Present and true once the address has been deleted.