Payments API - Can't retrieve subscriptions due to scope, despite having said scope.
Hi there,
I'm trying to fetch subscriptions via the Payments API, however I can't list subscriptions due to a scoping issue. The necessary scopes are in fact available for the access token that I'm using, however.
GET https://api.hubapi.com/crm/v3/objects/subscriptions --- -snip- "message": "One or more of the following scopes are required.", "context": { "requiredGranularScopes": [ "crm.schemas.subscriptions.read", "crm.objects.subscriptions.read" ] } -snip-
Payments API - Can't retrieve subscriptions due to scope, despite having said scope.
Hey, @TristanBM👋 Can you confirm you have Payments enabled for this portal, please? The dev test portal I used didn't, and I didn't think about it before I made my original post.
HTTP 403
{
"status": "error",
"message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
"correlationId": "b4f8096c-68f7-4f4b-942d-b8d562cc7737",
"errors": [
{
"message": "One or more of the following scopes are required.",
"context": {
"requiredGranularScopes": [
"crm.schemas.subscriptions.read",
"crm.objects.subscriptions.read"
]
}
}
],
"links": {
"scopes": "https://developers.hubspot.com/scopes"
},
"category": "MISSING_SCOPES"
}
I reported this to the dev doc team. I'll respond here when I get an update for us.