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

Body

application/json
email
string
Example:

"customer@example.com"

customer_id
string

Customer ID. Alias: user_id (legacy).

use_customer_default_address
boolean

When true with customer_id, copies the customer's saved billing/shipping addresses onto the order.

currency
string
Example:

"USD"

market_id
string

Market ID

channel_id
string

Channel ID. Defaults to the store primary channel when omitted.

preferred_stock_location_id
string

Stock Location ID to prefer for fulfillment. Order Routing's built-in PreferredLocation rule reads this and ranks the location first; routing falls back to the next rule when the preferred location can't cover the cart.

locale
string
Example:

"en-US"

customer_note
string

Public, customer-visible note

internal_note
string

Staff-only note

metadata
object

Arbitrary key/value metadata

shipping_address
object
shipping_address_id
string

Existing customer address ID

billing_address
object
billing_address_id
string

Existing customer address ID

items
object[]
coupon_code
string

Optional. Applied non-fatally; invalid codes do not block creation.

Response

201 - application/json

order created with preferred_stock_location_id