cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Endpoint buy/browse/v1/item/{itemId} returns data in different language than in order

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:

 

{
    "orderId": "...",
    "legacyOrderId": "...",
    "creationDate": "2024-05-01T13:30:16.000Z",
    "lastModifiedDate": "2024-05-01T19:44:27.000Z",
    "orderFulfillmentStatus": "FULFILLED",
    "orderPaymentStatus": "PAID",
    "sellerId": "...",
    "buyer": {...},
    "pricingSummary": {...},
    "cancelStatus": {...},
    "paymentSummary": {...},
    "fulfillmentStartInstructions": [...],
    "fulfillmentHrefs": [...],
    "lineItems": [
        {
            "lineItemId": "10062957968211",
            "legacyItemId": "276096508070",
            "sku": "A23 A236 \u0427\u0435\u0440 \u0411\u0420 \u21161",
            "title": "F\u00fcr Samsung A23 5G A236 Bildschirm LCD Display Schwarz",
            "lineItemCost": {
                "value": "24.8",
                "currency": "EUR"
            },
            "quantity": 1,
            "soldFormat": "FIXED_PRICE",
            "listingMarketplaceId": "EBAY_DE",
            "purchaseMarketplaceId": "EBAY_DE",
            "lineItemFulfillmentStatus": "FULFILLED",
            "total": {
                "value": "24.8",
                "currency": "EUR"
            },
            "deliveryCost": {
                "shippingCost": {
                    "value": "0.0",
                    "currency": "EUR"
                }
            },
            "appliedPromotions": [],
            "taxes": [],
            "properties": {
                "buyerProtection": true,
                "soldViaAdCampaign": true
            },
            "lineItemFulfillmentInstructions": {
                "minEstimatedDeliveryDate": "2024-05-03T22:00:00.000Z",
                "maxEstimatedDeliveryDate": "2024-05-05T22:00:00.000Z",
                "shipByDate": "2024-05-02T21:59:59.000Z",
                "guaranteedDelivery": false
            },
            "itemLocation": {
                "location": "Locknitz",
                "countryCode": "DE",
                "postalCode": "17321"
            }
        }
    ],
    "salesRecordReference": "...",
    "totalFeeBasisAmount": {...},
    "totalMarketplaceFee": {...}
}
 

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:

 

{
    "itemId": "v1|276096508070|0",
    "sellerItemRevision": "9",
    "title": "For Samsung A23 5G A236 Screen LCD Display Black",
    "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."
    ...
}
 

How to obtain product information in the same language as in the order?

Message 1 of 2
latest reply
1 REPLY 1

Endpoint buy/browse/v1/item/{itemId} returns data in different language than in order

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. 

Best Regards,
eBay Developer Support
Message 2 of 2
latest reply