<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz" -->

---
title: Setting includeRestOfWorld to true returns an error in...
description: Starting with Shopify's GraphQL Admin API version 2027-01, setting the deprecated includeRestOfWorld field to true on discount country inputs returns a...
canonical: https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Setting includeRestOfWorld to true returns an error in API version 2027-01 | daily.dev
og:description: Starting with Shopify's GraphQL Admin API version 2027-01, setting the deprecated includeRestOfWorld field to true on discount country inputs returns a...
og:url: https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz
og:image: https://api.daily.dev/og/posts/lEOmwOIzZ.png
og:image:alt: Setting includeRestOfWorld to true returns an error in API version 2027-01
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting includeRestOfWorld to true returns an error in API version 2027-01

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 0 upvotes · 0 comments

## Summary

Starting with Shopify's GraphQL Admin API version 2027-01, setting the deprecated includeRestOfWorld field to true on discount country inputs returns a BAD_REQUEST error instead of applying. Apps must instead list every applicable country explicitly via the add field. Passing false or null is unaffected, and apps on 2026-10 or earlier keep existing behavior. This change is part of Shopify retiring the legacy Rest of World shipping-zone concept in favor of market-driven shipping with explicit country lists. Developers should search their discount create/update mutations, replace includeRestOfWorld usage with explicit country codes, and test against 2027-01 before upgrading.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01>

## Questions this post answers

### What happens if I set includeRestOfWorld to true in Shopify's Admin GraphQL API version 2027-01?

Setting includeRestOfWorld to true in API version 2027-01 or later returns a BAD_REQUEST error with the message 'includeRestOfWorld is no longer supported. Specify the applicable country codes explicitly.' Passing false retains existing behavior and null remains a no-op. Apps on version 2026-10 or earlier are unaffected while those versions remain supported.

_Teams tracking Shopify API breaking changes like this one can follow migration guidance on daily.dev._

### How do I migrate away from includeRestOfWorld in Shopify discount mutations?

Replace includeRestOfWorld with an explicit list of every applicable country code in the countries.add array. For example, instead of sending add: [CA, US] with includeRestOfWorld: true, send add: [CA, US, AU, BR, JP] listing all intended countries. This is required because Shopify is retiring the legacy Rest of World shipping-zone concept in favor of market-driven shipping with explicit country-based eligibility.

_Developers migrating Shopify discount logic can track similar API changes on daily.dev before they upgrade._

## Similar posts on daily.dev

- [\[DRAFT\] Markets APIs now support MarketRegionSubdivision](https://daily.dev/posts/draft-markets-apis-now-support-marketregionsubdivision-4mdvbga55) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Customer Address APIs now support countryCode](https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Managed mode for Shopify Tax](https://daily.dev/posts/managed-mode-for-shopify-tax-9rp0znpvp) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Carrier services will no longer be automatically added to the default shipping profile](https://daily.dev/posts/carrier-services-will-no-longer-be-automatically-added-to-the-default-shipping-profile-nivvi9cuq) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Discounts can now be included in Rollouts](https://daily.dev/posts/discounts-can-now-be-included-in-rollouts-8rnlwtr7w) · Shopify Developer changelog · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#ecommerce](https://daily.dev/tags/ecommerce), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Setting includeRestOfWorld to true returns an error in API version 2027-01","url":"https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz"},"datePublished":"2026-09-23T16:03:55.844Z","dateModified":"2026-10-29T02:14:11.635Z","description":"Starting with Shopify's GraphQL Admin API version 2027-01, setting the deprecated includeRestOfWorld field to true on discount country inputs returns a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,ecommerce,graphql,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Setting includeRestOfWorld to true returns an error in API version 2027-01"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz#faq","mainEntity":[{"@type":"Question","name":"What happens if I set includeRestOfWorld to true in Shopify's Admin GraphQL API version 2027-01?","acceptedAnswer":{"@type":"Answer","text":"Setting includeRestOfWorld to true in API version 2027-01 or later returns a BAD_REQUEST error with the message 'includeRestOfWorld is no longer supported. Specify the applicable country codes explicitly.' Passing false retains existing behavior and null remains a no-op. Apps on version 2026-10 or earlier are unaffected while those versions remain supported. Teams tracking Shopify API breaking changes like this one can follow migration guidance on daily.dev."}},{"@type":"Question","name":"How do I migrate away from includeRestOfWorld in Shopify discount mutations?","acceptedAnswer":{"@type":"Answer","text":"Replace includeRestOfWorld with an explicit list of every applicable country code in the countries.add array. For example, instead of sending add: [CA, US] with includeRestOfWorld: true, send add: [CA, US, AU, BR, JP] listing all intended countries. This is required because Shopify is retiring the legacy Rest of World shipping-zone concept in favor of market-driven shipping with explicit country-based eligibility. Developers migrating Shopify discount logic can track similar API changes on daily.dev before they upgrade."}}]}
```

