APIs & Integrations

Cloud-elements
Member

Unable to Call line_items API endpoint even though account has a Sales Enterprise Trial License

Hi Experts,

 

We are unable to add line_items API endpoint. We are getting the error as follows: 

"400 - Must have scope deal-line-item-read - Bad Request"

 

I had dug a bit and found that line_items endpoint is accessible only with Sales Pro and Enterprise accounts as per this link: 

 
But, the account being used already has a sales enterprise trial license in place
 
Looking forward for help on this
0 Upvotes
1 Reply 1
cathalhopper
HubSpot Employee
HubSpot Employee

Unable to Call line_items API endpoint even though account has a Sales Enterprise Trial License

Hi @Cloud-elements ,
I hope you're keeping well! Could you clarify which endpoint your attempting this with?

 

This can still happen if the scope is not activated which is done by assigning a sales pro/ent seat, however I can see that has been assigned so it should be unrelated!

I'd like to test this further with the same endpoint you are using, when I attempt this with https://legacydocs.hubspot.com/docs/methods/line-items/get-all-line-items for example it works okay!

Best,

Cathal

0 Upvotes