Problems with DEALS POST API v3

I tried to create a Deal using an API v3 call with basic parameters.

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

{
“amount”: “1500.00”,
“closedate”: “2019-12-07T16:50:06.678Z”,
“dealname”: “Custom data integrations”,
“dealstage”: “presentationscheduled”,
“hubspot_owner_id”: “910901”,
“pipeline”: “default”
}

And it returns the following answer:

{
“id”: “6614513100”,
“properties”: {
“createdate”: “2023-02-06T12:29:44.669Z”,
“days_to_close”: “0”,
“hs_closed_amount”: “0”,
“hs_closed_amount_in_home_currency”: “0”,
“hs_createdate”: “2023-02-06T12:29:44.669Z”,
“hs_deal_stage_probability_shadow”: “0”,
“hs_is_closed_won”: “false”,
“hs_is_deal_split”: “false”,
“hs_lastmodifieddate”: “2023-02-06T12:29:44.669Z”,
“hs_object_id”: “6614513100”,
“hs_projected_amount”: “0”,
“hs_projected_amount_in_home_currency”: “0”
},
“createdAt”: “2023-02-06T12:29:44.669Z”,
“updatedAt”: “2023-02-06T12:29:44.669Z”,
“archived”: false
}

As you can see, there is no name, stage, etc.

The request is made through the “oAuth key”

And the app includes these soupes:

crm.objects.deals.readcrm.objects.deals.write

What am I doing wrong?
UPD:
Forgot about {properties:{…}}

Hey, @DOpanovich :waving_hand: Were you able to get this worked out? I tried using the same endpoint, example, and a private app. Here’s my request and response:

  • Reply

    curl --request POST \
     --url https://api.hubapi.com/crm/v3/objects/deals \
     --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
     --header 'content-type: application/json' \
     --data '{
     "properties": {
     "amount": "500.00",
     "closedate": "2022-12-07T16:50:06.678Z",
     "dealname": "Cats playing guitars",
     "dealstage": "presentationscheduled",
     "hubspot_owner_id": "198670650",
     "pipeline": "default"
     }
    }'​
    
  • Response

    HTTP 201
    
    {
     "id": "12038699168",
     "properties": {
     "amount": "500.00",
     "amount_in_home_currency": "500.00",
     "closedate": "2022-12-07T16:50:06.678Z",
     "createdate": "2023-02-06T17:02:07.647Z",
     "days_to_close": "0",
     "dealname": "Cats playing guitars",
     "dealstage": "presentationscheduled",
     "hs_all_accessible_team_ids": "12073943",
     "hs_all_owner_ids": "198670650",
     "hs_all_team_ids": "12073943",
     "hs_closed_amount": "0",
     "hs_closed_amount_in_home_currency": "0",
     "hs_createdate": "2023-02-06T17:02:07.647Z",
     "hs_deal_stage_probability_shadow": "0.59999999999999997779553950749686919152736663818359375",
     "hs_forecast_amount": "500.00",
     "hs_is_closed": "false",
     "hs_is_closed_won": "false",
     "hs_is_deal_split": "false",
     "hs_lastmodifieddate": "2023-02-06T17:02:07.647Z",
     "hs_object_id": "12038699168",
     "hs_projected_amount": "0",
     "hs_projected_amount_in_home_currency": "0",
     "hs_user_ids_of_all_owners": "10233975",
     "hubspot_owner_assigneddate": "2023-02-06T17:02:07.647Z",
     "hubspot_owner_id": "198670650",
     "hubspot_team_id": "12073943",
     "pipeline": "default"
     },
     "createdAt": "2023-02-06T17:02:07.647Z",
     "updatedAt": "2023-02-06T17:02:07.647Z",
     "archived": false
    }​
    

I’d suggest adding your example request and response by copy it from the example page. This will help the community to better understand how they can assist you.

Best,

Jaycee