Why do I get "The region number you have entered is invalid. Please enter valid region." in my AddItem response? Home Knowledge Base Why do I get "The region number you have entered is invalid. Please enter valid region." in my AddItem response? Find the answer to your question
Advanced Search Product -Select Product- GDPR Trading API Shopping API Merchandising API Feedback API Finding API Product Services Sandbox Others MIP Media API Notification API Identity API Charity API Taxonomy API Catalog API Recommendation API Compliance API Logistics API Finances API(Alpha) Negotiation API Sell Feed API Marketing Ads API Account API Inventory API Fulfillment API Marketing Promotion API Analytics API Metadata API Offer API Marketplace Insights API Deal API Marketing API Feed API Browse API Order API Analytics API Key Management API Cancellation API Case Management API Inquiry API Return API Category -Select- Getting Started Sample Code Troubleshooting HowTo's / Best Practices No Value
Language -Select- C# Flex Java JavaScript PHP VB.NET VB6
Format -Select- All XML SOAP JSON Name Value N/A
SDK -Select- .NET Java JavaScript Flax/Flash Mobile - iOS None
Sort by Default Summary New Description Date Updated
Sort order Descending Ascending
Search
Published: November 19 2008, 10:50:00 AM Updated: August 16 2022, 2:45:34 AM
When I make an AddItem call, I keep getting "The region number you have entered is invalid. Please enter valid region." As far as I know, I'm not passing a region number. What's going on here?
This issue is caused by including a <PostalCode> that doesn't match the selected <Country> in the AddItem request. For instance, if you specify a postal code of 95125 and a country of Hong Kong (HK), eBay will try to match that postal code with HK, which is not a valid scenario. Per the documentation:
"If you specify PostalCode, but do not specify Item.Location, then Item.Location is given a default value derived from the postal code." http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddItem.html#Request.Item.PostalCode
To fix the problem, either drop the postal code, or change the <Country> to match the postal code.
How well did this answer your question? Answers others found helpful