--- title: >- Fetching carrier-calculated rates through @defer directive in Storefront GraphQL API - Shopify developer changelog description: >- Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: >- https://shopify.dev/changelog/fetching-carrier-calculated-rates-through-defer-directive-in-storefront-graphql-api md: >- https://shopify.dev/changelog/fetching-carrier-calculated-rates-through-defer-directive-in-storefront-graphql-api.md metadata: effectiveApiVersion: 2024-07 affectedApi: - displayName: Storefront GraphQL API handle: storefront-graphql primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2024-06-06T13:24:12-04:00' postedAt: '2024-07-01T09:00:00-04:00' updatedAt: '2024-06-06T13:25:51-04:00' effectiveAt: '2024-07-01T09:00:00-04:00' --- July 1, 2024 Tags: * Storefront GraphQL API * 2024-07 # 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](https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/defer#fetching-carrier-calculated-rates-for-the-cart-using-defer). We value your input, please share your [feedback on Github.](https://github.com/Shopify/storefront-api-feedback/discussions/234)