每当我将任何客户从MWS迁移到SP时,我都会遇到“不存在MWS授权”错误。对我来说,如果我迁移欧盟地区的连接,情况会有所不同,那么它的工作正常。仅面临美国地区连接的问题。
为了获取授予LWA访问令牌(代码),我使用了 https://sallingpartnerapi- {customer.gregion} .amazon.com/oferations/verization/v1/oferationcode
正常工作。
要交换刷新代币的代码,我使用卖方 mwsauthtoken
, sallingPartnerId
,以及我的 devalederId
与卖方区域关联。
此错误的含义是
?
什么
一个。 https://github.com/amzn/amzn/selling-partner-partner-partner-partner-partner-api-api-文档/问题/2252
b。 通过MWS令牌要求授权代码
Whenever I am migrating any customer from MWS to SP I am getting "No MWS Authorization exists" error. For me the situation is different If I migrate the EU region connection then its works fine. Only facing issues with US region connections.
To get the grantless LWA access token (code) I used the https://sellingpartnerapi-{customer.region}.amazon.com/authorization/v1/authorizationCode
which works fine.
To exchange the code for a refresh token I use the seller mwsAuthToken
, sellingPartnerId
, and my developerId
associated with the seller region.
What is the meaning of this error:
[{'code': 'InvalidInput', 'message': 'No MWS Authorization exists', 'details': ''}]
Related questions with no answer:
a. https://github.com/amzn/selling-partner-api-docs/issues/2252
b. Amazon SP-API : Getting No MWS Authorization exists when requesting authorization code via MWS token
发布评论
评论(1)
有关此的文档在整个地方都散布,诚然很难找到。您在URL中提到了更改{customer..region},如果它适用于欧盟,那么您可能会正确获得迁移令牌,因此,听起来像是欧盟与我们唯一剩下的不同的是在我们中使用的区域授权签名。
欧盟地区卖家使用
eu-west-1/execute-api
。美国卖家使用us-east-1/execute-api
。另外,您拥有它:
https://github.com/ AMZN/SELLING-PARTNER-API-MODELS/TREE/MAIM/MODEL/授权-API-MODEL 。
The docs on this are spread all over the place and admittedly a bit hard to find. You mentioned changing {customer.region} in the url, and if it's working for EU, then you're probably getting the migration token properly, so it sounds like the only thing remaining different from EU to US is the region being used in the authorization signature.
EU region sellers use
eu-west-1/execute-api
. US sellers useus-east-1/execute-api
.Also, so you have it:
https://github.com/amzn/selling-partner-api-models/tree/main/models/authorization-api-model.
https://developer-docs.amazon.com/sp-api/docs/sp-api-endpoints