<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm" -->

---
title: Customer Address APIs now support countryCode | daily.dev
description: Starting with Customer Account API version 2026-10, Shopify's CustomerAddressInput and CustomerAddress objects gain a new countryCode field using the...
canonical: https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Customer Address APIs now support countryCode | daily.dev
og:description: Starting with Customer Account API version 2026-10, Shopify's CustomerAddressInput and CustomerAddress objects gain a new countryCode field using the...
og:url: https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm
og:image: https://api.daily.dev/og/posts/Py9duoxjm.png
og:image:alt: Customer Address APIs now support countryCode
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.

# Customer Address APIs now support countryCode

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

## Summary

Starting with Customer Account API version 2026-10, Shopify's CustomerAddressInput and CustomerAddress objects gain a new countryCode field using the CountryCode enum with ISO 3166-1 alpha-2 values. The existing territoryCode field is now deprecated but still fully functional, with countryCode taking precedence if both are supplied. No removal version has been announced, so apps on version 2026-07 or earlier are unaffected, but developers adopting 2026-10 should migrate their queries and mutations to use countryCode.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/customer-address-apis-now-support-countrycode>

## Questions this post answers

### What changed in Shopify Customer Account API version 2026-10 for customer addresses?

CustomerAddressInput and CustomerAddress objects now include a countryCode field that uses the CountryCode enum and accepts ISO 3166-1 alpha-2 codes like US or CA. The existing territoryCode field is deprecated in this version but not removed, so existing integrations keep working; if both fields are supplied, countryCode takes precedence.

_Track Shopify API changes like this one on daily.dev before they affect a live integration._

### Do I need to update my Shopify app if it uses territoryCode on an older API version?

No, apps using Customer Account API version 2026-07 or earlier are unaffected and can keep using territoryCode without changes. Only apps adopting version 2026-10 or later see territoryCode marked as deprecated, and no removal version has been announced yet, so there is no immediate disruption.

_daily.dev helps developers stay ahead of API deprecations before they become breaking changes._

### What format should country codes be in for the new Shopify countryCode field?

ISO 3166-1 alpha-2 values are required, such as US or CA, rather than alpha-3 codes like USA or numeric codes like 840. This applies when creating, updating, or reading a customer address using the countryCode field introduced in Customer Account API version 2026-10.

_Developers migrating API integrations use daily.dev to catch details like required country code formats._

## Similar posts on daily.dev

- [SMS marketing consent now available on the CustomerPhoneNumber object](https://daily.dev/posts/sms-marketing-consent-now-available-on-the-customerphonenumber-object-apize73oi) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Cart and checkout validation adds billing address and PO number error targets](https://daily.dev/posts/cart-and-checkout-validation-adds-billing-address-and-po-number-error-targets-eud0suovq) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Setting includeRestOfWorld to true returns an error in API version 2027-01](https://daily.dev/posts/setting-includerestofworld-to-true-returns-an-error-in-api-version-2027-01-leomwoizz) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Geocoding with Cloudflare](https://daily.dev/posts/geocoding-with-cloudflare-2tzjuiam5) · Laravel News · 0 upvotes · 0 comments
- [Chris’ Corner: ZIP first?](https://daily.dev/posts/chris-corner-zip-first--hyrhsutbi) · CodePen · 4 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm)

```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":"Customer Address APIs now support countryCode","url":"https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm"},"datePublished":"2026-09-08T16:02:17.975Z","dateModified":"2026-10-29T02:14:02.458Z","description":"Starting with Customer Account API version 2026-10, Shopify's CustomerAddressInput and CustomerAddress objects gain a new countryCode field using the...","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/customer-address-apis-now-support-countrycode-py9duoxjm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,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":"Customer Address APIs now support countryCode"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm#faq","mainEntity":[{"@type":"Question","name":"What changed in Shopify Customer Account API version 2026-10 for customer addresses?","acceptedAnswer":{"@type":"Answer","text":"CustomerAddressInput and CustomerAddress objects now include a countryCode field that uses the CountryCode enum and accepts ISO 3166-1 alpha-2 codes like US or CA. The existing territoryCode field is deprecated in this version but not removed, so existing integrations keep working; if both fields are supplied, countryCode takes precedence. Track Shopify API changes like this one on daily.dev before they affect a live integration."}},{"@type":"Question","name":"Do I need to update my Shopify app if it uses territoryCode on an older API version?","acceptedAnswer":{"@type":"Answer","text":"No, apps using Customer Account API version 2026-07 or earlier are unaffected and can keep using territoryCode without changes. Only apps adopting version 2026-10 or later see territoryCode marked as deprecated, and no removal version has been announced yet, so there is no immediate disruption. daily.dev helps developers stay ahead of API deprecations before they become breaking changes."}},{"@type":"Question","name":"What format should country codes be in for the new Shopify countryCode field?","acceptedAnswer":{"@type":"Answer","text":"ISO 3166-1 alpha-2 values are required, such as US or CA, rather than alpha-3 codes like USA or numeric codes like 840. This applies when creating, updating, or reading a customer address using the countryCode field introduced in Customer Account API version 2026-10. Developers migrating API integrations use daily.dev to catch details like required country code formats."}}]}
```

