Discussing APIs and development related to customers, discounts, and order management.
I recently integrated Unicommerce with my Shopify store for order management purposes. However, I'm encountering an issue where the address information from Shopify orders is not syncing properly with Unicommerce.
It is not fetching the complete address it is fetching only State Country and Phone.
"additionalInfo" : "{\"checkoutId\":\"999999999\"}", "addresses" : [ { "id" : "1", "state" : "Karnataka", "co untry" : "India", "phone" : "9999999999" }, { "id" : "2", "state" : "Karnataka", "country" : "India", "phone" : "99999 99999" } ], "billingAddress" : { "referenceId" : "1" }, "shippingAddress" : { "referenceId" : "2" },
And on unicommerce it is getting failed with error :-
saleOrder.addresses[1].city can not be empty
saleOrder.addresses[0].addressLine1 can not be empty
saleOrder.addresses[0].name can not be empty
Has anyone else experienced a similar problem, and if so, how did you resolve it? I'd greatly appreciate any guidance or suggestions you can offer to troubleshoot and fix this issue.
Hi Anwesh,
It sounds like there is some formatting issues when data is being transferred from Shopify to Unicommerce - how are you currently sending the info from Shopify to Unicommerce?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam
Thanks for quick response.
I am not sending the data from Shopify. I integrated unicommerce under develop apps using the "Admin API Integration".
And gave all the 126 permission.
On unicommerce side they are fetching the data by calling their API "https://shopifyproxy.un
icommerce.com/shopify/orders/fetch".
All the data are fetched properly like Product amount etc. just address is not getting fetched fully.
It sounds like when Unicommerce is fetching order information, they may need to adjust/transform the data that's received so that it's read and stored correctly by their system. Have you reached out to Unicommerce yet about this issue?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam
I connected with them.
They are syncing the full order and they told they are not receiveing the complete address in the Orders.
Can you tell me how can we check what data are we sending in orders.
Do you know if they are using the GraphQL or REST API to fetch order info? You could test yourself by making a request to your store's orders and seeing what data is being returned:
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey Liam,
I myself tried using the REST API and fetched orders using this api
https://102**********:shp****************@4*******.myshopify.com/admin/api/2021-10/orders.json?
(Masked for security reasons)
And I found out that
"shipping_address": {
"province": "Karnataka",
"country": "India",
"company": null,
"country_code": "IN",
"province_code": "KA"
billing_address": {
"province": "Karnataka",
"country": "India",
"latitude": 13.073524,
"longitude": 77.74467159999999,
"country_code": "IN",
"province_code": "KA"
"default_address": {
"id": 8773901779198,
"customer_id": 7274743562494,
"company": null,
"province": "Karnataka",
"country": "India",
"province_code": "KA",
"country_code": "IN",
"country_name": "India",
"default": true
You can see the name addressline1 and city those details are not coming in.
What can be the issue ?
Is there any new policy which restricts from fetching these details ?
Please advise I have been trying to figure this out since last week but still struggling.
Which scopes do you have enabled - it could be related to not having the correct scope to successfully request this data.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
All 126 scopes are enabled
Is this issue because of some new shopify policy ?
https://shopify.dev/docs/apps/store/data-protection/protected-customer-data#request-access-to-protec...
The above link shows some of the policy that customer private data will not be visible.
Can you please advise.
Hi Anwesh,
It's possible the app that is making fetch calls to the Orders endpoint will also need the protected customer data scope that is requested via the partner dashboard, as described in our dev docs - but I'm connecting with the team that owns this to confirm.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
HI Liam
Are there any other scopes apart from these 126 ?
If so how can I get those access ?
I am on the Basic shopify plan.
Is that causing an issue ?
Hi Anwesh
did you get a resolution for this issue ?
Hi,
I am also facing same issue, can anyone help, its really helpful.
I'm facing the same issue. Does anyone know the solution to this??
Facing the same issue for one of my client's store with the uniware custom app. Anybody found a solution yet. Is this because my store is on a basic plan?
You have to upgrade the Shopify Plan , in basic plan the API's dont share data
Hi Anvesh
I'm facing the exact same issue. Do you know the solution to this?
Pls help
Hi , i recently faced this issue, it got resolved after I upgraded the Shopify plan. It seems in Basic plan the customer and address details are not available via API.
Unicommerce should launch an Shopify app to resolve this. right now you have to use the next level plan on Shopify