amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
585 stars 730 forks source link

OAuth authorization URIs for non-NA and non-EU marketplaces? #1056

Closed moltar closed 2 years ago

moltar commented 3 years ago

Describe the improvement

Seller Central URL for OAuth authorization aren't very clear.

By the docs, it sounds like every marketplace that is not part of "Spain, UK, France, Germany, and Italy" should be using NA URI.

Maybe that is intentional, but it is definitely confusing.

Because there are more countries in the EU. But there are also countries outside of EU and NA.

URL of the content on GitHub

https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#oauth-authorization-uris

Description of what the documentation currently says

Note. For sellers who sell in the Spain, UK, France, Germany, and Italy marketplaces, you can use the Seller Central URL for Europe when creating an OAuth authorization URI. Example: https://sellercentral-europe.amazon.com/apps/authorize/consent?application_id=amzn1.sellerapps.app.0bf296b5-36a6-4942-a13e-EXAMPLEfcd28

Description of what the documentation should say

There should probably be a clear table, like for regions, for each marketplace and the OAuth link.

Screenshots

N/A

Additional context

N/A

Syntaf commented 3 years ago

I'm in the same boat as you @moltar, I don't quite understand what URLs we should be using for sellers outside of Europe and North America.

I found this link which at first seems to answer the question:

https://sellercentral.amazon.com/gp/help/help.html?itemID=G201062890&language=en_US

What's weird however is that these URLs don't match the documentation. For example The docs say to use https://sellercentral-europe.amazon.com but the link above specifies the European markets under https://sellercentral.amazon.co.uk. There's also far more regions listed compared to the documentation.

So how exactly do we build OAuth URLs for regions outside of Europe?

zhanglaoye commented 3 years ago

I have the same problem, I want to know how to authorize the Middle East and Australia, Singapore

zhanglaoye commented 3 years ago

According to the document, Japan, Australia, and Singapore belong to fe. After I authorize Japan, I will report an error Invalid Input when I visit Australia.

AmichayMiara commented 3 years ago

Same confusion

github-actions[bot] commented 2 years ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.