Shopify checkout ui extension unable to get zip code from useShippingAddress method

Topic summary

A developer encountered an issue where the useShippingAddress method in a Shopify checkout UI extension was returning undefined for most address fields, though country and city were accessible.

Key Details:

  • The extension was anchored to Checkout::ShippingMethods::RenderAfter
  • The app had level 2 access to protected customer data
  • The issue affected all checkouts, not just specific orders

Resolution:
The developer resolved the problem by creating a new app and extension from scratch, which eliminated the issue. No specific root cause was identified, but the fresh setup worked correctly.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

Hi,

I’m not able to get the shipping address from the useShippingAddress method. im able to get the country and city but all the other values of the object is undefined.

Thanks.

Hi Cyrilanthony7,

Just to confirm, the app in question does have level 2 access to protected customer data?

yes it has level 2 permissions and im able to read logged in customer’s details

Is this happening for all orders or one in particular?

it is anchored to

Checkout::ShippingMethods::RenderAfter. It is happening for all the checkouts.

Created a new app and extension and it solved the problem.

Great to hear this worked Cyrilanthony7!