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

Fetching Product Information Using legacyItemId and legacyVariationId

In my program, I retrieve information about orders, their items, and products. For this purpose, I use the method: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders. It returns, among other things, "lineItems" (https://developer.ebay.com/api-docs/sell/fulfillment/types/sel:LineItem), which I use to fetch product information for my system.

 

A single lineItem contains the following IDs: "legacyItemId" and "legacyVariationId". Based on this information, I need to fetch product details such as:

  • Name
  • Photos
  • Stock status
  • Price
  • SKU
  • Country where it is listed

 

For this, I use the method: https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem

 

The problem is that using this method, I cannot seem to fetch the SKU and the variant using "legacyVariationId".

 

I need guidance on how to fetch the above information using "legacyItemId" and "legacyVariationId" (sometimes a product is ordered, and sometimes a specific variant).

It seems to me that the only way to fetch the SKU is by using the legacy API and this method: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/GetItem.html, but maybe there is a better way?

Message 1 of 3
latest reply
2 REPLIES 2

Fetching Product Information Using legacyItemId and legacyVariationId

1 - Call get order, you will get lineItemId and SKU

https://api.ebay.com/sell/fulfillment/v1/order?orderIds=07-11750-49381

2 - You can getInventotyItem

https://api.ebay.com/sell/inventory/v1/inventory_item/[SKU]

you will get images, MPN and stock etc

3 - You can then call getOffer

https://api.ebay.com/sell/inventory/v1/offer?sku=V63-817863 and you will get price, description etc

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 2 of 3
latest reply

Fetching Product Information Using legacyItemId and legacyVariationId

Thank you for your help. I got some questions about your prompt.

1. After calling this method I see that it returns exactly same data as - https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders so I think there is no point to call it, as I already have order data.

2. https://api.ebay.com/sell/inventory/v1/inventory_item/[SKU] - there are 2 problems with that:
a) I think that some items doesn`t have SKU and I still need to fetch its data.
b) It returns me error:

{
    "errors": [
        {
            "errorId": 25710,
            "domain": "API_INVENTORY",
            "subdomain": "Selling",
            "category": "REQUEST",
            "message": "We didn't find the resource/entity you are requesting. Please verify the request"
        }
    ]
}


for SKU: "220333QAG Чер СР №1". I have tried to url encode it in few different ways:

- M2012K11AG+%D0%A7%D0%B5%D1%80+%D0%91%D0%A0+OLED

- M2012K11AG%20%D0%A7%D0%B5%D1%80%20%D0%91%D0%A0%20OLED

but it doesn`t help.

Concluding 2 above- maybe there is any safer method to get this data, not using sku?

Message 3 of 3
latest reply