APIs & Integrations

iansimpson3
Mitglied

Get Closed Date From Ticket API

lösung

Hi,

 

I'm trying to get the closed date for a ticket(s) by using the search request via a POST request (below URL). 

 

https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey={{hapikey}}

 

Using the below json:

 

{
   "filterGroups":[
      {
         "filters":[
            {
               "propertyName":"closedate",
               "operator":"GT",
               "value":"1589414400000"
            }
         ]
      }
   ]
}
 
I'm getting a 400 Bad Request response ... I guess my questions are
 
  • is it possible to get a ticket, or tickets by closed date? 
  • If so, how is this achived using the ticket (v3) api?
 
 Thanks,
 
Ian
0 Upvotes
1 Akzeptierte Lösung
dennisedson
Lösung
HubSpot-Produktteam
HubSpot-Produktteam

Get Closed Date From Ticket API

lösung

Hey @iansimpson3 

I think you are just not using the correct internal name of closed date here.  Try closed_date

You could verify the name by looking either calling the properties endpoint or searching via the UI

Property_settings.png

 

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
dennisedson
Lösung
HubSpot-Produktteam
HubSpot-Produktteam

Get Closed Date From Ticket API

lösung

Hey @iansimpson3 

I think you are just not using the correct internal name of closed date here.  Try closed_date

You could verify the name by looking either calling the properties endpoint or searching via the UI

Property_settings.png

 

iansimpson3
Mitglied

Get Closed Date From Ticket API

lösung

Hi @dennisedson ,

 

This works perfect!! appreciate the help and quick response!!

 

Thanks, 

 

Ian