Skip to main content
PATCH
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

id
string
required

Delivery method ID

Body

application/json
name
string
admin_name
string | null
code
string | null
delivery_profile_id
string

One of the marketplace's delivery profiles.

delivery_zone_id
string | null

Narrows where the method ships; null serves everywhere the profile reaches.

storefront_visible
boolean
tracking_url
string | null
estimated_transit_business_days_min
integer | null
estimated_transit_business_days_max
integer | null
calculator
object

How the method is priced: a type from /delivery_methods/calculators and its preferences, per that type's schema.

rules
object[]

Replaces the whole set: a rule dropped here is deleted, so re-send surviving rules with their id. An empty list clears every condition.

Response

200 - application/json

delivery method updated

id
string
required
name
string
required
code
string | null
required
estimated_transit_business_days_min
number | null
required
estimated_transit_business_days_max
number | null
required
digital
boolean
required
pickup
boolean
required
pickup_point
boolean
required
admin_name
string | null
required
storefront_visible
boolean
required
tracking_url
string | null
required
created_at
string
required
updated_at
string
required
rules
object[]
required
editable
boolean
required
delivery_profile_id
string | null
required
delivery_zone_id
string | null
required
calculator
object | null
required

How the delivery method prices a shipment