Skip to main content

GET/marketplace/{marketplace_id}/get_product_safety_labels

This method returns product safety label information for the specified eBay marketplace. The information includes IDs, descriptions, and URLs (as applicable) for the available statements and pictograms. The returned statements are localized for the default language of the marketplace. If a marketplace does not support product safety label information, no response payload is returned, but only a 204 No content status code.

This information is used by the seller to add product safety label related information to their listings. The getRegulatoryPolicies method can be used to see which categories recommend or require product safety labels.

Input

Resource URI

GET https://api.ebay.com/sell/metadata/v1/marketplace/{marketplace_id}/get_product_safety_labels

This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com root URI with api.sandbox.ebay.com

URI parameters

ParameterTypeDescription
marketplace_idstringThis path parameter specifies the eBay marketplace for which policy information is retrieved.

See HTTP Request Headers for a list of supported eBay marketplace ID values. See the following note for exceptions.Note: This method is not supported in the EBAY_HK, EBAY_MY, EBAY_TW, or EBAY_PH marketplaces.

Occurrence: Required

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.

OAuth scope

This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
pictogramsarray of ProductSafetyLabelPictogram

This array contains a list of pictograms of product safety labels for the specified marketplace.

Occurrence: Always

pictograms.pictogramDescriptionstring

The description of the pictogram localized to the default language of the marketplace.

Occurrence: Always

pictograms.pictogramIdstring

The identifier of the pictogram.

Occurrence: Always

pictograms.pictogramUrlstring

The URL of the pictogram.

Occurrence: Always

statementsarray of ProductSafetyLabelStatement

This array contains available product safety labels statements for the specified marketplace.

Occurrence: Always

statements.statementDescriptionstring

The description of the statement localized to the default language of the marketplace.

Occurrence: Always

statements.statementIdstring

The identifier of the statement.

Occurrence: Always

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200Success
204No content
404Not found
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
46000API_METADATAAPPLICATIONThere was a problem with an eBay internal system or process.Contact eBay developer support for assistance.
46001API_METADATAREQUESTThe specified marketplace ID was not found.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Get the available product safety labels information for a specified marketplace

This example retrieves the available hazardous material labels information for the EBAY_DE marketplace.

Input

The marketplace EBAY_DE is passed in as a path parameter. This method does not use a request payload.

GEThttps://api.ebay.com/sell/metadata/v1/marketplace/EBAY_DE/get_product_safety_labels

Output

A successful call returns the details of the specified marketplace.

Got thoughts? Click the feedback button – your insights help us improve!