Skip to main content
POST
Spree Admin SDK

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Bearer token for admin authentication

Path Parameters

order_id
string
required

Order ID

Body

application/json
stock_location_id
string
required

Stock location the fulfillment ships from

tracking
string

Carrier tracking number, or a full https:// tracking link — a full URL is served back as tracking_url unchanged instead of being templated into the delivery method tracking URL

Example:

"INPOST-12345"

delivery_method_id
string

Delivery method (carrier) to attach as the selected rate. Defaults to the delivery method of the fully drained source fulfillment(s)

cost
string

Explicit shipping cost. Defaults to the summed cost of the fully drained source fulfillment(s), which keeps the order total unchanged; an explicit cost changes the order total and payment state. Guaranteed to persist only with status: 'shipped' — pending fulfillments are re-priced by the rate engine

Example:

"7.42"

status
enum<string>

Pass 'shipped' to register the fulfillment as already shipped

Available options:
shipped
items
object[]

Line item quantities to fulfill. Omit to fulfill every not-yet-shipped unit.

metadata
object

Response

fulfillment created