# How to register an OAuth app for Amazon Seller Central

Amazon Seller Central provides access to the Selling Partner API (SP-API), a REST-based API that helps Amazon selling partners programmatically access their data on orders, shipments, payments, and much more.

> **Important: before you start**
>
> Your Amazon SP-API app must be in **Published / Production** status before it can be used with Apideck. Apps in **Draft / Sandbox** status only support Amazon's self-authorisation flow (a refresh token generated directly in Developer Central), which Apideck does not consume. If you attempt to connect with a Draft app, Amazon's consent screen will reject the request with error `MD9100`.
>
> Apideck does not provide a default OAuth app for Amazon Seller Central: you must register and publish your own SP-API app to use this connector.

> **🚨 Ongoing: rotate your client secret every 180 days**
>
> Amazon requires every SP-API application to rotate its Login with Amazon (LWA) client secret every 180 days, and blocks all API calls for an application that misses its deadline. This is a recurring obligation you carry for the life of the integration, not a one-time setup step. See [Rotate your LWA client secret every 180 days](#rotate-your-lwa-client-secret-every-180-days) below and plan for it before you go live.

## Register as a developer with Amazon

### 1. Create a developer account and register your application

1. Go to the [Amazon Selling Partner page](https://sellercentral.amazon.com/home)
2. Click the **Develop Apps** button from the top left corner menu under "Apps and Services"
   ![Develop Apps](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/develop-apps.png)
3. Fill out the registration form with your details
4. Accept the terms and conditions
5. Navigate to the [Developer Central](https://sellercentral.amazon.com/sellingpartner/developerconsole) section
6. Click **+ Add new app client**
   ![Add new app client](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/add-new-app-client.png)
7. Fill in the application details:
   - **Application name**: enter a meaningful name (typically your company name)
   - **Application type**: select the appropriate type (SP API)
   - **Business entities supported**: select the appropriate type (Sellers)
   - **Roles**: select the roles your integration needs, and read this one carefully. The connector asks Amazon for buyer and recipient data on orders, and maps the buyer's name, company, email address and the delivery address into the unified `customer` and `shipping_address` fields. Amazon treats those as personally identifiable information and gates them behind a restricted role, which carries an additional Amazon review beyond the standard one. If your integration needs customer or shipping details, request the restricted role that covers them and plan for that extra review. If it does not, request only order and listing access: the connection still works, and the customer and shipping fields simply come back empty. See Amazon's [roles in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/roles-in-the-selling-partner-api).
   - **OAuth Login URI**: enter `https://unify.apideck.com/vault/callback` as the OAuth Login URI
   - **Redirect URIs**: enter `https://unify.apideck.com/vault/callback` as the redirect URI
   - Click the **Save and exit** button
     ![Register App](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/register-app.png)

SP-API authorises by the roles granted to your app, not by OAuth scope strings, so there is no scope list to configure on the Apideck side.

### 2. Get your credentials

After your application is registered, on [Developer Central](https://sellercentral.amazon.com/sellingpartner/developerconsole) you'll receive:
![App Credentials](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/app-credentials.png)

1. **Client ID**: a unique identifier for your application
2. **Client Secret**: a secret key used to authenticate your application
   ![Client ID and Client Secret](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/client-id-client-secret.png)
3. **Application ID**: a unique ID for your SP-API application (format: amzn1.sellerapps.app.\*)
   ![Application ID](https://res.cloudinary.com/apideck/image/upload/v1742906747/docs/connectors/amazon-seller-central/application-id.png)

Make note of these credentials as you'll need them for the Apideck configuration.

### 3. Get your app Published

Submit the app for **Production listing approval** in Developer Central and wait for Amazon to publish it. Amazon reviews the developer profile and the application against its functionality, Acceptable Use Policy, Data Protection Policy and security requirements. See Amazon's documentation on [registering your application](https://developer-docs.amazon.com/sp-api/docs/registering-your-application) for what the review covers, and track the status in Developer Central; if you need an expected timeline, ask Amazon Developer Support through a support case.

## Configure in Apideck

Head over to the [Apideck Dashboard for Amazon Seller Central](https://platform.apideck.com/configuration/ecommerce/amazon-seller-central) and:

1. Enter the following credentials from your Published SP-API app:
   - **Client ID**: the Client ID from your SP-API application
   - **Client Secret**: the Client Secret from your SP-API application
   - **Application ID**: the Application ID from your SP-API application
2. Flip the **enable toggle** in the top-right corner of the connector card to **ON**
3. Click **Save settings**

## Rotate your LWA client secret every 180 days

Amazon requires you to rotate the Login with Amazon (LWA) client secret of every SP-API application every 180 days. Amazon states it plainly: "You must rotate your LWA credentials (client secrets) for all applications every 180 days", and "failure to rotate the LWA credentials for your app by the rotation deadline results in the loss of ability to make any API calls." An application that misses its deadline stays blocked until the secret is rotated, so treat the rotation date as an operational commitment with an owner on your side.

### What Amazon does

- **Advance notice**: Amazon notifies you 90 days before the rotation deadline.
- **Grace period on the old secret**: your previous secret keeps working for seven days after you generate a new one. You can cut that short deliberately by asking Amazon through a support case to invalidate the old secret straight away.
- **No impact on existing authorisations**: refresh tokens are tied to the client identifier, not the secret, so rotating does not invalidate the sellers who already authorised your app. Your consumers do not have to reconnect and you do not have to regenerate refresh tokens.

### How to rotate

Rotation is self-service, in whichever portal your app was registered in:

- **Solution Provider Portal**: open **Applications**, find the **LWA credentials** column, click **View** on the expiration alert, then **Rotate secret**.
- **Seller Central**: **Apps and Services** > **Develop Apps**, then rotate the credentials on the app.
- **Vendor Central**: **Integration** > **API Integration**, then rotate the credentials on the app.

Amazon also offers a client secret rotation API if you prefer to rotate programmatically. The full procedure is in Amazon's [rotating your app's LWA credentials](https://developer-docs.amazon.com/sp-api/docs/rotating-your-apps-lwa-credentials) guide and its [LWA credentials FAQ](https://developer-docs.amazon.com/sp-api/docs/lwa-credentials-faq).

### Then update Apideck

Rotating with Amazon is only half the job. Apideck keeps calling Amazon with the secret stored in your connector configuration, so as soon as the new secret exists:

1. Copy the new Client Secret from Amazon.
2. Open the [Apideck Dashboard for Amazon Seller Central](https://platform.apideck.com/configuration/ecommerce/amazon-seller-central), replace the **Client Secret**, and click **Save settings**.
3. Confirm a call still succeeds (for example with **Test Vault**, described below).

Your Client ID and Application ID do not change, so only the secret needs updating. If you rotate with Amazon and do not update Apideck, calls keep working until the old secret lapses after seven days and then fail with an invalid-credentials error. Doing both steps back to back avoids that window entirely.

## Testing the connection

On the same configuration page, click the **Test Vault** button in the top-right. This opens a Vault session pre-scoped to Amazon Seller Central where you can:

1. Click **Connect** on the Amazon Seller Central tile
2. Log in with your real Seller Central account, complete the connection form and the OAuth consent flow
3. Verify that the connection is established and make a test API call

The connection form asks for the seller's region, marketplace and merchant details; the connection guide covers those fields from the seller's point of view. If the OAuth consent screen returns an error, see the Troubleshooting section below.

## Troubleshooting

### Error: MD9100, "The application provided is not set up for third-party authorization using OAuth"

This error is returned by Amazon's consent screen when your SP-API app is in **Draft / Sandbox** status. Amazon only allows third-party OAuth authorisation for apps that have been Published (approved for Production).

To resolve:

1. In [Amazon Developer Central](https://sellercentral.amazon.com/sellingpartner/developerconsole), submit your app for **Production listing approval**. See Amazon's documentation on [registering your application](https://developer-docs.amazon.com/sp-api/docs/registering-your-application) for the review process.
2. Wait for Amazon to review and Publish your app.
3. Once your app is Published, retry the connection in Apideck.

**Note:** Amazon's self-authorisation option (the one-click flow inside Developer Central that generates a refresh token directly) is available for Draft apps but is not supported by Apideck. Apideck's flow requires the OAuth authorisation-code redirect, which only Published apps can use.

### Error: Invalid Client ID or Client Secret

If you receive an error about invalid credentials:

- Check whether the secret was recently rotated with Amazon but not yet updated in Apideck. This is the most common cause on an integration that was working before (see [Rotate your LWA client secret every 180 days](#rotate-your-lwa-client-secret-every-180-days)).
- Double-check that you've copied the correct Client ID and Client Secret
- Ensure there are no extra spaces or characters in the credentials
- Verify that your application has been approved by Amazon

### Error: Invalid Redirect URI

If you encounter redirect URI errors:

- Verify that you've added `https://unify.apideck.com/vault/callback` to your application's redirect URIs
- Check for any typos in the redirect URI configuration

### Error: Insufficient Permissions

If you receive permission errors:

- Review the data access permissions you've configured for your application
- Make sure you've selected all the necessary API sections your application needs

### Resolve 400 errors

There are many possible reasons for a 400 response when making API calls. The two that involve your app and the seller's account, rather than the request itself, are covered here; for the request-level causes (malformed requests, date formatting, URL encoding, invalid identifiers) see the [Amazon SP-API documentation on resolving 400 errors](https://developer-docs.amazon.com/sp-api/docs/resolving-400-errors).

#### Permissions and credentials

Ensure the following:

- **The required roles are approved** for your developer profile and your application
- **The seller account is active**

If a seller account isn't active and you're receiving 400 errors:

1. Contact the seller and ask them to go to **Seller Central** > **Settings** > **Account Info** > **Charge Information**
2. If the Charge Information page displays a banner requesting a credit card update, ask the seller to update their credit card information
3. Allow **48 hours** for the updates to propagate through all Amazon systems before trying again

**Note:** a Seller Central account that goes unused for a long stretch can be flagged as inactive, with the seller prompted to update their card details. The same 48-hour propagation window applies before that account's API calls succeed again.

## Rate limits

SP-API rate limits are per operation and are scoped to the seller account and application pair, so each seller you connect gets their own budget against your app. Each operation has a refill rate (requests per second) plus a burst capacity, and some operations use dynamic limits that Amazon adjusts based on business metrics rather than a fixed published number. See Amazon's [usage plans and rate limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).

The order-related operations this connector uses are published as follows. Amazon can change these, so treat its [Orders API rate limits](https://developer-docs.amazon.com/sp-api/docs/orders-api-rate-limits) page as the current source:

| Operation | Rate | Burst |
|-----------|------|-------|
| List orders (`getOrders`) | 0.0167 requests per second (approximately one per minute) | 20 |
| Single order (`getOrder`) | 0.5 requests per second | 30 |
| Order line items (`getOrderItems`) | 0.5 requests per second | 30 |

The list-orders rate is the one to design around: it is considerably tighter than the single-order reads, so a full sync should lean on the burst capacity and on filtered, incremental list calls rather than frequent polling.

## Additional resources

- [Amazon SP-API documentation](https://developer-docs.amazon.com/sp-api/docs)
- [Amazon SP-API GitHub repository](https://github.com/amzn/selling-partner-api-models)
- [Amazon SP-API developer forums](https://developer.amazonservices.com/forums)

For more information about using the Amazon Seller Central connector with Apideck, visit our [documentation](https://developers.apideck.com/apis/ecommerce/amazon-seller-central). If something in this guide does not match what you see, contact [Apideck Support](https://help.apideck.com/en/articles/7774658).
