Shipping Address

SkiOne
New Member
8 0 0

I am importing historical orders. For some reason that I cannot yet decern this payload does not add a shipping address to the order. Any help is greatly appreciated

{"processed_at":"2019-06-28T14:06:00+00:00","line_items":[{"variant_id":"32608528040033","Title":"Test Product","quantity":"1","price":"54.44"}],"note":"80000263855","email":"tryerson@icperfumes.com","send_receipt":false,"shipping_address":{"address1":"45 West 25th Street","address2":" ","city":"New York","province":"NY","country":"US","zip":"10010"}}

0 Likes
Greg_Kujawa
Shopify Partner
937 79 201

In addition to province and country, have you tried also adding province_code and country_code? I recall some finnickiness is terms defining addresses using a combination of those fields...

 

https://shopify.dev/docs/admin-api/rest/reference/orders/order#create-2020-07

 

0 Likes
SkiOne
New Member
8 0 0

Thank you for the response. Apparently you NEED to have first and last name. Wish that was better documented

0 Likes
Greg_Kujawa
Shopify Partner
937 79 201

Forgot to mention that as well...lol. Yes, the documentation doesn't specify which fields are required. When in doubt I populate any/all of them that I can. That way that particular gotcha doesn't bite...

0 Likes