I am not able to fetch the primary company from the deal api
SOLVE
I am using Hubspot API and fetching data through Airbyte, for deals api, I can see that there are multiple companies id, how do I identify the which is primary company associated to that deal?
{
"archived": false,
"companies": [
"19642076053",
"19473581391",
"19642076053"
],
"contacts": [
"20437202"
],
"createdAt": "2024-02-08T03:51:49.123Z",
"id": "18040077916",
"line_items": [
"28045840280"
],
"properties": {
"account_legal_name": null,
"account_manager": null,
"ace_opportunity_id_url": null,
"activation": null,
"activation_type": "One Time",
.......
}
"updatedAt": "2025-04-17T09:14:31.024Z"
}
This is how receive data through Airbyte, but I can't identify which is primary company?
I am not able to fetch the primary company from the deal api
SOLVE
Hey @SKumar00👋 Welcome to our community! Thank you very much for your post. It may be worth checking with Airbyte on this question as well. I found their support forum here.
Stepping outside the connector, we would get those labels, such as Primary, from making a request to the Associations API endpoints and the response will include the labels you are after. I am not sure how Airbyte handles this, as it is not listed in the documentation specifically.
I'll add a quick example of what the response from the Associations API looks like so you know what to expect from it.
I know this is not the answer you are after, and I want to share our available and documented options for meeting your goal.
Have fun testing! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
I am not able to fetch the primary company from the deal api
SOLVE
Hey @SKumar00👋 Welcome to our community! Thank you very much for your post. It may be worth checking with Airbyte on this question as well. I found their support forum here.
Stepping outside the connector, we would get those labels, such as Primary, from making a request to the Associations API endpoints and the response will include the labels you are after. I am not sure how Airbyte handles this, as it is not listed in the documentation specifically.
I'll add a quick example of what the response from the Associations API looks like so you know what to expect from it.
I know this is not the answer you are after, and I want to share our available and documented options for meeting your goal.
Have fun testing! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !