Retrieve the shipping methods for a shipment.
Operation ID: getShippingMethodsForShipmentGets the applicable shipping methods for a certain shipment of a basket.
curl "https://{shortCode}.api.commercecloud.salesforce.com/checkout/shopper-baskets/v2/organizations/{organizationId}/baskets/{basketId}/shipments/{shipmentId}/shipping-methods?siteId=RefArch"
An identifier for the organization the request is being made by
f_ecom_zzxy_prd
The identifier of the shipment
me
The ID of the basket to be modified.
The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites
RefArch
A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter Accept-Language
following RFC 2616 & RFC 1766. This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
en-US
Success, the response body contains the applicable shipping methods for a certain shipment of the basket.
{
"applicableShippingMethods": [
{
"description": "Order received within 7-10 business days",
"id": "001",
"name": "Ground",
"price": 15.99
},
{
"description": "Order received in 2 business days",
"id": "002",
"name": "2-Day Express",
"price": 20.99
},
{
"description": "Order received the next business day",
"id": "003",
"name": "Overnight",
"price": 29.99
},
{
"description": "Store Pickup",
"id": "005",
"name": "Store Pickup",
"price": 0,
"c_storePickupEnabled": true
}
],
"defaultShippingMethodId": "001"
}
The applicable shipping method documents. It is read only.
[{
"id": "003"
}]
The default shipping method. It is read only.
me