I am new to amazon mws. I want to do the mws api integration with php. I have all the credentials whatever needed like secret key, seller id, and etc.
Basically i want to display all my orders in my php website. I tried with use of developer guide which is provided by the mws documentation. but i could not get a proper idea of how to integrate api in my php site.
First steps in creating an MWS client:
In your case you'll want to look at the Reports API, specifically at RequestReport
to request a list of orders, which you'll then fetch through GetReport
. Eventually you'll probably need to call ManageReportSchedule
to automatically create reports ready to fetch.
Please verify if your credentials are correct & you do have orders in your seller account to download from. You can use amazon's scratchpad here: Amazon MWS scratchpad
On scratchpad you want to use following methods.
API Selection: Orders
Operation: ListOrders
You can also refer to this API Guide to better understand scratchpad.
Download PHP library from Amazon MWS
You want to add your MWS credentials in this file MarketplaceWebServiceOrders/Samples/.config.inc.php
Here you put in values that you used to play around at scratchpad
MarketplaceWebServiceOrders/Samples/ListOrders.php
eg: CreatedAfter, LastUpdatedAfter, OrderStatus
Run this file in browser & you will receive data in XML format MarketplaceWebServiceOrders/Samples/ListOrders.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With