APIs & Integrations

iansimpson3
Member

Get Closed Date From Ticket API

SOLVE

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 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get Closed Date From Ticket API

SOLVE

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

 

View solution in original post

2 Replies 2
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get Closed Date From Ticket API

SOLVE

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
Member

Get Closed Date From Ticket API

SOLVE

Hi @dennisedson ,

 

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

 

Thanks, 

 

Ian