APIs & Integrations

team_filtpod
Mitglied

Created deals return null properties

Hi team,

I was testing the Deals API and successfully created a new deal via Postman. However, all the properties returned are null.

This is the body:

{
  "amount""1500.00",
  "closedate""2022-12-07T16:50:06.678Z",
  "dealname""Custom data integrations",
  "dealstage""appointmentscheduled",
  "hubspot_owner_id""xxx",
  "pipeline""default"
}
 
I made sure that the "dealstage" and "pipeline" IDs are correct by checking the settings.  I also tried setting "hubspot_owner_id" with my account id and owner id returned from /crm/v3/owners/, none of them worked.

Any advice?

Thanks.



0 Upvotes
2 Antworten
team_filtpod
Mitglied

Created deals return null properties

Hey @Jaycee_Lewis , yes that's right.

I did not create a custom pipeline, just tried to add a new deal to the default pipeline (sales pipeline). I did remove some of the existing stages and renamed the first two (see image). The ID of the first stage is still "appointmentscheduled".

team_filtpod_0-1658098887419.png

 

0 Upvotes
Jaycee_Lewis
Community-Manager/-in
Community-Manager/-in

Created deals return null properties

Hey, @team_filtpod 👋 Thanks for the question. To clarify, you are using the v3 endpoint Deals > Create?

POST /crm/v3/objects/deals

Furthermore, are your Deal Stage and Pipelines custom? I just want to make sure I set up my quick test in Postman similarly.

 

Thanks for the additional details!

 

Happy coding!  — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes