I'm getting this error as I list Line Items and its properties.
Exception: Request failed for https://api.hubapi.com returned code 400. Truncated server response: {"status":"error","message":"Must have scope deal-line-item-read","correlationId":"cb02b012-5675-4aae-b23f-d8d4f6d99f7d","requestId":"5a611ac1-408c... (use muteHttpExceptions option to examine full response)
Authentication Code:
var CLIENT_ID = 'client_id_hidden'; // Enter your Client ID
var CLIENT_SECRET = 'client_secret_hidden'; // Enter your Client secret
var SCOPE = 'contacts%20oauth'; // scope
var AUTH_URL = 'https://app.hubspot.com/oauth/authorize';
var TOKEN_URL = 'https://api.hubapi.com/oauth/v1/token';
var API_URL = 'https://api.hubapi.com';
This is truly strange. On my end, I'm able to see that portal 5523720 has the deal-line-item-read scope. Additionally, I note that user (komal.bhxxx@sxxxxx.com) who installed the app has super admin, sales enterprise and service enterprise roles. Hence, I wouldn't expect to see the "Must have scope deal-line-item-read" error.
In this case, can we try re-auth app 211494 on portal 5523720 and see if the error continues?
I re-auth the app the issue still unresolved and gives me the same error. Additionally I tried adding scope='deal-line-item-read'; as well but still no luck.