How to Use Amazon MWS API to ADD Products via Submit Feed

Amazon MWS API to ADD Products via Submit Feed

Amazon provided MWS ( Amazon Marketplace Web Service ) as its API Gateway – a full-fledged APIs program to manage all operations. Anyone who has an Amazon account can use its MWS API service.

Get Amazon API Access Keys

To obtain amazon access keys, you need to sign up for an amazon web service account, this account is different from your shopping account.

Sign up here for amazon web service access: aws.amazon.com

Once your account is ready than access the security credential page. Here
you can create new amazon api access keys.

Just click on the “Create New Access Key” option, after complete this process, you will get Access Key ID and Secret Key.

amazon access keys

Amazon MWS Submit Feed Process

Amazon has a Feeds API section, which allows you to upload Product, inventory, and order data to Amazon.

These feed operations work on the basis of XML or Flat files. Using SubmitFeed API call, upload feed data to amazon.

Lets start with SubmitFeed to Add Products to the Amazon account.

First, we are going to create an XML feed with Product data. Check Amazon feed api documentation

See below sample Product XML Feed. You can use this feed to upload product data to your amazon account.

For multiple products data use <Message>…</Message> repeatedly

Amazon MWS API Submit Feed Code

Now we are going to write SubmitFeed API call, which will upload this xml feed.

Check below example query code to Add products via SubmitFeed.

After execute above SubmitFeed script, Amazon MWS returns an XML response which contains the response to a successful request or subscription. If the request is unsuccessful, the main response element is ErrorResponse.

On success you will get the “FeedSubmissionId“. You can test the feed response via this ID. Check it out this “GetFeedSubmissionList” operation. This API call result show you that feed is processed completely or not.

You can use above script for another Feed Type operations, just change the “Action” parameter value and make xml feed according to it.

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

2 thoughts on “How to Use Amazon MWS API to ADD Products via Submit Feed”

Leave a Comment

Your email address will not be published. Required fields are marked *