APIs & Integrations

rikmaris
Contributeur

Search by close date through v3 api

Résolue

Hi,

 

I'm struggeling to get the right API call.

 

My target is to get all deals from a specific day that are closed.  But with this call i get all deals. I want just the deals from that unix time stamp. (this is 14th of may 2020)

 

{
"filterGroups": [
{
"filters": [
{
"propertyName": "closedate",
"operator": "GT",
"value": "1588291200"
}
]
}
]
}
0 Votes
1 Solution acceptée
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Search by close date through v3 api

Résolue

Hey @rikmaris,

 

HubSpot API accept UNIX formatted timestamps in milliseconds

 

If you'd like to retrieve deals in which the close date is after 14th May 2020, you can use 1589414400000 in which it represent Date and time (GMT): Thursday, May 14, 2020 0:00:00 . 

 

The external tool I'm using: https://www.epochconverter.com/.

Voir la solution dans l'envoi d'origine

0 Votes
2 Réponses
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Search by close date through v3 api

Résolue

Hey @rikmaris,

 

HubSpot API accept UNIX formatted timestamps in milliseconds

 

If you'd like to retrieve deals in which the close date is after 14th May 2020, you can use 1589414400000 in which it represent Date and time (GMT): Thursday, May 14, 2020 0:00:00 . 

 

The external tool I'm using: https://www.epochconverter.com/.

0 Votes
rikmaris
Contributeur

Search by close date through v3 api

Résolue

Thanks! 

That was the solution!

0 Votes