# All fields are empty

**URL:** <https://community.hubspot.com/t/all-fields-are-empty/76822>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [March 9, 2023, 9:49am UTC](https://community.hubspot.com/t/all-fields-are-empty/76822 "2023-03-09T09:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umair68](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Umair68](https://community.hubspot.com/u/Umair68)\
**Post date:** [March 9, 2023, 9:49am UTC](https://community.hubspot.com/t/all-fields-are-empty/76822/1 "2023-03-09T09:49:51Z")

</div>

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](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/9/2/92e4f3024994bfacffc71f63b8bb2d4f4765e6f7_2_690x65.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(); }`

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 10, 2023, 6:21pm UTC](https://community.hubspot.com/t/all-fields-are-empty/76822/2 "2023-03-10T18:21:55Z")

</div>

Hi, @Umair68 What happens if you try creating a test deal by using the on-page example listed here? [**POST**](https://developers.hubspot.com/docs/api/crm/deals)`/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
