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

Getting Error 11006: The legacy Id is invalid. However, searching eBay finds the item with the ID

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"
                }
            ]
        }
    ]
}

 

Message 1 of 3
latest reply
1 BEST ANSWER

Accepted Solutions

Getting Error 11006: The legacy Id is invalid. However, searching eBay finds the item with the ID

@pearcefj 

 

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."

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.

View Best Answer in original post

Message 2 of 3
latest reply
2 REPLIES 2

Getting Error 11006: The legacy Id is invalid. However, searching eBay finds the item with the ID

@pearcefj 

 

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."

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 3
latest reply

Getting Error 11006: The legacy Id is invalid. However, searching eBay finds the item with the ID

Thanks for the quick and helpful response!

Message 3 of 3
latest reply