bitbutcher / mws

A Ruby Client Library for Amazon MWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to update example to use #update api

chifung7 opened this issue · comments

Please update examples to use #update instead of #add. Otherwise, Amazon will reject the requests with the following errors.

            <Result>
                <MessageID>0</MessageID>
                <ResultCode>Error</ResultCode>
                <ResultMessageCode>90208</ResultMessageCode>
                <ResultDescription>[Marketplace : Amazon.com] Purge and replace is not allowed for this feed type.</ResultDescription>
            </Result>

This is because #add api would add PurgeAndReplace=true in url params (even the request has <PurgeAndReplace>false</PurgeAndReplace>).

mws.feeds.prices.add
mws.feeds.inventory.add

@chifung7 did you fixed this bug?

I just changed to use #update instead of #add in my code.

mws.feeds.prices.update
mws.feeds.inventory.update

A little question, do you have the list of categories to update/add a product?

examples should be fixed