APIs & Integrations

Bart_Vintcent
Member

Update deals through API based on company domain

Hi guys,

I'm trying to find a way to update a deal stage for a company from our own software. Basically, what I'd like to do is update the deal stage based on the company domain. Our software doesn't know any deal ids etc. Is this something the Hubspot API allows for?

Thanks!
-Bart

0 Upvotes
2 Replies 2
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Update deals through API based on company domain

Hi @Bart_Vintcent,

There isn't any built-in method to update a deal record based on it's associated company domain, but you could search for company records by domain, and then get that record's associated deals via the Companies API:

https://developers.hubspot.com/docs/methods/companies/search_companies_by_domain

Get a Company | Companies API

GET /companies/v2/companies/:companyId - Returns an object representing the company with the id :companyId associated with the specified portal

0 Upvotes
Bart_Vintcent
Member

Update deals through API based on company domain

Smart suggestion, we'll go ahead and see if that works for us!