# Create deal api

**URL:** <https://community.hubspot.com/t/create-deal-api/89251>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [September 8, 2023, 1:16pm UTC](https://community.hubspot.com/t/create-deal-api/89251 "2023-09-08T13:16:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriselliston](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@chriselliston](https://community.hubspot.com/u/chriselliston)\
**Post date:** [September 8, 2023, 1:16pm UTC](https://community.hubspot.com/t/create-deal-api/89251/1 "2023-09-08T13:16:35Z")

</div>

Hi

I’m passing in the payload as per the documentation to create a single deal. A deal appears but everything is blank?

Regards

Chris

---

<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:** [September 11, 2023, 3:41pm UTC](https://community.hubspot.com/t/create-deal-api/89251/2 "2023-09-11T15:41:39Z")

</div>

Hey, @chriselliston 👋 Did you get this resolved? If not, can you share an example request, response, and a screenshot of where the deal record should be, please?

This helps the community reproduce your issue and, hopefully, spot what is going on. Or provide a next step when possible.

Talk soon! — Jaycee

---

<div class="post-metadata">

**Author:** ![chriselliston](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@chriselliston](https://community.hubspot.com/u/chriselliston)\
**Post date:** [September 12, 2023, 6:52am UTC](https://community.hubspot.com/t/create-deal-api/89251/3 "2023-09-12T06:52:25Z")

</div>

Hi Jaycee

Yes, i managed to resolve this. I was passing the wrong payload in to create a single deal.

For other users, this was the payload that worked…

{“properties” :

{

“amount”: “1500.00”,

“dealname”: “Custom data integrations”,

“pipeline”: “default”,

“closedate”: “2019-12-07T16:50:06.678Z”,

“dealstage”: “presentationscheduled”,

“hubspot\_owner\_id”: “1189703102”

}

}

---

<div class="post-metadata">

**Author:** ![RKumar199](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@RKumar199](https://community.hubspot.com/u/RKumar199)\
**Post date:** [February 10, 2024, 12:39pm UTC](https://community.hubspot.com/t/create-deal-api/89251/4 "2024-02-10T12:39:01Z")

</div>

While trying this payload then an error occurred:

{

“status”: “error”,

“message”: “Invalid input JSON on line 12, column 1. Some required fields were not set: [name, label, type, fieldType, groupName]”,

“correlationId”: “4648414c-7f2c-4be0-b139-a3be03c53299”,

“category”: “VALIDATION\_ERROR”

}  
How to fix it, please suggest further

---

<div class="post-metadata">

**Author:** ![scamillo](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@scamillo](https://community.hubspot.com/u/scamillo)\
**Post date:** [March 20, 2024, 12:19pm UTC](https://community.hubspot.com/t/create-deal-api/89251/5 "2024-03-20T12:19:37Z")

</div>

Hi, I have the same situation.

Request

{

“properties”: {

“amount”: “1500.00”,

“closedate”: “2019-12-07T16:50:06.678Z”,

“dealname”: “New deal”,

“pipeline”: “default”,

“dealstage”: “contractsent”

}

}  
Response

{

“status”: “error”,

“message”: “Invalid input JSON on line 9, column 1. Some required fields were not set: [name, label, type, fieldType, groupName]”,

“correlationId”: “99d6579c-d577-4e31-9ca1-ab5abe82b3ae”,

“category”: “VALIDATION\_ERROR”

}

---

<div class="post-metadata">

**Author:** ![scamillo](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@scamillo](https://community.hubspot.com/u/scamillo)\
**Post date:** [March 19, 2024, 9:44pm UTC](https://community.hubspot.com/t/create-deal-api/89251/6 "2024-03-19T21:44:06Z")

</div>

I have the same situation.

---

<div class="post-metadata">

**Author:** ![scamillo](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@scamillo](https://community.hubspot.com/u/scamillo)\
**Post date:** [March 20, 2024, 12:17pm UTC](https://community.hubspot.com/t/create-deal-api/89251/7 "2024-03-20T12:17:12Z")

</div>

Request

{

“properties”: {

“amount”: “1500.00”,

“closedate”: “2019-12-07T16:50:06.678Z”,

“dealname”: “New deal”,

“pipeline”: “default”,

“dealstage”: “contractsent”

}

}  
Response

{

“status”: “error”,

“message”: “Invalid input JSON on line 9, column 1. Some required fields were not set: [name, label, type, fieldType, groupName]”,

“correlationId”: “99d6579c-d577-4e31-9ca1-ab5abe82b3ae”,

“category”: “VALIDATION\_ERROR”

}

---

<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 21, 2024, 4:57pm UTC](https://community.hubspot.com/t/create-deal-api/89251/8 "2024-03-21T16:57:50Z")

</div>

Hey, @scamillo 👋 I tried your request body using Postman and was able to create a deal with no issues.  
Request

`POST https://api.hubapi.com/crm/v3/objects/deals/`

Body

```lia-code-sample
{
"properties": {
"amount": "1500.00",
"closedate": "2019-12-07T16:50:06.678Z",
"dealname": "New deal 22",
"pipeline": "default",
"dealstage": "contractsent"
}
}

```

Response

```lia-code-sample
{
 "id": "18150419773",
 "properties": {
 "amount": "1500.00",
 "amount_in_home_currency": "1500.00",
 "closedate": "2019-12-07T16:50:06.678Z",
 "createdate": "2024-03-21T16:54:34.031Z",
 "days_to_close": "0",
 "dealname": "New deal 22",
 "dealstage": "contractsent",
 "hs_closed_amount": "0",
 "hs_closed_amount_in_home_currency": "0",
 "hs_closed_won_count": "0",
 "hs_createdate": "2024-03-21T16:54:34.031Z",
 "hs_days_to_close_raw": "0",
 "hs_deal_stage_probability_shadow": "0.90000000000000002220446049250313080847263336181640625",
 "hs_forecast_amount": "1500.00",
 "hs_is_active_shared_deal": "false",
 "hs_is_closed": "false",
 "hs_is_closed_won": "false",
 "hs_is_deal_split": "false",
 "hs_is_open_count": "1",
 "hs_lastmodifieddate": "2024-03-21T16:54:34.031Z",
 "hs_object_id": "18150419773",
 "hs_object_source": "INTEGRATION",
 "hs_object_source_id": "959085",
 "hs_object_source_label": "INTEGRATION",
 "hs_projected_amount": "0",
 "hs_projected_amount_in_home_currency": "0",
 "pipeline": "default"
 },
 "createdAt": "2024-03-21T16:54:34.031Z",
 "updatedAt": "2024-03-21T16:54:34.031Z",
 "archived": false
}

```

Best,

Jaycee
