Why did I get the error "Country not specified" when sending an API request?

Issue
PayPal returned a "Country not specified" error.

Cause
Your API request didn't specify a country code, or passed it incorrectly.

Solution
Check that you specified the country code in your API request and passed it as the value of the correct variable. For some languages, notably .NET, if you don't set the CountrySpecified property to True, the country code won't pass.

Note: You must provide a country code for both billing and shipping addresses.


See also:
REST APIs
Country and Region Codes
PayPal state and province codes
Locale Codes

NVP/SOAP APIs
Country and Region Codes
PayPal state and province codes
Locale Codes