Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 3c0ea35

Browse files
committed
Update mws.py
get_matching_product_for_id acts like get_matching_product. changed id to "ids" since in other function there is asins, skus ... Updated docs with proper case for the possible identifier values and added a hint that this needs to be in the correct case.
1 parent f98d1bc commit 3c0ea35

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

mws/mws.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,15 +462,16 @@ def get_matching_product(self, marketplaceid, asins):
462462
data.update(self.enumerate_param('ASINList.ASIN.', asins))
463463
return self.make_request(data)
464464

465-
def get_matching_product_for_id(self, marketplaceid, type, id):
465+
def get_matching_product_for_id(self, marketplaceid, type, ids):
466466
""" Returns a list of products and their attributes, based on a list of
467-
product identifier values (asin, sellersku, upc, ean, isbn and JAN)
467+
product identifier values (ASIN, SellerSKU, UPC, EAN, ISBN, GCID and JAN)
468+
The identifier type is case sensitive.
468469
Added in Fourth Release, API version 2011-10-01
469470
"""
470471
data = dict(Action='GetMatchingProductForId',
471472
MarketplaceId=marketplaceid,
472473
IdType=type)
473-
data.update(self.enumerate_param('IdList.Id', id))
474+
data.update(self.enumerate_param('IdList.Id.', ids))
474475
return self.make_request(data)
475476

476477
def get_competitive_pricing_for_sku(self, marketplaceid, skus):

0 commit comments

Comments
 (0)