Upsert ecommerce settings oAuth or just plain API

Highlighted
Occasional Contributor

https://developers.hubspot.com/docs/methods/ecommerce/v2/upsert-settings
 
Reading this I am not sure is it possible to use only oAuth for settings, I have working tokens and use other endopints with it without a problem, but when I try this one, I get

"has not authorized the required scopes to complete this action, requires any of the following: [portal-developers-access, developers-access].  Visit https://developers.hubspot.com/scopes for more information"

And if I do add "portal-developers-access, developers-access" to scope I can't get the tokens as I get
"An invalid scope name was provided. Please contact the integrator."
(also https://developers.hubspot.com/scopes is 404 )

If I use just api key without oAuth I can use this endopint but its kind of confusing as I need to have 2 systems to access endpoints, one is with apikey and the other is with oAuth. Would like to access all with oAuth, is this possible and how?


Reply
0 Upvotes
2 Replies 2
Highlighted
Regular Advisor | Gold Partner

Hello @MarkB2B 

 

The required scope for using https://developers.hubspot.com/docs/methods/ecommerce/v2/upsert-settings endpoint is integration-sync

 

Please try to authorize your APP once with HubSpot with this scope and then hit the above endpoint.

 

Hope it helps.

 

Thankyou

Digital Marketing & Inbound Expert In Growth Hacking Technology
Highlighted
Occasional Contributor

That is exactly what I am doing, this below is URL that I have when authorizing, you can clearly see there is the scope you mentioned in it. But I get the problem I wrote

https://app.hubspot.com/oauth/authorize?client_id=27e5697d-c3bb-4622-8130-3d5532ebb818&redirect_uri=...

Reply
0 Upvotes