How to Mark Orders as Shipped Using Amazon's MWS API

Hello Data Scientists and Software Engineers

How to Mark Orders as Shipped Using Amazon’s MWS API

Hello Data Scientists and Software Engineers! Today, we will tackle an often-asked question: “How do I mark orders as shipped using Amazon’s Marketplace Web Service (MWS) API?”

Amazon MWS API is a powerful tool that allows you to programmatically interact with Amazon’s vast ecosystem. It offers numerous functionalities, from managing inventory, processing orders, to reporting. But for this post, I’ll specifically go through the steps of marking orders as shipped using the API.

What is Amazon’s MWS API?

First, let’s define what Amazon MWS API is. Amazon’s Marketplace Web Service (MWS) API is a collection of web services that allows Amazon sellers to automate their business processes. It provides developers the means to create applications that interface directly with Amazon. With MWS, you can build applications that integrate various aspects of the Amazon marketplace, including items listings, orders, payments, reports, and more.

Setting Up Your MWS API

Before diving into the code, make sure you have your MWS credentials ready. You’ll need your Seller ID, MWS Auth Token, AWS Access Key ID, and Secret Key. If you’re not sure how to get these, check out Amazon’s MWS documentation on registering for MWS.

Marking Orders as Shipped

Now, let’s move to the main event: marking orders as shipped. The MWS API has a specific ‘SubmitFeed’ operation for this.

Below is a Python example using the boto3 library.

import boto3

# Set up your credentials
credentials = {
    'aws_access_key_id': 'YOUR_ACCESS_KEY',
    'aws_secret_access_key': 'YOUR_SECRET_KEY',
    'Merchant': 'YOUR_MERCHANT_ID',

# Create a Session
session = boto3.Session()

# Create MWS client
mws = session.client('mws', region_name='us-east-1', **credentials)

# Define the feed
feed = """
    <?xml version="1.0" encoding="UTF-8"?>
    <AmazonEnvelope xmlns:xsi="" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">

# Submit the feed
response = mws.submit_feed(


In this example, replace the placeholders in the feed variable with your actual values. This XML feed will then be sent to Amazon, which processes it and updates the order status.


Automating the process of marking orders as shipped is just one of the many powerful features provided by Amazon’s MWS API. It allows sellers to streamline their operations and focus on other aspects of their business. Always remember to follow best practices and Amazon’s policies when using their APIs.

Remember, the more you understand and utilize these tools, the more efficient your operations will be. Keep exploring, and happy coding!

Keywords: Amazon MWS API, Mark Orders as Shipped, Amazon Seller, Automate Amazon Business, Amazon Marketplace Integration, MWS API Python Example, Amazon Order Fulfillment.

About Saturn Cloud

Saturn Cloud is your all-in-one solution for data science & ML development, deployment, and data pipelines in the cloud. Spin up a notebook with 4TB of RAM, add a GPU, connect to a distributed cluster of workers, and more. Join today and get 150 hours of free compute per month.