05-27-2024 12:43 AM
We want to update the following product information via the API:
- name
- price
- quantity
From what I understand, this needs to be done using the method: https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/createOrReplaceI...
When we want to update an existing product, we need to send all the product information, not just the fields we want to update.
For this purpose, we need to use the method: https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/getInventoryItem, replace the values we want to change (name, price, and quantity) in the response with our own values, and then perform a request using the method: https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/createOrReplaceI... by sending the complete data. Is that correct?
However, we are encountering issues while fetching the data. Let's take a few products as examples:
1. https://www.ebay.com/itm/274723335285 - we send a request to the endpoint "https://api.ebay.com/sell/inventory/v1/inventory_item/274723335285" with headers:
Accept-Language: de-DE
and we receive:
{
"sku": "274723335285",
"locale": "en_US",
"product": {
"title": "Für Samsung A50 2019 A505 A505F 6,2\" Bildschirm LCD Display INCELL Rahmentesttes"
}
}
So, we do not have complete information, only the title. Why?
2. https://www.ebay.com/itm/275171626922 - we send a request to the endpoint "https://api.ebay.com/sell/inventory/v1/inventory_item/275171626922" with headers:
Accept-Language: de-DE
and we receive:
{
"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"
}
]
}
Where does this error come from since the product exists and can be viewed at this address: https://www.ebay.com/itm/275171626922?
3. We want to both fetch and update the product in German. Are there any other headers we need to send?
05-27-2024 03:50 AM
How did you create your existing items? If created via software or old API then you can't get that information via the REST API.
Create a new listing using REST API and then call get_inventory and then update it.
05-27-2024 06:15 AM
I don't know how the products were created in the past, but I know that the functionality to update them is available in the software we are currently using. So, there must be a way to update them. If it's not through a REST API, how else can it be done?
05-27-2024 03:53 PM
You need to use old trading API.
https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/index.html