Hi Community,
I’m trying to associate a line item to a deal using the CRM v4 associations API.
The API responds with 200 OK (success) but the association is not created in the CRM.
API Call Used
PUT https://api.hubapi.com/crm/v4/objects/deals/{dealId}/associations/line_items/{lineItemId}
Request body:
[ { “associationCategory”: “HUBSPOT_DEFINED”, “associationTypeId”: 20 } ]
What works
-
The request succeeds with 200 OK
-
No validation errors
-
Private App token has full CRM scope
✘ What doesn’t work
-
The line item is not visible under the deal
-
The deal is not visible under the line item
-
Association never appears, even after a few minutes
What I’ve checked-
The dealId and lineItemId are valid
-
The line item and deal both exist
-
Testing via:
-
Custom Code Action
-
Postman
-
HubSpot API Test Console
-
Same result everywhere (success but no actual association)
### 💡 **Note** This issue started only recently — previously the same pattern worked. ### ❓ **Questions**-
Is associationTypeId = 20 still valid for deal ↔ line_item?
-
Has HubSpot changed association logic for line items (especially with the new Commerce updates)?
-
Why would the API return success but not write the association?
Any help or confirmation would be appreciated.
-
-
-
-