Need Help on how to update Amazon MWS Settings to work with the new Amazon SP-API

Hello Guys, I would appreciate some guidance on how to go about setting up the Amazon-ERPNext connector using the new SP-API, since according to Amazon support they are no longer granting new MWS credentials…


image

Here is the link to the Selling Partner API Developer Guide.

With the new guide on creating and authorizing a new app, one gets a refresh token rather MWS credentials.

I don’t mind effecting the changes on the current code with the correct guidance on how to go about it and also update the current documentation on the same.

Hi, I am also facing the same issue. Did you find a solution to the problem?

Thank you.

All I can do is point you a bit: Buried in this long thread is a reference to “SP-API is already implemented in separate app”. It references the e-commerce integration but I think that MIGHT be v14. ← sorry that I can’t confirm or be of more help.

2 Likes

Hi,

Find the updated docs - here

Steps to get the credentials:

  1. Register/Login to Amazon AWS.

  2. Create and configure IAM policies and entities.

  3. Go to Roles > [YOUR ROLE NAME] (AmazonMWS in my case). You will get IAM ARN.


  4. Go to Users > [YOUR USER NAME] > Security Credentials and click on Create access key to get AWS Access Key and AWS Secret Key.

  5. Now, Register/Login to Amazon Selling Partners.

  6. Select a Merchant and Marketplace, and you will be redirected to Amazon Seller Central.

  7. Go to Partner Network > Develop Apps.

  8. Click on Add new app client, fill in the details(IAM ARN from step 3) and click on Save and exit.

  9. Click on View in LWA credentials column, you will get Client ID and Client Secret.

  10. Go to Actions > Authorize and then click on Authorize app to get the Refresh Token.

4 Likes

Thank you so much @Sagar_Sharma for the detailed instructions, I really appreciate it.

2 Likes

UPDATE: Nevermind I found it

I have installed the module as per the docs but I am unable to find it in the erpNext, am I missing something here?

I am using erpNext v13 BTW.

1 Like

@pmc_shivam you need to install the app: GitHub - frappe/ecommerce_integrations: Ecommerce integrations for ERPNext

it’s not in core erpnext

1 Like

Yes, thank you.

Thank you for the detailed instructions - just what I needed for the testing the integration.

Will appreciate some clarifications:

  • Assuming that we would be able to / need to get unique credentials for each marketplace under the seller account? For example separate sync for India and separate sync for USA marketplaces? In the backend on ERPnext - we could use those unique credentials for different ERPNext websites or different companies and warehouses within same website? Wow (if true!).

  • Docs suggest to create a separate accounting head to track the Amazon commissions and fulfillment costs. Are those pulled automatically by the App? Are they sorted by category or lumped under one account?

  • Amazon allows roles for accounting and inventory etc. Within ERPNext documentation - I notice that we can only sync orders and items. What about inventory and shipments? If FBA - does the app create a shipment for those orders? What about inventory replenishment from company warehouse to Amazon warehouse? How to setup / manage that?

Appreciate any guidance on how to setup. Thanks again for your time and courtesy.