Checkout Extension Unable to Access Shipping Address via useApi() Hook

Hey,

We’re encountering an issue with a checkout extension in our dev app where the useApi() hook is not returning the shipping address (it’s undefined). This issue persists even after completing Step 1 of the Protected Customer Data access request in the Shopify Partner Dashboard.

Interestingly, we can successfully access customer data, including the shipping address, using the GraphQL API, so the problem seems specific to the useApi() hook in the checkout extension. We suspect this may be related to the app’s API access configuration for protected customer data.

Has anyone else faced this issue, or can you suggest potential solutions or additional configuration steps we might be missing? Any insights would be greatly appreciated!

Thanks

@Liam-Shopify Could you please investigate this?

We tried creating new apps for this and the issue persists. We tried setting the app as custom and also setting another app as public distribution.

Hi @Adam_Charvat

I’ve also been having trouble, please see my post from last week: useShippingAddress API permissions issue only in `shopify app dev` mode

Do you see the same error message in your browser console logs? Is it only affecting your app in development or production too?

Thanks, nice to see we’re not the only ones. We do not see this affecting production.