Checkout / Shipments
Selects shipping method for shipment(s)
Selects shipping method for Shipment(s).
To generate shipments you first need to fetch shipping rates via
Get Shipping Rates endpoint
PATCH
/
api
/
v2
/
storefront
/
checkout
/
select_shipping_method
Authorizations
X-Spree-Order-Token
string
headerrequiredOrder token to authorize Cart and Checkout requests.
Query Parameters
include
string
Specify the related resources you would like to receive in the response body. More Information.
fields[cart]
string
Specify the fields you would like returned in the response body. More information.
Body
application/vnd.api+json
shipping_method_id
string
requiredID of the selected Shipping Method
shipment_id
string
ID of the selected Shipment. If not supplied it will try to set selected shipping method for all shipments
Response
200 - application/vnd.api+json
data
object
requiredThe Cart provides a central place to collect information about an order, including line items, adjustments, payments, addresses, and shipments. Read more in Spree docs
included
object[]
Was this page helpful?