APIs & Integrations

ryanliew
Member

v3 Create Company API creates empty company

I have been trying to use the v3 Company Basic API to create a Company record. The API passed without any validation error, however an empty company is created instead. I am using the PHP hubspot/api-client v2.1.0 for the integration

 

ryanliew_0-1604251781378.png

The data that I am passing over with PHP:
"properties" => array:6 [
"city" => "Kuala Lumpur"
"domain" => "test.com"
"industry" => "Technology"
"name" => "New corporate"
"phone" => "012345678"
"state" => "Selangor"
]

2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

v3 Create Company API creates empty company

looks like this is a duplicate of this

0 Upvotes
VStruyf
Participant

v3 Create Company API creates empty company

I have the same issue and I think it is a different one than you suggest. This is about an empty company on a create, the other one is an update on a deal.

 

It works in https://developers.hubspot.com/docs/api/crm/companies, but when I copy paste the code in my own project, than I get an empty company.

0 Upvotes