Shopify returns country code in field country, if the draft order was updated on UI

New Member
2 0 0
Steps to reproduce:
1. Via api create draft order with e.g. following address model
{
"email":"mail@mail.com",
"address1":"Voluptates nostrum i",
"address2":"Qui quos ut non quis",
"phone":"Nisi laudantium eum",
"city":"Non iusto ullam est",
"country":"Afghanistan",
"countryCode":"AF",
"firstName":"Magna aut beatae lau",
"lastName":"Id quis voluptas per",
"province":"Badakhshān",
"provinceCode":"01",
"zip":"Animi facere volupt"
}
2. Open draft order page in Shopify and edit the address field
3. Get darft order via API and receive following
{
"address1":"ssss",
"address2":"Qui quos ut non quis",
"phone":"Nisi laudantium eum",
"city":"Non iusto ullam est",
"country":"AF", // countryCode
"email":"mail@mail.com",
"firstName":"Magna aut beatae lau",
"lastName":"Id quis voluptas per",
"province":"Badakhsh\u0101n",
"zip":"Animi facere volupt",
"countryCode":"AF"
}
but should be
"country":"Afghanistan",
"countryCode":"AF"
0 Likes