05-01-2024 11:37 PM
I retrieve an order through the API using the endpoint: https://api.ebay.com/sell/fulfillment/v1/order/{orderId}
In return, I receive information where the name of the ordered product (Für Samsung A23 5G A236 Bildschirm LCD Display Schwarz) is in German, so it's correct:
Using the obtained "legacyItemId", I perform a query on the endpoint: "https://api.ebay.com/buy/browse/v1/item/v1|276096508070|0" also setting the request header to:
'Accept-Language' => 'de-DE',
and I receive in return information where the product name is in English (For Samsung A23 5G A236 Screen LCD Display Black), not as I would expect, in German:
How to obtain product information in the same language as in the order?
05-03-2024 09:57 AM
Hi @uts_group
It seems like you are not using the "X-EBAY-C-MARKETPLACE-ID" request header when executing the getItem call. This header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US. If a marketplace ID value is not provided, the default value of EBAY_US
is used.
When executing the call with X-EBAY-C-MARKETPLACE-ID request header as EBAY_DE, we are getting the result in German language.
{
"itemId": "v1|276096508070|0",
"sellerItemRevision": "9",
"title": "Für Samsung A23 5G A236 Bildschirm LCD Display Schwarz",
"shortDescription": "Erst nach Einbau und Test Folien abziehen,Sonst ist die Ruckgabe ausgeschlossen. Vor Einbau auf Funktionseweise Testen. Das Testen ist problemlos vor Ihrem Einbau moglich. Nachdem Sie getestet haben konnen Sie das Siegel entfernen und das Display einbauen.",
"price": {
"value": "24.80",
"currency": "EUR"
....
....
"enabledForGuestCheckout": true,
"eligibleForInlineCheckout": true,
"lotSize": 0,
"legacyItemId": "276096508070",
"priorityListing": true,
"adultOnly": false,
"categoryId": "43304",
"listingMarketplaceId": "EBAY_DE"
}
For more information, refer to the "HTTP request headers" section in API Documentation.