Skip to main content
Back to changelog

Customer Address APIs now support countryCode

Starting with Customer Account API version 2026-10, customer address inputs and objects support countryCode. The existing territoryCode field is deprecated but remains fully supported, so current integrations continue working without interruption. Developers should migrate to countryCode when adopting API version 2026-10.

What changed

The CustomerAddressInput input object and CustomerAddress object now include countryCode.

Use countryCode when creating, updating, or reading a customer address. It uses the CountryCode enum and accepts ISO 3166-1 alpha-2 country codes such as US or CA.

The existing territoryCode field is marked as deprecated in API version 2026-10.


Note

territoryCode has not been removed. Existing queries and mutations that use it continue to work as before, including integrations using older API versions.


If both fields are supplied in an address input, countryCode takes precedence.

Who’s affected

This change affects apps using the Customer Account API to create, update, or read customer addresses.

Apps using API version 2026-10 or later can use countryCode and will see territoryCode marked as deprecated. Apps using API version 2026-07 or earlier are unchanged and can continue using territoryCode.

There is no immediate disruption for existing clients, and no removal version has been announced.

Why this matters

countryCode aligns customer addresses with the country-code terminology and strongly typed CountryCode enum used elsewhere in Shopify APIs. This provides clearer input requirements and avoids ambiguity between country and territory terminology.

What to do

When adopting Customer Account API version 2026-10:

  • Check customer address queries and mutations for uses of territoryCode.
  • Replace those uses with countryCode.
  • Supply ISO 3166-1 alpha-2 values, such as US, instead of alpha-3 or numeric values such as USA or 840.
  • Test customer address creation, updates, and reads against API version 2026-10.

No immediate change is required for apps that remain on an earlier API version. territoryCode continues to work in version 2026-10, but migrating prepares integrations for its possible removal in a future API version.

Related docs

Was this page helpful?