Ad
On Inserting Province/state On Orders Using Shopify API
I can't seem to insert the state name or code on API orders in Shopify.
When I use this to create an order using API.
"shipping_address" : {
"first_name" : "Ajo",
"last_name" : "Fod",
"address1" : "90 selwyn rd",
"address2" : "",
"city" : "Braintree ",
"province" : "Ma",
"zip" : "02184",
"country" : "Usa",
"province_code" : "MA"
},
I get this in the order dashboard on Shopify:
Why is the state code missing?
How do I get the state code back in there?
Ad
Answer
The countries and provinces are validated. Instead of Usa
try using US
or another ISO 3166-1 alpha-2 country code.
Ad
source: stackoverflow.com
Related Questions
- → Does anyone know how to solve IP canonicalization with shopify platform?
- → How can I add a featured image from a blog post to my homepage on shopify
- → Shopify - Get list of product from a specific collection
- → Shopify webhooks not wanted
- → Comparing two large files are taking over four hours
- → Need "add to cart" button price to update with correct amount depending on what checkbox is checked
- → How to append a variable inside another vaiable name in liquid html
- → GET /admin/webhooks.json returns an empty array
- → Javascript function not getting executed properly
- → How to give border to to current displaying border
- → Shopify background image
- → Dynamic Attribute Names in Shopify Cart
- → What after added shopify store into shipstation
Ad