The Metadata API lets you retrieve eBay category policies and information on sales tax jurisdictions.
Category policies are the eBay policies and guidelines for how you must list you must list certain items in specific categories across the different eBay marketplaces. For example, if you are listing items with variations, you'll want to know which categories support multiple-variation listings, or you'll want to know which item conditions are supported for the different eBay categories.
Several countries have sales tax jurisdictions where the tax rates across the different jurisdictions may vary, and you can use the Metadata API to retrieve the lists of tax jurisdictions, which you can use to set up sales tax tables.
Technical overview
The Metadata API contains methods in the following resources:
- country
- marketplace
The methods in these resources let you retrieve configuration details that pertain to the different eBay marketplaces, as well as get information about the areas into which you sell.
Business use cases
The Metadata API supports the use cases outlined below.
Retrieve the eBay listing policies for an eBay marketplace and category ID
Each eBay marketplace has policies that govern how you can list items in different eBay categories. The marketplace
resource contains several GET
methods that let you retrieve the following listing policies for specific marketplace categories:
- Policies that define how you must list automotive parts compatibility items in different categories (getAutomotivePartsCompatibilityPolicies)
- Policies that define which categories support Extended Producer Responsibilities (getExtendedProducerResponsibilityPolicies)
- Policies that define how to specify the condition of the items you list (getItemConditionPolicies)
- Policies that define which categories support listings with item variations (getListingStructurePolicies)
- Policies that define which negotiated price (best offer) features are available for a specific category (getNegotiatedPricePolicies)
- Policies that define the categories that require listings have item return policies, plus the guidelines for configuring domestic and international return policies (getReturnPolicies)
Important! The listing policies are specific to an eBay marketplace and category ID. Be sure to use the policies that match the categories into which you list items.
Retrieve sales tax jurisdictions
Canada (CA), India (IN), and the United States (US) all define different sales tax jurisdictions for the different regions in their countries. Seller can ease the process of calculating the final value of the items they sell by setting up tax tables for the tax jurisdictions where they must charge sales tax.
Use getSalesTaxJurisdictions to retrieve details on a county's different sales tax jurisdictions, then use the sales_tax resource of the Accounts API to set up and manage your sales tax tables.
Metadata API requirements and restrictions
The getSalesTaxJurisdictions method returns data for only the countries that designate different sales tax jurisdictions. These countries are currently limited to Canada (CA), India (IN), and the United States (US).
The methods in the marketplace resource return data for only the eBay marketplaces in the following list:
Marketplace ID |
Marketplace Locale Support |
Marketplace Site |
---|---|---|
EBAY_AT (Austria) |
de-AT
|
https://www.ebay.at |
EBAY_AU (Australia) |
en-AU
|
https://www.ebay.com.au/ |
EBAY_BE (Belgium) |
fr-BE
|
https://www.befr.ebay.be/
https://www.benl.ebay.be/ |
EBAY_CA (Canada) |
en-CA
|
https://www.ebay.ca
https://www.cafr.ebay.ca/ |
EBAY_CH (Switzerland) |
de-CH
|
https://www.ebay.ch |
EBAY_DE (Germany) |
de-DE
|
https://www.ebay.de |
EBAY_ES (Spain) |
es-ES
|
https://www.ebay.es |
EBAY_FR (France) |
fr-FR
|
https://www.ebay.fr |
EBAY_GB (Great Britain) |
en-GB
|
https://www.ebay.co.uk |
EBAY_HK (Hong Kong) |
zh-HK
|
https://www.ebay.com.hk |
EBAY_IE (Ireland) |
en-IE
|
https://www.ebay.ie |
EBAY_IN (India) |
en-GB
|
https://www.ebay.in |
EBAY_IT (Italy) |
it-IT
|
https://www.ebay.it |
EBAY_MOTORS_US (eBay Motors US) |
en-US
|
https://www.ebay.com/motors |
EBAY_MY (Malaysia) |
en-US
|
https://www.ebay.com/my |
EBAY_NL (Netherlands) |
nl-NL
|
https://www.ebay.nl |
EBAY_PH (Philippines) |
en-PH
|
https://www.ebay.ph |
EBAY_PL (Poland) |
pl-PL
|
https://www.ebay.pl |
EBAY_RU (Russia) |
ru-RU
|
https://www.ebay.com/sch/Russia |
EBAY_SG (Singapore) |
en-US
|
https://www.ebay.com/sg |
EBAY_US (United States) |
en-US
|
https://www.ebay.com |
Note: The Accept-Language
request header must be passed in along with the marketplace to specify the preferred language for marketplaces that support multiple locales. See HTTP request headers for more information about request headers, or see Marketplace ID values for more information about marketplace support.