This thread is out of date. New test accounts created from the "Testing" dashboard of a Developer Account now include a Sales Professional trial by default. If the accounts you've listed do not currently have Sales Professional access, you should be able to click "Renew" from the "Testing" dashboard to update the accounts.
Thank you for your kind guide and code. Yes, when I've added a super admin permissions for my website I still faced issues in some areas of my website page like Blooket hacks. Kindly please guide me more about it.
The new OAuth documentation has been updated to reflect the fact that POST requests to the oauth/v1/token endpoint should have data in an x-www-form-urlencoded format:
It looks like you included a comma (,) after the "grant-type" key instead of a colon (:) and are missing a comma after "redirect_uri": "https://localhost" and the "code" key.
Thank you a lot for your answer. Yes, when I've added a super admin permissions for my account, I've finally got the Auth Code but now I see this error when I trry to obtain new access token:
[pvavilin@hdp02 ~]$ curl --request POST --url https://api.hubspot.com/oauth/v1/token --header 'Content-Type: application/x-www-form-urlencoded;charset=utf-8' --data '{"grant_type", "authorization_code", "client_id": "1252...", "client_secret": "b270...", "redirect_uri": "https://localhost" "code": "4c18..."}'
{"status":"BAD_GRANT_TYPE","message":"missing or unknown grant type","correlationId":"ee8f3e88-50e7-4810-bc42-ca62474190dd"}
Did I do something wrong or it is because an error you dig to with your team?
There seems to be an issue on our side where your user still lacks some granular permissions to view unassigned custom object records and those owned by your team even though your user has permission to "view all" custom objects.
I was able to replicate this error in my own account. I will have to dig in a bit more with my team to resolve the matter. In the meantime, a super admin in your account will be able to successfully connect the app. Apologies for the inconvenience. I will be in touch once I better understand the cause.
That error is expected for developer account 6908575. Apps cannot be installed in developer accounts since they lack the CRM, Marketing Hub, Sales Hub, and Service Hub tools.
For the production account ending in 8110, it seems that your user does not have full custom object read permissions. If a super admin grants your user access to view all custom objects, you should be able to connect 209264 successfully. This permission toggle is located in Settings > Users & Teams > [User] > Contacts > Custom Object Access > ViewEverything.
If you are still unable to connect the app with this toggled on, please share an updated correlationId to help me troubleshoot further.
Are you encountering this issue with the production account ending in 8110?
If so, I do see that your user has an assigned Sales Hub Professional seat but based on the number of scopes you have selected, several may be out of sync with your user's permissions. Did you receive a correlationId with the error? Can you share that with me and the day the error occurred?
I'm trying to get products but am getting this error: Must have scope inbounddb-product-library-read.
When I'm trying to get line items I'm getting the error: Must have scope deal-line-item-read.
I'v added sales professional license to my account and tryied to re-generate OAuth token and have gotten the error that says that I have no permissions to obtain new token with these scopes:
Account 4686199 is a production account, not a test account. I will only grant Sales Pro access to developer test accounts.
If you have a developer test account to which you would like Sales Pro access added, let me know. Otherwise, you can talk to your account manager or HubSpot sales to upgrade to a Sales Hub Professional subscription.
I do see that your user has the proper in-app permissions.
Are you using an app's OAuth token? If so, could you share the app's ID?
The user who connected the app must have also had a Sales Professional seat when they completed the OAuth flow, otherwise the resulting token will not have the inbounddb-product-libarary-read scope.
If you are trying to use the Get all products endpoint through this app, the integration-sync scope is not sufficient.
To resolve this behavior, mark the e-commerce scope as required in your app's auth settings and complete the OAuth flow again at the new auth URL with a Sales HubProfessional user. It is not necessary to uninstall the integration before reauthenticating.
Hey @Derek_Gervaisand@IsaacTakushi . I hope you are having a good day. I would also like to request Sales Pro access to the following test portals: 5139869 and 5466092.