Batch-read of company-to-contact associations not always returning full set

Hi,

When I submit a contact-association retreival request for many companies, in some instances the contact list is incomplete. For example, if I submit 2500 companies approx. 15 return only a partial list of contact associations.

The problem is slightly intermittent - sometimes it is complete for some companies and sometimes not. However, one particular companie seems to always fail. Here is a sample callour call:

POST https://api.hubapi.com/crm/v3/associations/company/contact/batch/read
{
“inputs” : [ { “id” : 4138223513 } ]
}
This call is returning only 2 contacts, but the company has 6.
Can you investigate please?

Thanks,

Claude.

I’ve been working with support on this issue, and they have determined that the cause is the V3 API only returning “primary” associations. That is, if a given contact is associated with two companies, only one of those associations can be the primary assocation. Only that association is returned by the V3 API.
The V4 API returns all associations, along with information about the type of association (primary, or something else).