Update deals through API based on company domain


#1

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


#2

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


#3

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