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
611 stars 733 forks source link

400 Bad Request An unknown scope was requested #1082

Closed wolendranh closed 3 years ago

wolendranh commented 3 years ago

Hi!

Following documentation I am trying to implement "Login with awazon" button. I am using JS SDK. I am getting error when requesting "profile" scope.

   document.getElementById('LoginWithAmazon').onclick = function() {
          options = { scope:'profile', response_type: 'code' };
          options.scope_data = {
            'profile' : {'essential': false}
            };
          amazon.Login.authorize(options, function(response) {
            if ( response.error ) {
              alert('oauth error ' + response.error);
              return;
            }
            console.log(response)

Am I requesting wrong scope?
I was looking for list of scopes for selling-partner-api, but found none. Can someone help me with such list and this error?

pprbhm commented 3 years ago

Hi, Scope specific requests can be handled by Developer support team by submitting a support case.