EBay API not working for UPC / EAN

The eBay API findItemsByProduct will work with UPC and EAN. But, unfortunately, it does not work.

The following HTTP GET request returns "Invalid product identifier value." [error 41] http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=MY-APP-ID-GOES-HERE&OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT= XML & REST-PAYLOAD & productId. @ Type = EAN & productId = 0016000275270 & paginationInput.entriesPerPage = 3

Note. . Please replace the SECURITY-APPNAME value with your free eBay APP identifier. I replaced it with MY-APP-ID-GOES-HERE for obvious reasons. The eBay API for the above function can be found here: http://developer.ebay.com/DevZone/finding/CallRef/findItemsByProduct.html#findItemsByProduct

Output:

<findItemsByProductResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
<ack>Failure</ack>
<errorMessage>
<error>
<errorId>41</errorId>
<domain>Marketplace</domain>
<severity>Error</severity>
<category>Request</category>
<message>Invalid product ID value.</message>
<subdomain>Search</subdomain>
<parameter>0016000275270</parameter>
</error>
</errorMessage>
<version>1.12.0</version>
<timestamp>2014-03-11T18:38:13.543Z</timestamp>
</findItemsByProductResponse>

Can someone notice any error with the above call? Thank.

FWIW, 0016000275270 - a valid barcode http://www.upcdatabase.com/item/0016000275270

+4
source share

Source: https://habr.com/ru/post/1531228/


All Articles