Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Country removed from shipping address in created order

Country removed from shipping address in created order

OscarGearedApp
Shopify Partner
2 0 0

Hello,

We are using the shopify node api to create orders. Orders are created fine, however a number of countries within the shipping address object pull through to the shopify orders as "unrecognised". So if we navigate to the dashboard they show as unrecognised, even though a valid country was input. 

 

Additionally, if we were to input the country as a nation of the UK for instance, it would be removed and no country would show. So inputting Scotland, would mean the order had no country. We would have to explicitly put United Kingdom in order for it to feed through correctly to shopify

 

Is there any way to stop the country been removed? Should we be populating our country app field from a predefined list of countries shopify supports? As far as I can see in the API docs, it just says country can be a string. 

Thanks,

Oscar

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 522

Hey @OscarGearedApp, that behaviour doesn't seem expected - can you confirm if this is happening only when you're using the Node library or does it happen when you try to replicate the call using an API client like Postman? Could you also share an example X-Request-ID from a Shopify response header for one of the API calls that results in a country coming back as "unrecognised"? Happy to dig into this on my end - hope to hear from you soon!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

OscarGearedApp
Shopify Partner
2 0 0

Hello,

I just created an order through the node sdk, the number is 1156 and the ID is 5113259196661, and the app id is 609288193. I put the country within the shipping address as uk. On the shopify dashboard, no country has pulled through. The "unrecognised" I was speaking about, actually is what shows on a system we have linked to shopify to print postage labels on order fulfilment - but I assume this is as the country thats set here isnt feeding through? As when the country does show in the dashboard, it feeds through to the system fine.

I cannot attest as to if this is happening only on the node sdk, currently I dont have time to try to call the API directly. 


Thanks,

Oscar