Deal to Contact association API returns wrong objectIDs

I am trying to get contact associations with a given dealID and the API returns wrong contactIDs.

When I send

https://api.hubapi.com/crm/v3/objects/deal/5771682053/associations/contact

I get

{“results”:[{“id”:“1101”,“type”:“deal_to_contact”},{“id”:“1755”,“type”:“deal_to_contact”},{“id”:“2001”,“type”:“deal_to_contact”},{“id”:“2151”,“type”:“deal_to_contact”}]}

And thoses IDs are not contacts.

I also tried

/crm/v3/associations/deal/contact/batch/read and even version 1

V1/crm-associations/v1/associations/5771682053/HUBSPOT_DEFINED/3 with the same result.

Deal to company associations work fine

Hi @IP8

Thank you for reaching out.

I want to tag some of our experts on this - @JBeatty @himanshurauthan @tjoyce do you have any thoughts on this for @IP8 ?

Thank you!

Best

Tiphaine

Hello @IP8,

Can you please make sure that you are checking for the correct deal?

Because we are using this API a lot and it works as expected for us.

Regards,

Hi @IP8,

I went ahead and made the same call on a test portal and got this response:

{
 "results": [
 {
 "id": "6901",
 "type": "deal_to_contact"
 }
 ]
}

And looking at this response the “6901” is the ID of the assocaited contact. If you take those ID’s that you recieved and tried searching for them directly within the HubSpot search do see any of the contacts show up?

Yes, it all works fine now. It must be just me :roll_eyes:

Thanks for your help