MWS Orders

MWS Orders is a fully-featured Ruby interface to the Amazon Marketplace Web Service (MWS) Orders API.

Usage

Instantiate a client:

client = MWS::Orders::Client.new('GB', 'aws_key', 'aws_secret', 'seller_id')

API methods are available on the client.

Orders

List orders created or updated during a time frame you specify:

# See the API for all available parameters.
client.list_orders(
  created_after: 1.week.ago,
  order_status: %w(Pending Unshipped)
)

List the next page of orders:

client.list_orders_by_next_token

Get one or more orders based on their order numbers:

client.get_order('123-1234567-1234567')

All above queries will return an enumerable list of orders.

Order Items

List order items based on an order number you specify:

client.list_order_items('123-1234567-1234567')

List the next page of order items:

client.list_order_items_by_next_token

All above queries will return an enumerable list of order items.

Service Status

Check the operational status of the API:

client.get_service_status

Naming Conventions

Request and response attribute names follow Amazon's naming conventions with a few exceptions, where some Railsism has insidiuously crept in—e.g. shipped_at instead of ShipDate.