Skip to main content

The Metadata API lets you retrieve eBay category policies, information on sales tax jurisdictions, and available hazardous material related label information.

Category policies are the eBay policies and guidelines for how 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. Another example is that you may want to know which item conditions are supported for different eBay categories. See Retrieve the eBay listing policies for an eBay marketplace and category ID for more information.

Several countries have sales tax jurisdictions where the tax rates across the different jurisdictions may vary. You can use the Metadata API to retrieve the lists of tax jurisdictions which you can then use to set up sales tax tables. See Retrieve sales tax jurisdictions for more information.

Sellers have the ability to add hazardous material related label information to their listings. See Retrieve hazardous material labels information for selling flows for more information.

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:

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

Both Canada (CA) and the United States (US) define different sales tax jurisdictions for the different regions in their countries. Sellers 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 the getSalesTaxJurisdictions method to retrieve details on a county's different sales tax jurisdictions, then use the methods in the sales_tax resource of the Account API to set up and manage your sales tax tables.

Note: Sales-tax tables are only available for the US (EBAY_US) and Canada (EBAY_CA) marketplaces.

US sales-tax tables

eBay now calculates, collects, and remits sales tax on behalf of sellers for items shipped to customers in all 50 states and Washington, DC. Sellers can no longer specify sales-tax rates for these jurisdictions using a tax table.

However, sellers may continue to use a sales-tax table to set rates for the following US territories: American Samoa (AS), Guam (GU), Northern Mariana Islands (MP), Palau (PW), and US Virgin Islands (VI).

Canadian sales-tax tables

Sellers can use sales-tax tables to set and configure rates for any or all Canadian provinces.

Retrieve hazardous material labels information for selling flows

Hazardous material label information can be retrieved and used by sellers to add hazardous material related information to their listings (see Specifying hazardous material related information).

Use the getHazardousMaterialsLabels method to retrieve details of available hazardous materials label information for the specified eBay marketplace, then add the information to your listing through the Regulatory container of Add/Revise/Relist family of calls in the Trading API (for example, AddItem).

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) 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
EBAY_AU (Australia) en-AU
EBAY_BE (Belgium) fr-BE
EBAY_CA (Canada) en-CA
EBAY_CH (Switzerland) de-CH
EBAY_DE (Germany) de-DE
EBAY_ES (Spain) es-ES
EBAY_FR (France) fr-FR
EBAY_GB (Great Britain) en-GB
EBAY_HK (Hong Kong) zh-HK
EBAY_IE (Ireland) en-IE
EBAY_IT (Italy) it-IT
EBAY_MOTORS_US (eBay Motors US) en-US
EBAY_MY (Malaysia) en-US
EBAY_NL (Netherlands) nl-NL
EBAY_PH (Philippines) en-PH
EBAY_PL (Poland) pl-PL
EBAY_RU (Russia) ru-RU
EBAY_SG (Singapore) en-US
EBAY_US (United States) en-US

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.