question

anandr_27 avatar image
0 Likes"
anandr_27 asked

Unable to find product by UPC code (productId.@type=UPC)

I am trying to use the search API to locate products by UPC and it doesn't seem to work. For instance, the following query returns **Query** http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&SECURITY-APPNAME=&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&productId.@type=UPC&productId=018208264513 **Return value** 41 Marketplace Error Request Invalid product ID value. Search 018208264513 When I goto the ebay site and search pasting the UPC code in the search box, I see the exact results so I am sure that the UPC data exists http://www.ebay.com/sch/i.html?_sacat=0&_from=R40&_nkw=018208264513&_rdc=1 How do I modify my query to search using the @type=UPC parameter? Thanks for the help,
searchupc
10 |600 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
davidtsadler avatar image
0 Likes"
davidtsadler answered
Looking at the documentation for [findItemsByProduct]( http://developer.ebay.com/DevZone/finding/CallRef/findItemsByProduct.html#Request.productId) it seems you can only use the UPC to search for items in Music (e.g., CDs), DVDs & Movies, and Video Games categories (or domains). Using [findItemsByKeywords]( http://developer.ebay.com/DevZone/finding/CallRef/findItemsByKeywords.html) seems to work though. http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SECURITY-APPNAME=&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&keywords=018208264513
10 |600 characters needed characters left characters exceeded

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.