Get Closed Date From Ticket API

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

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

Hi @dennisedson ,

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

Thanks,

Ian