Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Amazon SP-API

Security covered Under active development 6 sites

Part of the Commerce ecosystem · 487 projects

This module integrates Drupal Commerce with the Amazon Selling Partner API to sync inventory with Drupal product variations. It allows you to create Amazon fulfillment orders from Drupal based on specific conditions and track their status, updating your Drupal orders accordingly.

Drupal Commerce Core integration with Amazon Selling Partner API.

https://developer-docs.amazon.com/sp-api/

Integrated SP API features:

What this module does?

Sync stock/inventory from your Amazon Merchant account and link them with existing product variations inside Drupal. Set marketplace conditions upon which you can create fulfillment orders on Amazon. Track your Amazon fulfillment order and transition your Drupal order based on status updates from Amazon.

Is this module what I need?

If you want to place orders from Drupal to fulfill with Amazon, this is the module for you. If you want to manage your Amazon listings, this is not the module for you.

The module has API calls for Amazon Product listing, but this feature is not implemented fully within Drupal Commerce.

REQUIREMENTS

This module requires Drupal Commerce Core (v2 or v3) and Commerce Shipping.

ARCHITECTURE

Drupal module provides four entity types which are interacting with Amazon SP API.

  • Amazon App
    • the app which you created under you Amazon Seller Central account.
    • List all available markets from your Amazon merchant account.
    • handles authentication
  • Amazon Marketplace
    • The Amazon marketplace by region (as associated with parent Amazon App).
    • references Amazon APP
    • references items from that marketplace with Amazon Item entity.
  • Amazon Item
    • The items from Amazon inventory linked to your Drupal variations.
    • Items are listed under the Amazon marketplace.
  • Amazon Fulfillment
    • the order created on Amazon based on conditions from Amazon Marketplace entity.
    • holds reference to Amazon Marketplace, Commerce Core order

INITIAL SETUP

  • Create SP API type app in Amazon Seller Central (choose Sellers under Business entities)
    • Self-authorize your app - copy refresh token
  • Create Amazon App inside Drupal - /admin/commerce/amazon/apps
    • Fill all token and client data
    • Choose mode
  • Create Amazon Marketplace inside Drupal - /admin/commerce/amazon/marketplace
    • Choose the Amazon App that you created in the previous step
    • Choose Marketplace - you can select only one region
    • Leave Sync items from FBA inventory checked on if you want to automate inventory sync
    • Select desired conditions upon an order placed in Drupal are going to be sent to the Amazon to be fulfilled.
  • Run cron to initially sync inventory
  • Go to general settings - /admin/commerce/config/amazon-sp-api/settings
    • Set desired sync period - from 10 to 60 minutes
    • Enable order integration and map states if you want to automate Commerce Core order workflow based on Fulfillment status from Amazon
  • Place an order to test.
Drupal 10–11

Ask your assistant about Commerce Amazon SP-API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Sep 15, 2025
1.0.x-dev Dev 10–11 Aug 26, 2024