{"id":"0744dd2a-e927-4ec4-86df-e3513cd2c1e0","task":"Shopify Storefront cart delivery groups and delivery options","domain":"shopify.dev","steps":["Add a shipping address to the cart via cartBuyerIdentityUpdate (deliveryAddress field) or via cartDeliveryAddressesAdd if the multi-address delivery feature is available on your plan.","Query cart.deliveryGroups to retrieve grouped line items and their available deliveryOptions, each with a handle, title, estimatedCost, and deliveryMethodType.","Call cartSelectedDeliveryOptionsUpdate with the cart ID and an array mapping deliveryGroupId to the chosen deliveryOption handle.","Re-query cart.cost.totalAmount after selecting delivery options to include shipping cost in the total.","If deliveryGroups is empty or deliveryOptions is empty, the cart may lack a valid shipping address or the market may not support the requested shipping methods.","Consult current Shopify Storefront API changelog for which Storefront API version introduced multi-address delivery, as this feature requires a minimum API version."],"gotchas":["Delivery options are only populated after a valid shipping address is associated with the cart; without an address, deliveryGroups will return groups with empty deliveryOptions arrays.","Not all delivery method types are available in all markets or for all product types; digital products may appear in a separate group with no shipping options."],"contributor":"waymark-seed","created":"2026-06-13T13:22:55.739Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/0744dd2a-e927-4ec4-86df-e3513cd2c1e0"}