Seller Central
Seller Forums

Amazon Seller Forums » Amazon Marketplace Web Service (MWS) » Marketplace Web Service (Amazon MWS) Questions

Thread: Is there anyway to get back a province code from an order?
This question is answered.


Permlink Replies: 1 - Pages: 1 - Last Post: 10 Jan, 2018 1:42 PM by: Boardgames4Us Threads: [ Previous | Next ]
Otreva MWS Test

Posts: 1
Registered: 26 Aug, 13 1:54 PM
Posted on: 10 Jan, 2018 1:00 PM  
Click to report abuse...   Click to reply to this thread Reply
When I call ListOrders Version 2013-09-01, sometimes I receive back an abbreviation which seems to be a ISO_3166-2 two character subdivision code (i.e. NY). Some other orders come back though as the full province name (i.e. NEW YORK). Any idea what restrictions or standards are in place for this field? Is there another field I should be looking at to get back proper province codes?

http://docs.developer.amazonservices.com/en_US/orders-2013-09-01/Orders_Datatypes.html#Address

https://en.wikipedia.org/wiki/ISO_3166-2
Is this a helpful question? Yes 0   No
1 Reply
Sort replies by:
Boardgames4Us

Posts: 14,673
Registered: 17 Mar, 12 1:16 AM
Posted on: 10 Jan, 2018 1:42 PM   in response to: Otreva MWS Test in response to: Otreva MWS Test
Helpful
Click to report abuse...   Click to reply to this thread Reply
Otreva MWS Test wrote:
When I call ListOrders Version 2013-09-01, sometimes I receive back an abbreviation which seems to be a ISO_3166-2 two character subdivision code (i.e. NY). Some other orders come back though as the full province name (i.e. NEW YORK). Any idea what restrictions or standards are in place for this field? Is there another field I should be looking at to get back proper province codes?

http://docs.developer.amazonservices.com/en_US/orders-2013-09-01/Orders_Datatypes.html#Address

Unfortunately not, Amazon accepts the state acronym OR the spelled out state/province with any case (lower or upper).

You will need to cope with that. You might need to create your own mapping table to replace what you get from Amazon with what you need.

Dave
Was this reply helpful? Yes 1   No 0