Associated deals are not reflected quickly.

Actually we are below two apis to create deals with associated contact and getting deals based on the contact.

API:

URL: https://api.hubapi.com/crm/v3/objects/deals

Body:

{

"properties":{

“amount”: “1500.00”,

“dealname”: “Custom data integrations24”,

“pipeline”: “default”,

“closedate”: “2025-12-07T16:50:06.678Z”,

“dealstage”: “qualifiedtobuy”

},

“associations”: [

{

 "to": {

    "id": 51

  },

  "types": \[

    {

      "associationCategory": "HUBSPOT\_DEFINED",

      "associationTypeId": 3

    } ]

}]

}

Here i am creating one deal for the user id 51.

API 2: In this api i an getting all deals associated with the contact id 51.

URL: https://api.hubapi.com/crm/v3/objects/deals/search

Body:

{

“properties”: [ “dealname”, “hubspot_owner_id”, “hs_exchange_rate” ],

“filterGroups”:[{

"filters":\[

            {

      "propertyName": "associations.contact",

      "operator": "IN",

      "values": \["51"]

    }]

}]

}

Problem: Here what my problem is when i quickly call this api after the first create api execution completed, that time i am not receiving the last created deals. Actual problem is deal creating quickly but it taking 3 to 5 seconds to associate with the respective contact. There is a dealy in deal create api to associate with the contact so when i quickly call second api that time results are not having the last saved deal.

Not only for deal, for company creation also the same issue.

So please can you check this and provide any solution for this.

Hi @HDesk5,
Thank you for reaching out to the Community and for your feedback!
From what I can see, it seems that there is a 3 to 5 seconds delay to associate the deal to the contact.
If we speak about minutes, this would be an issue I believe but in terms of seconds, I guess this wouldn’t be uncommon expectation so that it gets time to sync in the system. However, let’s see if we can find a workaround for this!
I’d like to invite a couple of subject matter experts and Community Members to this conversation: Hi @carruthd, @RajeshSV, @sgupta046, @SteveHTM, @chewmon34, @sgupta046, @zach_threadint and @MBERARD do you have workarounds to share to help @HDesk5, please?
Also, if anybody else has anything to add and/or share, please feel free to join in the conversation :slightly_smiling_face:
Thanks a lot and have a lovely day!
Best,
Bérangère

Hi @HDesk5 :waving_hand:

I’ve managed to replicate the API behaviour you’ve described. I found that the CRM Search API takes about 4-5 seconds to show matches based on the case you’ve outlined (Create Deal with Associated Contact, then Search Deals based on Associated Contact ID).

The Associations API doesn’t seem to show this delay -- during my testing, I didn’t have to put any delay between my Create Deal request and retrieve associated records request. As such, you may need to consider switching from the CRM Search API to the Associations API if you need to avoid this 4-5 second delay.

For example, after you create your Deal:

GET /crm/v4/objects/DEAL/:DEAL_ID/associations/CONTACTS

I hope this proves helpful. Please let me know if you have any follow-up questions.