Reputation: 19
we are developing an web app for our customer which let their customers to integrate with Amazon (using their own accounts) and takes the information about all orders - especially shipment details. We were trying for several weeks to achieve that based on the SP-API documentation but unfortunately we are stuck with some questions to be clarified as there are plenty of misleading information in the Internet (amazon employees answers!) and the official documentation.
Upvotes: 1
Views: 2060
Reputation: 83
You will need to make api definitions for the customer's account and register with aws. You will create iam role with execute-api permission in aws.
You will request PII authorization from Amazon Developer Profile.
It will be available in the current Market.
The document is a bit complicated, but it's fun when you solve it.
achievements.
Upvotes: 1
Reputation: 61
I agree it can be quite complex, but here are my two cents:
**Shall we have our own Seller Central account or can we use developer account created under our customer's API?**
Yes, we definitely need Seller central account you also gonna need following:
Remember this app client will be used by other third-parties sellers to delegate their account's access to this app. So keep a note of your app clients credentials which includes:
LWA Client ID
LWA Client secret
Application ID/ App ID (important)
Application name
Refresh token (once you authorize your app)
What is the easiest way to provide such gateway -> user utilize Login With Amazon on our website to maintain persistent connection; every time user logs into the application, all orders are taken from the SP-API; user selects orders he'd like to ship and our application passes infromation previously taken from API to our backend which integrates with the delivery services?
This part is perhaps most complex, but here how it goes:
How to prepare Consent url:
$applicationId: amzn1.sp.solution.xxxx-xx-xxxx-xxxx-xx-xxxx-x
$redirect_uri: https://mywebsite.com/callback.php
$version: 'beta'
$state: 'xyz-or-anything'
https://sellercentral.amazon.com/apps/authorize/consent?application_id=$applicationId&state=$state&version=$version&redirect_uri=$redirect_uri
Version is important here:
IF you have not published your app on seller central marketplace then you will have to set version as "beta"
for more information, please see: https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#selling-partner-api-sandbox-endpoints
Shall this AMAZON APP be public / available in marketplace?
Yes, But you can authorize "your app" from "Your own seller central", and still be able to make sellers delegate their access to your app and you can do live operations for that seller. Once everything is in place you can go ahead and publish your app on seller central marketplace.
Hope it give some directions.
Upvotes: 6