Selling Partner APIアプリケーションの認証
SP-APIアプリを認可する
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.
私のアプリケーションはどのように認可されるのですか?
-
出品者向けパブリックアプリケーション: 一般公開され、出品者によって認可されたアプリケーション。これらのアプリケーションは、以下の方法で認可できます。
- Selling Partner Appstore authorization workflow An OAuth authorization workflow initiated from the Selling Partner Appstore detail page.
- Website authorization workflow An OAuth authorization workflow initiated from your own website.
-
ベンダー向けのパブリックアプリケーション: 一般に公開され、ベンダーによって認可されたアプリケーション。これらのアプリケーションは次の方法で認可できます。
- Website authorization workflow An OAuth authorization workflow initiated from your own website.
-
出品者またはベンダー向けのプライベートアプリケーション: 貴社のみが使用できるアプリケーション。これらは出品者アプリケーションまたはベンダーアプリケーションです。これらのアプリケーションは、以下の方法で認可できます。
注
You can call Grantless operations without explicit authorization from a selling partner.
For more information, refer to Terminology.
OAuth認可URIを作成する
OAuth認可URIは、Selling Partner APIの認可ワークフローを作成およびテストするための重要なコンポーネントです。OAuth認可URIは、ブラウザーをAmazonの同意ページにリダイレクトします。このページでは、出品者または出品パートナーが出品者のアプリケーションに、Selling Partner APIを呼び出すことを許可できます。
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.
OAuth認可URIを作成する場合、アプリケーションは次の2つのタイプにグループ化されます。
-
すべてのパブリックアプリケーションとプライベートな出品者アプリケーション: これには、(1)一般公開されていて出品者またはベンダーによって認可されたアプリケーション、および(2)貴社のみが利用でき、自己認可された出品者アプリケーションがあります。
-
プライベートなベンダーアプリケーション: 貴社のみが使用でき、自己認可されたベンダーアプリケーション。
以下の手順では、アプリケーションの種類に応じて、OAuth認可URIを作成する方法について説明します。
注
開発者コンソールのアプリケーション名の後に、アプリケーションIDが表示されます。
出品用パブリックアプリケーションのOAuth認可URIを作成する
-
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
-
セラーセントラルURLを
/apps/authorize/consent?application_id={your application ID}
と組み合わせます。例:
https://sellercentral.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28
パブリックなベンダーアプリケーション用のOAuth認可URIを作成する
-
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
-
Vendor Central URLを
/apps/authorize/consent?{your application ID}
と組み合わせます。例:
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.
認可ワークフローをテストするためのOAuth認可URIを作成する場合は、version=betaパラメーターを追加します。これは、認可ワークフローがドラフト状態のアプリケーション用であることを示しています。例: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.
Updated 7 months ago