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:{…}}
