Help Article

Ask the Community

Find answers or join the conversation in the Community Help Forum.

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
We’re sorry, the page you’re looking for is no longer available. Please try your search again in our Help Center if you have a question or want to contact us.