The Companies API currently does not deduplicate records.
If you send repeated requests to the Create a company endpoint with the same data, it will create duplicate companies and will not return any errors.
Once you successfully create a company and capture the companyId HubSpot assigns, you can use it as the key in the Update a company endpoint when updating that company going forward.
Would you be able to provide more clarification around this custom Unique ID you're using? It's worth noting that HubSpot only works using pre-defined unique ID's.
In this case, the unique ID used for Companies will be the Company Domain or, if you have it, the Company ID.
The Companies API currently does not deduplicate records.
If you send repeated requests to the Create a company endpoint with the same data, it will create duplicate companies and will not return any errors.
Once you successfully create a company and capture the companyId HubSpot assigns, you can use it as the key in the Update a company endpoint when updating that company going forward.
Duplicate check for unique identifier is failing while Create a Company, creating new record
SOLVE
If that is the case, is there any way (any Api) can I check the company alreadu exist or not before create new company. If company already exist need the company id as a resopnse.