Aug 17, 2022 4:13 AM - edited Aug 17, 2022 4:36 AM
How to recreate:
1. Enable the setting "Create and associate companies with contacts" via: Settings > Data management > Objects > Companies
2. Create a contact using the API with "associatedcompanyid" for an existing company.
"associatedcompanyid": 123456 (ID from created company above),
3. Hubspot will correctly associate the contact with the company you specified in "associatedcompanyid", but will also create a secondary empty company that's not associated with any contact (shouldn't)
Hubspot will always create a "zappos.com" company based on the contact's email even if you just want to associate with the "zappos-corp.com" company you created.
Aug 17, 2022 10:40 AM - edited Aug 17, 2022 10:42 AM
When creating the company, you need to add an additional domain to the company.
These additional domains will be used for checking during contact creation. The field you want to update is called "hs_additional_domains". I believe this is a list, so set the company domain to zappos.com and maybe additional domain to zappos-corp.com (or vice versa if that makes sense to you). If the company has the correct domains, you shouldn't need the associatecomapnyid proerty defined.
This should fix your issue.