user3589413
user3589413

Reputation: 21

PayPal Country state codes

Can I find the states codes somewhere that have to be used for the PayPal address format?

For example: Which states codes have to be used for Turkey?

I already tried IST for Istanbul for example, but that doesn't work.

Upvotes: 2

Views: 5114

Answers (2)

Doug McLean
Doug McLean

Reputation: 1309

I had the same problem. When the country is Mexico, PayPal complains if the state field is missing. I tried "AGU" and "MX-AGU", for Aguascalientes, then PayPal claimed the field was too long. Finally it accepted "AG", which I found here: http://en.wikipedia.org/wiki/Template:Mexico_State-Abbreviation_Codes

Looks like that developer guide page that PP_MSI_Aaron shared, might need updating.

For Turkey you could try http://en.wikipedia.org/wiki/Provinces_of_Turkey#Codes maybe?

However when I tried it with country=Turkey and no state/province, PayPal did not complain. But then I am using PayPal via SagePay via Magento, which only submits the state/province data for a select few countries (Turkey not among them), so I can't test what PayPal would say if I tried it with country=Turkey and province=IST.

Upvotes: 1

Aaron
Aaron

Reputation: 1271

From the Classic API Developer Guide:

PayPal accepts the following State codes in the State field of an address.

  • Canada
  • Italy
  • Netherlands
  • United States

...

For Turkey you should not need to pass a state code as this field is optional. And the state codes on this page are the only valid codes.

Upvotes: 3

Related Questions