Address Information Not Syncing from Shopify to Unicommerce

anwesh
Shopify Partner
13 0 0

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.

 

Replies 16 (16)

Liam
Shopify Staff
2731 299 769

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

anwesh
Shopify Partner
13 0 0

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.

Liam
Shopify Staff
2731 299 769

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

anwesh
Shopify Partner
13 0 0

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.

Liam
Shopify Staff
2731 299 769

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

anwesh
Shopify Partner
13 0 0

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.

Liam
Shopify Staff
2731 299 769

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

anwesh
Shopify Partner
13 0 0

All 126 scopes are enabled

anwesh_0-1708698267440.png

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.

 

Liam
Shopify Staff
2731 299 769

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

anwesh
Shopify Partner
13 0 0

HI Liam

Are there any other scopes apart from these 126 ?
If so how can I get those access ?

anwesh
Shopify Partner
13 0 0

I am on the Basic shopify plan.
Is that causing an issue ?

Chand002
Visitor
2 0 0

Hi Anwesh 

did you get a resolution for this issue ? 

slumber
Visitor
1 0 0

Hi,

I am also facing same issue,  can anyone help, its really helpful.

DT123
Visitor
2 0 0

I'm facing the same issue. Does anyone know the solution to this??

 

DT123
Visitor
2 0 0

Hi Anvesh

 

I'm facing the exact same issue. Do you know the solution to this?

 

Pls help

 

Chand002
Visitor
2 0 0

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