POST
Update a Shipment

Authorizations

Authorization
string
header
required

sk_test_ / sk_live_ / rk_test_ / rk_live_ keys

Headers

Shipping-Version
string
Shipping-Account
string

Act on behalf of a connected account (acct_...)

Path Parameters

id
string
required

Body

application/json
ship_from
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

ship_to
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

return_to
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

bill_to
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

billing
object

Which carrier account pays transportation charges. The party is bill_to. Country and postal code for validation come from bill_to.address.

handling_units
object[]
Required array length: 1 - 99 elements
order
object
customs_declaration
object
carrier_configs
object

Product and feature configuration. '*' applies standardized features to every rated carrier; each other key selects a carrier.

Example:
ship_date
string<date>
reference
string
handover
object
returns
object
user_metadata
object

Client-writable. Up to 50 string key/value pairs. Never sent to carriers.

redact
boolean

Response

OK

id
string
required

Prefixed shp_

Example:

"shp_1Q2w3E4r"

object
enum<string>
required
Available options:
shipment
livemode
boolean
required
created
integer<unix-time>
required

Unix timestamp (seconds)

status
enum<string>
required
Available options:
draft,
purchasing,
purchase_failed,
purchased,
manifested,
void_pending,
voided,
void_failed
updated
integer<unix-time>

Unix timestamp (seconds)

reference
string | null
ship_date
string<date>
ship_from
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

ship_to
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

return_to
object

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

bill_to
object | null

A party to a shipment. Either name or company is required. address is required on ship_from, ship_to, return_to, bill_to.

billing
object

Which carrier account pays transportation charges. The party is bill_to. Country and postal code for validation come from bill_to.address.

handling_units
object[]
order
object | null
customs_declaration
object | null
carrier_configs
object

Product and feature configuration. '*' applies standardized features to every rated carrier; each other key selects a carrier.

Example:
purchase
object | null

What was bought and its commercial outcome. Null until the first purchase attempt.

tracking
object
read-only
handover
object
injection
object | null
returns
object
documents
object[]
messages
object[]
user_metadata
object

Client-writable. Up to 50 string key/value pairs. Never sent to carriers.

carrier_metadata
object
read-only

Read-only. Carrier-returned data not modelled by the spec (routing codes, internal IDs). Untrusted and unversioned; keys may change with the carrier's API.

system_metadata
object
read-only

Read-only. Implementer provenance. Implementer-specific keys are prefixed x_.