Satış Ortağı API'si Uygulamalarını Yetkilendirme
SP-API uygulamalarını yetkilendirme
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.
Uygulamam nasıl yetkilendirilir?
-
Satıcılar için herkese açık uygulamalar: Herkese açık olan ve satıcılar tarafından yetkilendirilen uygulamalar. Bu uygulamalar aşağıdaki yöntemlerle yetkilendirilebilir:
- 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.
-
Tedarikçiler için herkese açık uygulamalar: Herkese açık olan ve tedarikçiler tarafından yetkilendirilen uygulamalar. Bu uygulamalar aşağıdaki yöntemlerle yetkilendirilebilir:
- Website authorization workflow An OAuth authorization workflow initiated from your own website.
-
Satıcılar veya tedarikçiler için özel uygulamalar: Yalnızca kuruluşunuzun kullanabildiği uygulamalar. Bunlar satıcı veya tedarikçi uygulamaları olabilir. Bu uygulamalar aşağıdaki yöntemlerle yetkilendirilebilir:
Not
You can call Grantless operations without explicit authorization from a selling partner.
For more information, refer to Terminology.
OAuth yetkilendirme URI'si oluşturun
OAuth yetkilendirme URI'si, Satış Ortağı API'si yetkilendirme iş akışlarının oluşturulması ve test edilmesinde önemli bir bileşendir. OAuth yetkilendirme URI'sı, tarayıcıyı bir Amazon izin sayfasına yönlendirir. Bu sayfada siz veya satış ortağı, uygulamanıza Satış Ortağı API'sine çağrı yapma izni verebilirsiniz.
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 yetkilendirme URI'si oluşturulurken uygulamalar iki türe ayrılır:
-
Tüm herkese açık uygulamalar ve özel satıcı uygulamaları: Bunlar, (1) Herkese açık olan ve bir satıcı veya tedarikçi tarafından yetkilendirilen uygulamalar ve (2) Yalnızca kuruluşunuzun kullanabildiği ve kendi kendine yetkilendirilen satıcı uygulamaları olabilir.
-
Özel tedarikçi uygulamaları: Yalnızca kuruluşunuzun kullanabildiği ve kendi kendine yetkilendirilen tedarikçi uygulamaları.
Aşağıdaki prosedürler, uygulama türüne bağlı olarak bir OAuth yetkilendirme URI'sinin nasıl oluşturulacağını açıklamaktadır.
Not
Uygulama kimliğini uygulama adının ardından geliştirici konsolunda bulabilirsiniz.
Herkese açık tedarikçi uygulamaları için OAuth yetkilendirme URI'si oluşturun
-
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
-
Seller Central URL'sini,
/apps/authorize/consent?application_id={your application ID}
ile birleştirin.Örnek:
https://sellercentral.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28
Herkese açık tedarikçi uygulamaları için OAuth yetkilendirme URI'si oluşturun
-
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'sini
/apps/authorize/consent?{your application ID}
ile birleştirin.Örnek:
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.
Yetkilendirme iş akışınızı test etmek için OAuth yetkilendirme URI'si oluşturuyorsanız version=beta parametresini ekleyin. Bu parametre, yetkilendirme iş akışının taslak durumundaki bir uygulama için olduğunu gösterir. Örnek: 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