question

dakarp avatar image
0 Likes"
dakarp asked

Issue when retrieving item via the BrowseAPI getItem when seller is away

When retrieving an item via the Browse API getItem endpoint, if the seller is away, the API returns an error 11001, "The specified item Id was not found."

According to the API documentation, it looks like the correct response should be warning 11508 or 11509, "This seller is currently away. If you make a purchase, please allow additional time for your order to be processed.", or "This seller is currently away until {sellerReturnDate}. If you make a purchase, please allow additional time for your order to be processed.".

This is causing us issues, because we'd like to be able to use the API to remove items permanently from our system when they are no longer available, but we can't tell the difference between something that has been deleted and a seller going on vacation.

An example of an endpoint that currently shows this behavior is: /buy/browse/v1/item/v1|300092964355|0

Does anyone know of a way to get information on an item if the seller is away?

browse apibug
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
dakarp avatar image
0 Likes"
dakarp answered

For anyone who sees this, there is hack that will let you distinguish between an item that is actually deleted and an item that may just be temporarily hidden. If you call getItemsByItemGroup on a the legacyId part of an id, if the item is completely gone, you will get an error 11002 (group not found), but if it is an item that is just temporarily hidden, you will get error 11005, "Item Group Id is invalid. Use https://api.ebay.com/buy/browse/v1/item/v1|194641595413|0 to get the item details." You can't get the details from that other endpoint, but at least you know it is somewhere in the system. Obviously, this is far from ideal, but it is better than nothing, perhaps.

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.