Set up Amazon ​

The Amazon connector uses the Amazon Selling Partner API (SP-API). It pulls products and orders from the Amazon marketplace and creates Sales Orders in ERPNext.

INFO

The Amazon connector is part of the ecommerce_integrations app. The old Amazon MWS integration inside ERPNext was removed in version 14.

Prerequisites ​

Install the app ​

  • Frappe Cloud: install Ecommerce Integrations from the Frappe Cloud Marketplace in your site dashboard.
  • Hosted by Frappe: raise a support ticket to get the app installed.
  • Self-hosted: run bench get-app ecommerce_integrations --branch main, then bench --site <your-site> install-app ecommerce_integrations. The source code is on GitHub.

Enter the SP-API credentials ​

  1. Open Amazon SP API Settings.
  2. Enter the IAM ARN, Refresh Token, Client ID, Client Secret, AWS Access Key, AWS Secret Key, and Country.

Set the order defaults ​

Set the Company, Warehouse, Parent Item Group, Price List, Customer Group, Territory, Customer Type, and Account Group. The account group holds the commissions, taxes, and other charges that Amazon takes.

Set the sync options ​

  1. In After Date, enter the date from which to sync orders. For a lot of historic data, import small periods, starting with the most recent one.
  2. Select Is Active, and save.

Map Amazon items to ERPNext items ​

The connector finds the ERPNext item of an order line by the ASIN or the seller SKU.

  • If your items already exist, for example from another integration, add a custom field for the ASIN or the SKU to the Item with Customize Form. Then select that field in the Amazon - ERPNext Item Mapping table.
  • To create missing items during the sync, select Create Item If Not Exists.

Sync orders ​

Select Sync Orders to import the orders now. The Amazon orders appear as Sales Orders. You can also schedule the sync.

If your developer account has no access to personal data, the customer name is the buyer name plus the order ID, or the marketplace email address.

WARNING

The connector does not sync cancellations. When you cancel an order in Amazon, cancel the Sales Order and its linked documents in ERPNext yourself.