POST
Create a fulfillment order

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

Idempotency-Key
string
required
Maximum string length: 255

Body

application/json
ship_to
object
required

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

lines
object[]
required
channel
object
order
object
facility
string
allocation
object
shipping
object
packing
object
cancel_unfulfillable
boolean
user_metadata
object

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

Response

OK

id
string
required

Prefixed fo_

Example:

"fo_1Q2w3E4r"

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

Unix timestamp (seconds)

owner
string
required
status
enum<string>
required
Available options:
received,
allocated,
backordered,
picking,
packed,
shipped,
partially_shipped,
cancelled
ship_to
object
required

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

lines
object[]
required
updated
integer<unix-time>

Unix timestamp (seconds)

channel
object
order
object | null
facility
string | null
allocation
object
shipping
object
packing
object
tasks
object[]
shipments
string[]
documents
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_.