Download OpenAPI specification:Download
The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.
This method returns the eBay policies that define how to list automotive-parts-compatibility items in the categories of a specific marketplace.
By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string This path parameter specifies the eBay marketplace for which policy information is retrieved.
|
| filter | string This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. |
{- "automotivePartsCompatibilityPolicies": [
- {
- "categoryId": "string",
- "categoryTreeId": "string",
- "compatibilityBasedOn": "string",
- "compatibleVehicleTypes": [
- "string"
], - "maxNumberOfCompatibleVehicles": 0
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns the Extended Producer Responsibility policies for one, multiple, or all eBay categories in an eBay marketplace.
The identifier of the eBay marketplace is passed in as a path parameter, and unless one or more eBay category IDs are passed in through the filter query parameter, this method will return metadata on every applicable category for the specified marketplace.
Note: Currently, the Extended Producer Responsibility policies are only applicable to a limited number of categories, and only in the EBAY_FR marketplace.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string A path parameter that specifies the eBay marketplace for which policy information shall be retrieved. |
| filter | string A query parameter that can be used to limit the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree that should be returned. |
{- "extendedProducerResponsibilities": [
- {
- "categoryId": "string",
- "categoryTreeId": "string",
- "supportedAttributes": [
- {
- "enabledForVariations": true,
- "name": "string",
- "usage": "string"
}
]
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns item condition metadata on one, multiple, or all eBay categories on an eBay marketplace. This metadata consists of the different item conditions (with IDs) that an eBay category supports, and a boolean to indicate if an eBay category requires an item condition.
The identifier of the eBay marketplace is passed in as a path parameter, and unless one or more eBay category IDs are passed in through the filter query parameter, this method will return metadata on every single category for the specified marketplace. If you only want to view item condition metadata for one eBay category or a select group of eBay categories, you can pass in up to 50 eBay category ID through the filter query parameter.
Important: Certified - Refurbished-eligible sellers, and sellers who are eligible to list with the new values (EXCELLENT_REFURBISHED, VERY_GOOD_REFURBISHED, and GOOD_REFURBISHED) must use an OAuth token created with the authorization code grant flow and https://api.ebay.com/oauth/api_scope/sell.inventory scope in order to retrieve the refurbished conditions for the relevant categories.
See the eBay Refurbished Program - Category and marketplace support topic for the categories and marketplaces that support these refurbished conditions
These restricted item conditions will not be returned if an OAuth token created with the client credentials grant flow and https://api.ebay.com/oauth/api_scope scope is used, or if any seller is not eligible to list with that item condition.
See the Specifying OAuth scopes topic for more information about specifying scopes.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components. |
| filter | string This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. |
{- "itemConditionPolicies": [
- {
- "categoryId": "string",
- "categoryTreeId": "string",
- "itemConditionRequired": true,
- "itemConditions": [
- {
- "conditionDescription": "string",
- "conditionId": "string",
- "usage": "string"
}
]
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns the eBay policies that define the allowed listing structures for the categories of a specific marketplace. The listing-structure policies currently pertain to whether or not you can list items with variations.
By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components. |
| filter | string This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. |
{- "listingStructurePolicies": [
- {
- "categoryId": "string",
- "categoryTreeId": "string",
- "variationsSupported": true
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns the eBay policies that define the supported negotiated price features (like "best offer") for the categories of a specific marketplace.
By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components. |
| filter | string This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. |
{- "negotiatedPricePolicies": [
- {
- "bestOfferAutoAcceptEnabled": true,
- "bestOfferAutoDeclineEnabled": true,
- "bestOfferCounterEnabled": true,
- "categoryId": "string",
- "categoryTreeId": "string"
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns the eBay policies that define whether or not you must include a return policy for the items you list in the categories of a specific marketplace, plus the guidelines for creating domestic and international return policies in the different eBay categories.
By default, this method returns the entire category tree for the specified marketplace. You can limit the size of the result set by using the filter query parameter to specify only the category IDs you want to review.
Tip: This method can potentially return a very large response payload. eBay recommends that the response payload be compressed by passing in the Accept-Encoding request header and setting the value to application/gzip.
| marketplace_id required | string This path parameter specifies the eBay marketplace for which policy information is retrieved. See the following page for a list of valid eBay marketplace IDs: Request components. |
| filter | string This query parameter limits the response by returning policy information for only the selected sections of the category tree. Supply categoryId values for the sections of the tree you want returned. |
{- "returnPolicies": [
- {
- "categoryId": "string",
- "categoryTreeId": "string",
- "domestic": {
- "policyDescriptionEnabled": true,
- "refundMethods": [
- "string"
], - "returnMethods": [
- "string"
], - "returnPeriods": [
- {
- "unit": "string",
- "value": 0
}
], - "returnsAcceptanceEnabled": true,
- "returnShippingCostPayers": [
- "string"
]
}, - "international": {
- "policyDescriptionEnabled": true,
- "refundMethods": [
- "string"
], - "returnMethods": [
- "string"
], - "returnPeriods": [
- {
- "unit": "string",
- "value": 0
}
], - "returnsAcceptanceEnabled": true,
- "returnShippingCostPayers": [
- "string"
]
}, - "required": true
}
], - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method retrieves all the sales tax jurisdictions for the country that you specify in the countryCode path parameter. Countries with valid sales tax jurisdictions are Canada and the US.
The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the createOrReplaceSalesTax in the Account API call to configure the tax tables for the jurisdictions you sell to.
| countryCode required | string This path parameter specifies the two-letter ISO 3166 country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are |
{- "salesTaxJurisdictions": [
- {
- "salesTaxJurisdictionId": "string"
}
]
}