Skip to main content
POST
Spree Seller SDK

Authorizations

Authorization
string
header
required

JWT token for an authenticated seller session (seller_api audience)

Headers

X-Spree-Seller-Id
string
required

Path Parameters

order_id
string
required

Prefixed order ID

Body

application/json
items
object[]
required
reason_id
string | null
stock_location_id
string | null

One of this seller's own stock locations, where the goods are restocked.

memo
string | null

Response

201 - application/json

exchange opened

id
string
required
number
string
required
status
required

The values listed are the built-in ones; extensions may add more.

Available options:
requested,
approved,
received,
fulfilled,
canceled
order_id
string | null
required
reason_id
string | null
required
price_difference
string
required
approved_at
string | null
required
received_at
string | null
required
fulfilled_at
string | null
required
canceled_at
string | null
required
memo
string | null
required
stock_location_id
string | null
required
reason
object
exchange_line_items
object[]