List tickets with pagination and filters
GET/truckers/tickets/
Retrieves a paginated list of carrier tickets with filtering and search capabilities.
Available parameters:
- page: Page number (default 1)
- limit: Number of items per page (default value from ITEMS_PAGE in .env)
- filter: Filter by ticket status [all, open, closed, resolved]
- search: Text to search in relevant ticket fields
Fields where search is applied:
- Ticket code
- Ticket status
- Author name
- Author type
- Related operation
- Ticket messages
- Attached files
Usage example:
- List all open tickets: /?filter=open
- Search for tickets with a specific code: /?search=TCK-2023-001
- Advanced pagination: /?page=2&limit=20&filter=resolved
Notes:
- The 'closed' filter includes tickets closed and cancelled by the client
- Search is case-insensitive and accepts partial matches
Request
Responses
- 200
- 401
Paginated ticket list
Unauthorized. The JWT token is invalid or has expired. Valid authentication is required to access this endpoint.