curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/cart/estimate_shipping_rates \
--header 'X-Spree-Order-Token: <api-key>'{
"data": [
{
"id": "1",
"type": "shipping_rate",
"attributes": {
"name": "USPS Ground",
"selected": true,
"cost": "10.0",
"tax_amount": "0.0",
"shipping_method_id": 1,
"final_price": "10.0",
"display_cost": "$10.00",
"display_final_price": "$10.00",
"display_tax_amount": "$0.00",
"free": true
},
"relationships": {
"shipping_method": {
"data": {
"id": "<string>",
"type": "<string>"
}
}
}
}
]
}Returns a list of shipping rates for the current cart. The rates given are only estimates and can vary from the final shipping rates.
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/cart/estimate_shipping_rates \
--header 'X-Spree-Order-Token: <api-key>'{
"data": [
{
"id": "1",
"type": "shipping_rate",
"attributes": {
"name": "USPS Ground",
"selected": true,
"cost": "10.0",
"tax_amount": "0.0",
"shipping_method_id": 1,
"final_price": "10.0",
"display_cost": "$10.00",
"display_final_price": "$10.00",
"display_tax_amount": "$0.00",
"free": true
},
"relationships": {
"shipping_method": {
"data": {
"id": "<string>",
"type": "<string>"
}
}
}
}
]
}Order token to authorize Cart and Checkout requests.
Pass country ISO or ISO3 symbol to get estimations for this destination. If no code is passed we'll try to use Cart shipping address country or the default Country for the current Store.
"USA"
Specify the fields you would like returned in the response body. More information.
200 Success - Returns an array of shipping_rate objects.
Show child attributes
"1"
Show child attributes
"USPS Ground"
true
Price of the service without discounts applied
"10.0"
Eligible tax for service (if any)
"0.0"
ID of a Shipping Method. You will need this for the Checkout Update action
1
Price to be presented for the Customer
"10.0"
"$10.00"
"$10.00"
"$0.00"
Indicates if the Shipping Rate is free, eg. when Free shipping promo applied to Cart
true
Show child attributes
Was this page helpful?