APIs & Integrations

rikmaris
Contributor

close date of deal api request

SOLVE

Hi all,

 

i am struggling to get the right API request.  I have this request 

to: https://api.hubapi.com/crm/v3/objects/deals/search
{
"filterGroups": [
{
"filters": [
{
"propertyName": "closedate",
"operator": "GT",
"value": "1588291200"
}
]
}
]
}

The result is that i get all deals with a close date.

I just want the deals with the specific close date. 

 

What do i wrong? 

0 Upvotes
1 Accepted solution
Willson
Solution
HubSpot Employee
HubSpot Employee

close date of deal api request

SOLVE

Hey @rikmaris 

 

Looking into the request, the timestamp you're posting is for January 19th, 1970 10:11 AM therefore all Deals in your Portal are being returned.

 

When using this, the timestamp needs to be a UNIX timestamp in milliseconds. Can you try this to see if that works?


Thanks!

Product Manager @ HubSpot

View solution in original post

0 Upvotes
1 Reply 1
Willson
Solution
HubSpot Employee
HubSpot Employee

close date of deal api request

SOLVE

Hey @rikmaris 

 

Looking into the request, the timestamp you're posting is for January 19th, 1970 10:11 AM therefore all Deals in your Portal are being returned.

 

When using this, the timestamp needs to be a UNIX timestamp in milliseconds. Can you try this to see if that works?


Thanks!

Product Manager @ HubSpot
0 Upvotes