Skip to main content
Published: January 27 2012, 5:09:00 PMUpdated: November 28 2020, 10:13:50 PM

Why does the numeric SiteID given by the documentation differ from the definition in the .NET SDK?

Summary

What are the differences in SiteID's within the documenation, the API Test Tool, and the .NET SDK



Detailed Description

When looking through the different areas of the documentation and tools, you may notice there is a numeric values associated for each site.  For example the US site is 0, UK is 3, and so on.  The best place to find the numeric values is from the following link, SiteID.  You can also see the numeric value of the SiteID within our API Test Tool, API Test Tool, under the "Select Site ID" box.  Now where it may get a little confusing is when using a SDK, specifically the .NET SDK.  When specifying the SiteID within .NET, you will do something like this,

ApiContext oContext = new ApiContext();

oContext.Site = eBay.Service.Core.Soap.SiteCodeType.US;  

When looking at the definition for SiteCodeType, you will notice the enum associated with the countries greatly differs from the actual numeric SiteID's, PLEASE IGNORE THE ENUM.  These are strictly enum values for the SiteCodeType and are not in any way related to the actual numeric values.  Please use the SiteID link or API Test Tool for correct values.



Additional Resources

SiteID: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/extra/AddItmRqst.Itm.St.html6

API Test Tool: https://developer.ebay.com/DevZone/build-test/test-tool/default.aspx

.NET SDK: https://www.x.com/developers/ebay/documentation-tools/sdks/dotnet

How well did this answer your question?
Answers others found helpful