Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Fetching carrier-calculated rates through @defer directive in Storefront GraphQL API

As of 2024-07, Cart#deliveryGroups supports a new withCarrierRates argument, used to indicate intent to fetch carrier-calculated rates. This capability requires mandatory use of @defer directive, which ensures that the cart response is not blocked on calculating rates.

Test out the carrier-calculated rates on the cart today by following our tutorial. We value your input, please share your feedback on Github.

Was this section helpful?