Amazon SP API Integration ERPNext version 15

I am trying to connect Amazon SP API with ERPNext Version 15
Is there a a documentation of where i can find all the required credentials?

Please check the documentation but no idea if it worked in v15 or not.

Thanks
Enter the IAM ARN, Refresh Token, Client ID, Client Secret, AWS Access Key, AWS Secret Key and Country.

this is what the documentation says and I have added them but the sync order button makes no change to the Sales Order count nor are my new products syncing

Wanted to get a better understanding about this

Thanks in advance

Hi Karim,

I have same issue. Sync order button makes no change to the Sales order page.

Did you find any solution for this issue?

Look at the codebase. It does not take in consideration x-amzn-RateLimit-Limit . Amazon SP-API is very strict when calling their API on rate limit and also Financial Events.

  • You can call an endpoint every 2 seconds in my case, otherwise it will throw SellingApiBadRequestException or SellingApiRequestThrottledException
  • Look at the Transaction on Amazon Seller Central. If the transaction is in Deferred status, then you cannot sync it. The Financial Events endpoint won’t return anything.

I had to implement the code myself.

  • Make sure that you call endpoints based on x-amzn-RateLimit-Limit. Example 0.5 means that you have to call every 2 seconds.
  • Keep the list of un-synced orders in a list in DB.
  • Run every night. First start with un-sycned orders, then the rest.

My code is not perfect and needs improvements because it still throws SellingApiRequestThrottledException often and I am not sure how to find a solution despite the fact that I run time.sleep() 2 or 3 seconds more that it’s required.

1 Like