All fields are empty

Hi,

I am using the hubspot api to create new deals but the data i send is not showing up its all empty in hubspot

this works but its emtpy in hubspot

Umair68_0-1678355627720.png

$simplePublicObjectInput = new SimplePublicObjectInput([ [ 'firstname' => 'umair', 'lastname' => 'umair', 'email' => 'umair@ik.me', 'phone' => '1234567890', 'destination' => 'paris', 'nombre_de_participants' => '2', 'date_de_depart' => '2021-10-10', 'budget___personne' => '1000', 'activites' => '1', 'transfert' => '1', 'hebergement' => '1', 'dealname' => 'this is the dealname', 'nombre_de_nuits__test_' => '2', 'lien_bs' => 'https://www.google.com', ] ]); try { $apiResponse = $this->hubspot->crm()->deals()->basicApi()->create($simplePublicObjectInput); var_dump($apiResponse); } catch (ApiException $e) { echo "Exception when calling basic_api->create: ", $e->getMessage(); }

Hi, @Umair68 What happens if you try creating a test deal by using the on-page example listed here? POST/crm/v3/objects/deals

Sometimes simplifying things a bit can help all of us to spot what’s different or why your code isn’t working as expected.

Best,

Jaycee