App reviews, troubleshooting, and recommendations
Hello,
I have created an admin API, just as I have done before with other Shopify stores, to retrieve orders. In all other stores, I receive a response from the API with the complete address, but in this store, it does not return the full information. I am attaching an example:
Incorrect:
shipping_address: {
province: 'Barcelona',
country: 'Spain',
country_code: 'ES',
province_code: 'B'
}
Correct:
shipping_address: {
first_name: '',
address1: '',
phone: '',
city: 'Patterson',
zip: '95363',
province: 'California',
country: 'United States',
last_name: 'test',
address2: null,
company: null,
latitude: ,
longitude: ,
name: 'test',
country_code: 'US',
province_code: 'CA'
}
The scopes are the same in all my stores, and the version is also the same: 2024-07.
Thanks in advance.
Hi @raulvaquerizo,
It seems like the issue might be specific to the way this particular store is storing or returning shipping address data. Here are a few steps to help resolve it:
Make sure the shipping information is correctly filled out in the Shopify Admin. Sometimes, missing or incomplete address data on an order (e.g., no first name, last name, address1, etc.) might cause incomplete data to be returned via the API.
When you make the API request to retrieve orders, try to explicitly specify the fields you want to retrieve to ensure that all address details are included:
If the shipping address is partially returned, it's possible that the specific fields you're expecting aren't being included in the API response for some reason. This could also depend on the order status or other factors within the store.
Review the response headers to see if any errors or limitations are being applied. You might be hitting a rate limit or encountering some other backend issue that is preventing the full address data from being returned.
Double-check that the API app you're using has the correct permissions to access the full address information. Even though you mentioned the scopes are the same, it's still worth confirming that read_shipping_addresses is explicitly enabled.
It’s possible the issue arises from the way the API is set up in this store. Try the following to fetch shipping data:
This ensures that you are retrieving orders regardless of their status and including full shipping data.
If the store has custom scripts or apps, they might be modifying the data. Verify if there’s any custom configuration or app in the store that could be altering the shipping address data. Sometimes custom apps can suppress certain fields from the API response.
If possible, compare the data from another store where the shipping address is returned correctly. Check for any differences in how the orders or shipping addresses are being handled or stored.
Hi @CodingFifty ,
I’ve tested and checked what you mentioned, and it’s still returning the same fields, and everything is correct in the configuration.
I’ve read on other sites that it could be caused by the chosen plan. The store where this is happening has the Basic plan.
Do you know if it could be because of that?
Thank you.
Hello,
I haven’t been able to resolve the error because it’s caused by the Shopify plan, and to access that data, I would need to upgrade to a better plan.
As an alternative, if you only need that data once, it can be managed through webhooks. For example, what I do is create a webhook where I receive the complete order data and process it in my system.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025