04-08-2024 11:06 AM
I have been getting quite a few responses like the one below but when you search eBay for the item ID (in this case 314677336958) the item exists and it's located in the US marketplace.
The only headers I'm sending are Authorization:[mytoken] and X-EBAY-C-MARKETPLACE-ID: EBAY_US
Any idea why this is happening??
{
"errors": [
{
"errorId": 11006,
"domain": "API_BROWSE",
"category": "REQUEST",
"message": "The legacy Id is invalid. Use https://api.ebay.com/buy/browse/v1/item/get_items_by_item_group?item_group_id=314677336958 to get the item group details.",
"parameters": [
{
"name": "itemGroupHref",
"value": "https://api.ebay.com/buy/browse/v1/item/get_items_by_item_group?item_group_id=314677336958"
}
]
}
]
}
Solved! Go to Best Answer
04-08-2024 12:57 PM
That's a variation listing. I can't tell what you are using for search parameters, but it appears the browse API is looking for a single item within the variation group, rather than the group itself. As instructed, use the group ID to collect details of all variations in the group or pass the legacy_variation_id along with the legacy_id.
GET https://api.ebay.com/buy/browse/v1/item/get_item_by_legacy_id?
legacy_item_id=string&
legacy_variation_id=string&
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItemByLegacyId
"Note: When passing in the ID for a multi-variation listing, you must also use the legacy_variation_id field and pass in the ID of the specific item variation. If not, all variation within the multi-SKU listing will be retrieved."
04-08-2024 12:57 PM
That's a variation listing. I can't tell what you are using for search parameters, but it appears the browse API is looking for a single item within the variation group, rather than the group itself. As instructed, use the group ID to collect details of all variations in the group or pass the legacy_variation_id along with the legacy_id.
GET https://api.ebay.com/buy/browse/v1/item/get_item_by_legacy_id?
legacy_item_id=string&
legacy_variation_id=string&
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItemByLegacyId
"Note: When passing in the ID for a multi-variation listing, you must also use the legacy_variation_id field and pass in the ID of the specific item variation. If not, all variation within the multi-SKU listing will be retrieved."
04-08-2024 01:13 PM
Thanks for the quick and helpful response!