Amazon MarketPlace

Connecting to Amazon Marketplace

Amazon MWS API vs Selling Partner API

Amazon MWS (Marketplace Web Services) API is the older API for the Amazon Marketplace while Selling Partner (SP) API provides number of improvements over MWS API including JSON-based REST API design standards and OAuth 2.0. SP-API includes all functionality available in Amazon MWS API.

You may specify which API to connect to by setting Schema. Please be aware that each API has different available connection options as described below.

Connecting to Selling Partner API

When using the Amazon Selling Partner API to connect to the Amazon Marketplace, the following properties are required:

  • Schema: Set this to SellingPartner.

  • InitiateOAuth: Set this to GETANDREFRESH.

  • Marketplace: Set this to the Marketplace region that you are registered to sell in.

Also, you can use the SellingPartner property to choose Seller or Vendor authentication.

Connecting to the MWS API

When using the Amazon MWS API to connect to the Amazon Marketplace, SellerId, Marketplace, Marketplace are required connection properties. Set Schema to Marketplace.

Configure Access to Amazon Marketplace

To connect to Amazon Marketplace first authorize CData developer. To do so follow the steps below:

  • Using the CData MWS developer id: 195280669143.

  • Go to the Manage your apps page in Seller Central and log into your Amazon seller account as the primary account holder.

  • Click the Authorize new developer button and follows the authorization workflow using the developer id provided by the provider.

Or you can go to Amazon Marketplace CData Driver and click Authorize Now on the right panel.

Obtaining the MWS Auth Token

To obtain the MWS Auth Token, follow the steps below:

  • Go to the Manage your apps page in Seller Central and log into your Amazon seller account as the primary account holder.

  • Find the CData App.

  • Under the MWS Auth Token Column click View.

Obtaining the Seller ID

To obtain the Seller ID follow the steps below:

  • Login to your seller account.

  • Select Settings, then Account Info on upper right of screen.

  • Under Business Information select "Your Merchant Token".

Authenticate to Amazon Marketplace

Amazon Marketplace Accounts

Set the following connection properties to connect:

  • SellerId: Set the Seller ID of Amazon marketplace web service settings.

  • Marketplace: Set Amazon market place location (United States, Canada, Japan etc.).

  • Schema: Set Schema to Marketplace.

OAuth

Amazon Marketplace uses the OAuth authentication standard.

To authenticate using OAuth, you will either need to use the embedded application or create a new custom OAuth app. You can use a custom OAuth app to authenticate with a service account or a user account.

Create a Custom OAuth App

  1. Log into the Selling Partner Console and open Develop Apps from Apps & Services.

  2. Click Add new app client.

  3. Provide name for the app and select SP-API as the API type.

  4. Provide IAM ARN for the AWS account and Select Sellers.

  5. Provide OAuth Login URI and OAuth Redirect URI values. After creating the app, the OAuthClientId and OAuthClientSecret are displayed under LWA credentials.

For a more in depth reading of how to create a custom OAuth app and configure the IAM role, please see the Amazon Selling Partner Guide.

After setting the following, you are ready to connect:

  • OAuthClientId: Set this to the client Id assigned when you registered your app.

  • OAuthClientSecret: Set this to the client secret assigned when you registered your app.

  • InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.

  • Marketplace: Set this to the The Marketplace region that you are registered to sell in.

  • AppId: Set this to the application Id for the Selling Partner app you created.

  • Schema: Set this to 'SellingPartner' to connect to SP-API.

  • AWSAccessKey: This is the Access Key tied to the AWS user that is associated with the the OAuthClientId.

  • AWSSecretKey: This is the Secret Key tied to the AWS user that is associated with the the OAuthClientId.

When you connect the provider opens the OAuth endpoint in your default browser. Log in and grant permissions to the application. The provider then completes the OAuth process:

  1. Extracts the access token from the callback URL and authenticates requests.

  2. Refreshes the access token when it expires.

  3. Saves OAuth values in OAuthSettingsLocation to be persisted across connections.

Last updated