DataFirefly Amazon Connector: connect PrestaShop to Amazon Seller Central
Installation, SP-API connection, marketplaces, category mapping, publishing, prices, stock, orders, shipments, invoices, cancellations, refunds and troubleshooting.
Overview
The module connects your PrestaShop shop to your Amazon seller account through Amazon’s official Selling Partner API (SP-API). It publishes your products on the marketplaces you choose, sends stock and prices, imports Amazon orders into PrestaShop, confirms shipments, uploads your invoices, and reads refunds and FBA stock.
Compatibility: PrestaShop 1.7.8 to 9.x, with the same ZIP for every version. Multistore, multilingual, Amazon regions Europe, North America and Far East. Interface in 8 languages: French, English, Spanish, German, Italian, Dutch, Polish and Portuguese.
New in version 2.0.0: connection wizard, synchronisation dashboard, visual mapping editor for Amazon’s required attributes, queue that explains each error and how to fix it, minimum and maximum prices per product and per marketplace, VAT mode per marketplace, refunds from PrestaShop, buyer data anonymisation and PrestaShop 1.7.8 compatibility.
Version 2.0.0 also fixes issues in 1.2.1: stock updates not queued and product settings not saved on strict MySQL, orders rejected for a country disabled in the shop or for Spain, import failing with the command-line cron, and a disabled brand blocking the listing. Upgrading from 1.2.1 keeps all your data.
Installation
- In Modules > Module Manager, click Upload a module and upload the ZIP file. The PHP extensions cURL and OpenSSL are required.
- The module creates its tables, the Amazon Connector tab in the Sell menu, an “Amazon” carrier reserved for imported orders (never offered to your customers) and the Amazon order statuses.
- Open the tab: the dashboard shows the getting-started steps, in order.
To upgrade from 1.2.1 to 2.0.0, upload the new ZIP. Settings, credentials, marketplaces, mappings, listings, orders and logs are kept, and secrets are re-encrypted with the new algorithm. Buyer data anonymisation stays disabled after an upgrade: nothing already imported is changed until you enable it.
Preparing your Amazon account
The module connects with your own private SP-API application. You need a professional Seller Central account.
- In Seller Central, open Apps and Services > Develop Apps and register as a private developer if you have not done so already.
- Create an application and request the roles needed for the features you will use: Product Listing and Pricing for the catalogue, Inventory and Order Tracking for orders, Direct-to-Consumer Shipping (Restricted) for the shipping address, Amazon Fulfillment for FBA stock, Finance and Accounting for refunds, Tax Invoicing for invoices.
- Authorise the application on your account to get a refresh token, and note the LWA client ID and the LWA client secret.
- Find your Seller ID (Merchant Token) in Settings > Account Info.
The Orders v2026-01-01 API used by the module does not require a Restricted Data Token: access to the shipping address depends on your application’s Direct-to-Consumer Shipping role. Without this role, orders are imported with a fallback address, flagged on the order.
Connection
The Connection tab guides you through the setup in four steps: the region, the Login with Amazon credentials, the Seller ID, then the test. The test requests an access token from Amazon and reads the marketplaces of your account; you then tick the Amazon stores to enable.
The client secret and the refresh token are encrypted in the database (AES-256-GCM) and are never displayed again: leave the fields empty to keep the saved values. The Disconnect button deletes the credentials and stops the synchronisation.

Marketplaces and price rules
The Marketplaces tab shows one card per Amazon store. For each one, set:
- activation and the listing language (title, description, bullet points);
- the percentage markup, the fixed amount and the rounding (none, x.99, x.90, next whole number);
- the marketplace minimum price: no price is published below it;
- prices including or excluding tax, and price synchronisation, which you can turn off if you use an Amazon repricer;
- the VAT mode: VAT according to the shop’s rules, or no tax when Amazon collects the VAT. This choice depends on your tax situation: check it with your accountant.
Each card also shows the number of listings online and in error, and the recent orders of that marketplace.

Mapping: categories and product types
A mapping is only needed to create new products on Amazon. A product sold on an existing ASIN, or linked by its EAN, only needs an offer.
In the Mapping tab, map a PrestaShop category to an Amazon product type. A product uses the mapping of its default category or, if there is none, that of the closest parent. The search button queries Amazon by keywords and suggests matching product types.

Once the type is chosen, Load the required attributes reads the product type schema from Amazon. For each required attribute, the editor shows whether it is filled automatically by the module (title, brand, EAN, price…), mapped by you, or still missing, with a “covered” counter. For each missing attribute, choose a source:
- a PrestaShop feature;
- a combination attribute (size, colour, material…);
- a fixed value.
The variation theme (for example SIZE_NAME/COLOR_NAME) groups combinations into a parent-child family; if it is empty, each combination is published as a separate product. Advanced attributes (JSON) remain available for special cases, with the variables {marketplace_id}, {language_tag}, {currency}, {reference}, {ean13}, {mpn} and {brand}.

Publishing products
From the product page
The Modules tab of the product page contains the Amazon block:
- Sell on Amazon enables the product.
- Publication mode: automatic, offer on an existing product (ASIN or EAN) or creation of the full listing.
- Fulfilment: by you (FBM) or by Amazon (FBA).
- ASIN, product type, condition and fixed Amazon price override the default values for this product.
- The product’s minimum price and maximum price: they bound the computed price and are sent to Amazon as seller price limits.
- Marketplaces: untick a country to remove the product from that marketplace.
The “What will be sent to Amazon” table shows, per combination and per country, the price, the sale price and its dates, the price bounds, the Business price and the quantity. A price brought back to a bound is flagged. Listings already online appear with their status and ASIN.

Check with Amazon has Amazon validate the listing without publishing anything. Each error is explained in plain words with the fix to apply, for example an EAN not registered with GS1 or a missing required attribute. Send now, Add to next sync and Refresh status complete the block. A listing already online is updated with a partial update: attributes entered in Seller Central and not managed by the module are not deleted.

In bulk
The Products tab lists the catalogue with, for each product, the FBM or FBA mode, the status per marketplace, the shop stock and the FBA stock. Filter by name, reference, EAN, SKU, ASIN, category or status, tick products or all products matching the filter, then apply a bulk action: enable and publish, republish, send prices, send quantities, disable (quantity 0) or delete from Amazon.

Listings already on Amazon
Link existing Amazon listings requests the report of your listings from Amazon. On the following cron runs, each SKU is linked to the PrestaShop product that has the same SKU, the same reference or the same EAN. SKUs not found are listed in the log.
Amazon SKU
The SKU is created at the first publication according to the chosen setting: reference, EAN13 or pattern (by default PS{id_product}-{id_product_attribute}). A SKU once created never changes, even if the reference changes, and two combinations cannot get the same SKU.
Prices
The price is computed by the module, on the server, in this order: price of the chosen price group, conversion into the marketplace currency, markup and fixed amount, rounding, then bounds. The floor price is the highest of the product’s minimum price, the marketplace’s minimum price and the cost price plus the minimum margin; the ceiling is the product’s maximum price. A zero or negative price is never published, and a minimum above the maximum is rejected with a message.
Options in the Prices section of the settings:
- Price group: the prices of this customer group are the basis for Amazon prices.
- Apply shop discounts: specific prices and catalogue price rules are included in the Amazon price.
- Send shop discounts as Amazon sale prices: the regular price remains the reference price and the discount becomes a dated sale price. A discount created, changed or deleted in PrestaShop updates Amazon; when it is deleted, the sale price is removed from Amazon.
- Minimum margin on cost price: no price is published below the cost price plus this margin, and this floor is sent to Amazon for automated pricing.
- Amazon Business prices: the price of a customer group becomes the Business price, and its quantity discounts become quantity tiers (5 at most). Only for sellers registered with Amazon Business.

Stock and FBA
Each PrestaShop stock movement queues the product for sending, for each marketplace where the listing is online. Settings: safety stock (units kept off Amazon), maximum quantity, handling time, quantity 0 for disabled products and a full daily resynchronisation. A negative quantity is sent as 0.
Products in FBA do not receive a quantity from PrestaShop. Read FBA stock fetches every hour the quantity available in Amazon’s warehouses, shown in the product list and on the product page; Copy FBA stock to PrestaShop applies it to the shop stock for products in FBA.
Cron task
The synchronisation runs through a cron task, ideally every 5 to 15 minutes. The Cron task section of the settings shows the token-protected URL and the command-line command:
php /path/to/modules/dfamazonconnector/cron.php --shop=1
Two runs never overlap: a lock prevents a second run from starting while the first one is running. On each run, the module imports orders, confirms shipments, sends invoices, cancellations and refunds, reads refunds and FBA stock, anonymises buyer data that has reached its due date, then sends pending listings, stock and prices as grouped feeds. When Amazon limits the number of calls, the module waits and retries, within a time limit per run. The New token button invalidates the old URL.

Dashboard
The dashboard shows active listings and listings in error, Amazon orders of the last 14 days in FBM and FBA, pending tasks, the most frequent listing errors with their fix, the health of each marketplace and the history of the latest synchronisations, with the number of calls throttled by Amazon and of errors. A banner warns you when the cron has been stopped for more than one hour.

Queue and errors
The Queue & errors tab counts tasks by type (listings, prices, stock, invoices, cancellations, refunds) and by status. Errors are grouped by cause: each group gives the explanation, the fix to apply and a link to the relevant screen. Retry or delete tasks in batches, and view the latest feeds and reports sent to Amazon.

Orders
Orders are read with the Orders v2026-01-01 API from the chosen start date. An order pending payment is stored without being created; it is imported as soon as Amazon moves it to unshipped. The import is idempotent: a lock per Amazon order and the order number saved as the transaction ID prevent any duplicate order, even if two crons run or a run stops halfway.
Each imported order creates or reuses a guest customer (one per buyer, or a single customer for all Amazon orders), without newsletter or partner offers, a shipping address and a PrestaShop order with the Amazon carrier, the Amazon prices and shipping costs and, optionally, the Amazon purchase date. Orders to a country disabled in your shop are imported without enabling that country. The invoice is numbered by PrestaShop according to your usual numbering and is never renumbered.
FBA orders are imported once shipped by Amazon, with their dedicated status. With the “FBA orders do not change shop stock” option, the quantity is returned to stock after creation: it is never decremented twice.

The Orders tab lists Amazon orders with the filters “To ship”, “Cancellation requests”, “Import errors”, “FBA” and “Refunded”. An order that was not imported shows the cause and the fix (unknown SKU, currency not installed, country not configured…) and a Retry button.

Shipments, invoices, cancellations and refunds
The Amazon block of the order page groups all the actions on the order.
- Shipment: when the order gets one of the statuses chosen in the settings, the module sends Amazon the carrier code, the tracking number and the ship date. Amazon requires a tracking number: without one, nothing is sent and the block tells you so. The carrier mapping table maps each PrestaShop carrier to an Amazon code; change the order’s carrier before shipping so that the right code is sent. The Confirm shipment now button saves you waiting for the cron.
- Invoice: if you use Amazon’s VAT Calculation Service with uploading your own invoices, the PrestaShop PDF invoice is uploaded after the shipment confirmation. Its status (sent, pending, rejected) appears on the order. Amazon rejects the upload if automatic generation of its invoices is enabled in Seller Central.
- Refund: refund all or part of the order, item by item, with a reason from the Amazon list. The amount cannot exceed what was paid. Amazon refunds the buyer, then the refund is read back and noted on the order.

When a buyer requests the cancellation of an unshipped order, a red alert is displayed in the list and on the order, with the reason. Do not ship: cancel on Amazon from the block, or enable Cancel on Amazon when the order is canceled in PrestaShop. A cancellation requested by the buyer is sent with the BuyerCanceled reason. Conversely, an order cancelled on the Amazon side moves to the chosen cancellation status, without an e-mail to the customer.

With Read Amazon refunds, refunds made in Seller Central are read through the Finances API and noted on the PrestaShop order. When all units are refunded, the order moves to the chosen status.
Buyer data
The Buyer data section of the settings applies Amazon’s rules on personal data:
- Anonymise buyer data after (days): the buyer’s name, street, postcode, phone number and e-mail are replaced this number of days after shipment (30 by default on a new installation). Country, city, company, amounts and invoices are kept. Amazon’s data protection policy asks you not to keep this data for more than 30 days after delivery, unless required by law. Download your invoices beforehand if you need to regenerate them.
- Block shop e-mails to Amazon buyers: PrestaShop confirmations, invoices, status changes and marketing e-mails are not sent to Amazon buyers. Amazon handles communication with the buyer; your own order alerts keep arriving.
- Keep logs (days): logs never contain buyer personal data or credentials.

Alerts and logs
The daily alert e-mail goes to the chosen recipients, only when there is something to do: cancellation requests, unconfirmed orders, orders not imported, rejected invoices, listings in error, rejected feeds, stopped cron. The Logs tab keeps each operation with its technical details, and can be filtered by level and by channel.
Employee permissions
The module respects the employee profile’s permissions on the Amazon Connector tab. A read-only profile can view everything but cannot change settings or credentials, nor send a cancellation, a refund or a publication; the interface shows this.
Troubleshooting
The connection test fails
Check the region, the LWA client ID, the secret and the refresh token. A refresh token belongs to one application and one account: generate a new one after any change to the application’s roles.
A listing is in error
Open Queue & errors or the product page: each Amazon error is explained there with the fix. Code 90220 indicates a missing required attribute, to be completed in the mapping; code 90188 an EAN that is not recognised. Use Check with Amazon to validate the fix before sending.
An order is not imported
The cause is shown in the Orders tab. The most frequent case is an Amazon SKU that matches no product: link the existing listings or correct the reference, then click Retry. Also check that the marketplace currency is installed in PrestaShop.
Stock or prices are not updated
Check the latest synchronisation on the dashboard and the pending tasks. Updates are sent on the next cron run and Amazon processes them within a few minutes. To force a full send, use Resend all quantities.
Limitations
- The module has been tested against a simulator that follows the SP-API documentation: run a first test on a few products before publishing the whole catalogue. The module guarantees neither sales nor compliance with Amazon policies: you remain responsible for your listings, your VAT and data protection on your hosting.
- The required attributes vary by product type and marketplace: the coverage shown depends on the last time the schema was loaded.
- An order shipped in several parcels is not confirmed line by line: all lines are confirmed together.
- The cron remains necessary; the module does not use Amazon notifications.