Skip to content
Client for Amazon MWS API
Branch: master
Clone or download
Thiago Marini
Latest commit 8a81bb5 Aug 9, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Fix constructor signature Sep 21, 2018
src Fix regex check + add tests for US and EU endpoints Aug 9, 2019
.gitignore First commit Oct 25, 2017 Remove Weengs namespace Aug 2, 2019
composer.json Remove Weengs from composer keywords Aug 2, 2019
phpunit.xml First commit Oct 25, 2017

PHP Client for Amazon MWS API

CircleCI Software License

What for?

This repository was previsouly hosted at Weengs Github account and was transfered to me.

We got very disappointed with the official PHP client Amazon offers on their docs and decided to write a simple client based on Guzzle that is good for PHP 7 projects. This project is based on the official client. The idea is to just hide all the nitty-gritty of handling requests and have as little abstraction as possible, basically you pass the request params and get a XML object or tab-delimited flat file.

Check their documentation and scratchpad to learn all available actions and their request params:


  • PHP >= 7.0
  • Guzzle 6


composer require thiagomarini/amazon-mws-client


// instantiate the client with your credentials
$client = new AmazonMwsClient(
    'access key',
    'secret key',
    'seller id',
    ['marketplace id'],
    'mws auth token'

// List orders
$optionalParams = [
    'CreatedAfter'  => '2017-09-30T23:00:00Z', // dates should always be in ISO8601 format
    'CreatedBefore' => '2017-10-23T23:00:00Z',

var_dump($client->send('ListOrders', '/Orders/2013-09-01', $optionalParams));

How to contribute

Pull requests are welcome :)



You can’t perform that action at this time.