FieldEx Developer
developer notes

Get All Tickets By Customer

The TicketGetAllByCustomer API allows you to retrieve all existing Tickets by Customer.

Method Endpoint
GET {{endpoint}}/api/tickets

Headers

Key Value
Content-Type application/json
Authorization Bearer{{token}}

Filter Fields

Parameter Type Example Length Required Description
page Number 1 Yes Page number for pagination
perPage Number 10 Yes Number of items per page
startFrom Number 1 Yes Start index for pagination
columnName String id Yes Name of the column for sorting
sortOrder String desc Yes Sort order (asc/desc)
search String test Yes Specifies the search query
customerId Number 1 No Customer ID for filtering
ticketStatusIds Number 9 No Ticket status IDs for filtering
startDateTime Date/Time 2023-10-14 No Start Date for filtering
endDateTime Date/Time 2023-10-14 No End Date for filtering

API Query Example

Method API Call
GET api/tickets?page&perPage=25&startFrom=1&search=000075& columnName=project.name&sortOrder=asc&customerId= &ticketStatusIds=1&startDateTime=2023-10-14&endDateTime=2023-10-14

Example Response

// 200 Response Code
{
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Internal Server Error",
    "status": 500,
    "path": "/custella-0.0.1-SNAPSHOT/api/ext/tickets",
    "message": "error.http.500"
}