I am writing an automated script to list products on the Amazon market. It works great for 95% of the products I'm trying to list, but I have problems with specific items like bulk deals or X packages.
For example, I have an EAN barcode product 7613032631703 and I can request the Amazon API to get barcode product information with something like this
$amazon_api = new MarketplaceWebServiceProducts_Client( AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, APPLICATION_NAME, APPLICATION_VERSION, [ 'ServiceURL' => 'https://mws-eu.amazonservices.com/Products/2011-10-01', 'ProxyHost' => null, 'ProxyPort' => -1, 'ProxyUsername' => null, 'ProxyPassword' => null, 'MaxErrorRetry' => 3, ] ); $list = new MarketplaceWebServiceProducts_Model_IdListType(); $list->setId('7613032631703'); $request = new MarketplaceWebServiceProducts_Model_GetMatchingProductForIdRequest(); $request->setSellerId(SELLER_ID); $request->setIdType('EAN'); $request->setMarketplaceId(MARKETPLACE_ID); $request->setIdList($list); $response = $amazon_api->getMatchingProductForId($request);
Which then returns me a MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse object, which I can use in order.
But all of Amazon’s results returned for the bulk purchase product lists for this product , which, as far as I can tell, means Amazon is wrong, because in this example the EAN 7613032631703 translated into one x12 package of this product, where Amazon talks about the same product , but in a package of 4 (total 48 packages).
Obviously, I do not want my product to fall into the same ASIN as the "bulk deals" lists, since I sell them separately.
Is there any way to prevent this? I can't find anywhere in the Amazon API docs about “listing quantity” or “stock ratio value” or something that I could use to determine when they use a particular barcode for lists that are actually plural.
Thanks so much for any ideas that can give me.
Edit:
Looking further, I am at a point where I do not think it is possible. Simply put, Amazon has incorrect listings, and you cannot trust the information that Amazon gives you the ability to automate every list.
The highest hope I had was the attribute of the MarketplaceWebServiceProducts_Model_ListMatchingProductsRequest result, if you dig into AttributeSets you can find the PackageQuantity for listing. In the example I gave for barcode 7613032631703 , some of the returned ads have a PackageQuantity of 4, which would be correct! And you could use it to automate this process. But several other lists for the same product have PackageQuantity 1, one of them has a PackageQuantity of 48 .... Amazon data is simply inaccurate (it’s not their fault that these lists are incorrect, whoever created the listing would first make this is wrong. But I think they need the police and rectification of these lists is better).
I am really interested if someone found a solid solution that allows you to automate, but if someone else is here with the same problem, I don’t think this seems likely, and I would advise against trying to automate it, like potential errors, which he can do are huge.