Dokumentation
Entwickler-HubAPI-StatusUnterstützung

Verkaufspartner-API-Apps autorisieren

SP-API-Apps autorisieren

The authorization model for the Selling Partner API is based on Login with Amazon, Amazon's implementation of OAuth 2.0. In this model your application is authorized through interactions with pages displayed by Amazon and by your website. The web browser is the user-agent that passes parameters between your website and Amazon at each selling partner action. To implement OAuth authorization you must configure your website to (1) accept and process the parameters that Amazon passes to it, and (2) redirect the web browser and pass parameters to Amazon.

Wie wird meine App autorisiert?

  • Öffentliche Apps für Verkäufer: Apps, die öffentlich verfügbar sind und von Verkäufern autorisiert wurden. Diese Apps können mit den folgenden Methoden autorisiert werden:

  • Öffentliche Apps für Anbieter: Apps, die öffentlich verfügbar und von Anbietern autorisiert sind. Diese Apps können mit der folgenden Methode autorisiert werden:

  • Private Apps für Verkäufer oder Anbieter: Apps, die nur für Ihre Organisation verfügbar sind. Dies können Verkäufer- oder Anbieter-Apps sein. Diese Apps können mit der folgenden Methode autorisiert werden:

📘

Hinweis

You can call Grantless operations without explicit authorization from a selling partner.

For more information, refer to Terminology.

Einen OAuth-Autorisierungs-URI erstellen

Ein OAuth-Autorisierungs-URI ist eine wichtige Komponente für das Erstellen und Testen von API-Autorisierungsworkflows für Verkaufspartner. Der OAuth-Autorisierungs-URI leitet einen Browser zu einer Amazon-Zustimmungsseite weiter, auf der Sie oder ein Verkaufspartner Ihrer App die Zustimmung geben können, Aufrufe an die Verkaufspartner-API zu tätigen.

If a selling partner authorizes your application starting from your own website using the Website authorization workflow, then your website uses an OAuth authorization URI to redirect the selling partner to the Amazon consent page. Even if a selling partner authorizes your application starting from the Selling Partner Appstore, the Selling Partner appstore authorization workflow, you still need an OAuth authorization URI to test your authorization workflow in draft status before creating a live listing in the Selling Partner Appstore.

Bei der Erstellung eines OAuth-Autorisierungs-URI werden Apps in zwei Typen gruppiert:

  • Alle öffentlichen Apps und Private Verkäufer-Apps: Dies können sein: (1) Apps, die öffentlich verfügbar sind und von einem Verkäufer oder einem Anbieter autorisiert wurden, und (2) Verkäufer-Apps, die nur Ihrer Organisation zur Verfügung stehen und selbst autorisiert sind.

  • Private Anbieter-Apps: Apps von Anbietern, die nur Ihrem Unternehmen zur Verfügung stehen und eigenständig autorisiert sind.

In den folgenden Verfahren wird je nach App-Typ erklärt, wie ein OAuth-Autorisierungs-URI erstellt wird.

📘

Hinweis

Sie finden die Anwendungs-ID hinter dem Anwendungsnamen auf der Entwicklerkonsole.

Einen OAuth-Autorisierungs-URI für öffentliche Verkäufer-Apps erstellen

  1. Get the Seller Central URL for the marketplace where you want selling partners to authorize your application. Refer to Seller Central URLs for a list of URLs by marketplace. Example: https://sellercentral.amazon.com

  2. Kombinieren Sie die Seller Central-URL mit /apps/authorize/consent?application_id={your application ID}.

    Beispiel: https://sellercentral.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28

Einen OAuth-Autorisierungs-URI für öffentliche Verkäufer-Apps erstellen

  1. Get the Vendor Central URL for the marketplace where you want selling partners to authorize your application. Refer to Vendor Central URLs for a list of URLs by marketplace. Example: https://vendorcentral.amazon.com

  2. Kombinieren Sie die Vendor Central-URL mit /apps/authorize/consent?{your application ID}.

    Beispiel: https://vendorcentral.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28

You must construct OAuth authorization URIs for the marketplaces in which selling partners will authorize your application. For example, if a seller has a Seller Central account for Mexico, they will need an OAuth authorization URI for Mexico (example: https://sellercentral.amazon.com.mx/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28) to initiate authorization of your application. Authorizations are regional. When the authorization is complete, your application will have access to the seller's account in any marketplace in the North America region. The same concepts apply to vendors using Vendor Central. You can use the GetMarketplaceParticipations API to discover the active marketplaces for a selling partner.

Wenn Sie einen OAuth-Autorisierungs-URI zum Testen Ihres Autorisierungsworkflows erstellen, fügen Sie den Parameter version=beta hinzu. Dies weist darauf hin, dass der Autorisierungsworkflow für eine App im Entwurfsstatus gilt. Beispiel: https://sellercentral-europe.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28&version=beta

For information about creating and testing an authorization workflow, refer to Selling Partner Appstore authorization workflow and Website authorization workflow.


Hat Ihnen diese Seite weitergeholfen?