APIs & Integrations

Not applicable

Must have scope DEAL_LINE_ITEM_READ

I'm getting this error as I list Line Items. This was authenticated via an hapikey.

{"status":"error","message":"Must have scope DEAL_LINE_ITEM_READ","correlationId":"d2165db2-5793-4c52-a4de-7d1df2c151a8","requestId":"24068fba164296d62eb79bf7b8bdeabb"}

Looks like it's an issue on your side that relates to these tickets, yes?

Hello, I am trying out the new Products API via the demo account. I am able to retrieve products, but not create them. This is my request : POST https://api.hubapi.com/crm-objects/v1/objects/products?hapikey=demo [ { "name": "name", "value": "test" } ] And this is the error response I get : "Must have scope INBOUNDDB_PRODUCT_LIBRARY_WRITE"

0 Upvotes
5 Replies 5
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Must have scope DEAL_LINE_ITEM_READ

Hi @NickMontagu,

It is possible to implement an Ecommerce Bridge API without Sales Pro; the Ecommerce Bridge API technically only requires the integration-sync scope. The CRUD methods of the Products API can only be accessed by a portal with Sales Pro, but an integration with the integration-sync scope can create products by sending sync messages.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Must have scope DEAL_LINE_ITEM_READ

Hi @liz,

You should be all set; it looks like it was related to the same scoping issue mentioned in that other thread. The test portal in question has access to Sales Pro (and by extension, line items).

NickMontagu
Member

Must have scope DEAL_LINE_ITEM_READ

Hey Derek,

Is it possible to implement ecomm bridge without sales pro (access to products, line items seems dependant on it)

Nick

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Must have scope DEAL_LINE_ITEM_READ

Hi @liz,

Possibly, but that isn't necessarily related. Can you give me your Hub ID, and the request you're trying to make?

0 Upvotes
Not applicable

Must have scope DEAL_LINE_ITEM_READ

@Derek_Gervais
Hub ID: 4566744
curl -X GET https://api.hubapi.com/crm-objects/v1/objects/line_items/paged?hapikey=<HAPI_KEY>

Also, do you mind replying and adding our test portal the access for Products API? Here's the link: How to access the Products API to create products

The thread has accumulated with several responses awaiting your action. Thanks.

0 Upvotes