I am using this API to get deal information: https://api.hubapi.com/crm/v3/objects/deals/search
These are the properties I can successfully retrieve:
“properties”: [ “dealname”, “pipeline”, “dealstage”, “createdate”, “dealname”, “dealstage”, “brand_category”, “type_of_deal”, “deal_source”, “amount”, “hubspot_owner_id” ]
However, I also want to fetch the ID of the person who created the deal. Currently, I am getting the deal owner ID, but the deal owner can be different from the person who created it.
Help me find the name of the property so I can fetch the creator’s ID?
Below’s the curl i’m using
curl --request POST \
--url 'https://api.hubapi.com/crm/v3/objects/deals/search' \
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"filterGroups": [
{
"filters": [
{
"propertyName": "pipeline",
"operator": "IN",
"values": ["PIPELINE_ID"]
}
]
}
],
"properties": [
"dealname",
"pipeline",
"dealstage",
"createdate",
"dealname",
"dealstage",
"brand_category",
"type_of_deal",
"deal_source",
"amount",
],
"limit": 100
}'