APIs & Integrations

eibach-cv
Contributor

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

I'm tyring to send a LINE_ITEM sync request, but I'm getting an error that I need to include the hs_asssoc__product_id field.

{
    "storeId": "eib-wsm",
    "objectType": "LINE_ITEM",
    "externalObjectId": "63979",
    "hubspotId": null,
    "lastProcessedAt": 1604959697554,
    "errors": [
        {
            "portalId": 8172849,
            "storeId": "eib-wsm",
            "objectType": "LINE_ITEM",
            "externalObjectId": "63979",
            "changedAt": 1604959696759,
            "erroredAt": 1604959697112,
            "type": "MISSING_REQUIRED_PROPERTY",
            "details": "Message missing required fields [hs_assoc__product_id]",
            "status": "OPEN"
        }
    ]
}

How would I get this data and include it in my request if its an id generated by HubSpot?

{
            "storeId": "eib-wsm",  
            "objectType": "LINE_ITEM",  
            "messages": [    
                {      
                    "action": "UPSERT",      
                    "externalObjectId": \"""" + item.get("ItemID") + """\",      
                    "properties": {        
                        "quantity": \"""" + item.get("Quantity") + """\",
                        "price": \"""" + item.get("UnitPrice") + """\",
                        "name": \"""" + item.get("DealerCode") + """\",
                        "hs_assoc__product_id": "??????"
                    },       
                    "associations": {
                        "DEAL": [
                            \"""" + order["Id"] + """\"
                        ]
                    }   
                }
            ]
        }

 

0 Upvotes
5 Replies 5
eibach-cv
Contributor

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

@rowan-reid @himanshurauthan just wanted to ping you guys to try and find a solution. This step is still holding us back from getting needed data into Hubspot.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

@eibach-cv ,

Going to tag in a few people to see if they have some thoughts on this 😀

@rowan-reid , @himanshurauthan  any thoughts on this?

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

Hey @eibach-cv ,

Sorry for delayed response!  Are you still having issues here?

0 Upvotes
eibach-cv
Contributor

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

@dennisedson  Still having this issue, please assist when possible.

0 Upvotes
eibach-cv
Contributor

LINE_ITEM sync error: Message missing required fields [hs_assoc__product_id]

Is this the correct id?

eibach-cv_0-1604960524349.png

 

0 Upvotes