Get full details of a ticket
GET/truckers/tickets/:id
Returns all information for a specific ticket, including:
- Basic ticket data (code, status, dates)
- Complete message history
- Attached files
- Information about the author and assignee
Usage example:
- View the current status of a disputed ticket
- Review the conversation history
- Download files attached to the ticket
Notes:
- Only returns tickets belonging to the authenticated user
- Tickets cancelled by the client are shown as closed
Request
Responses
- 200
- 401
- 404
Complete ticket detail including messages and files. The response follows the TicketDetail schema which extends Ticket with:
- messages: Array containing message history (author, date, content)
- files: Array containing attached file paths
Unauthorized. The JWT token is invalid or has expired. Valid authentication is required to access this endpoint.
Ticket not found. This may be due to:
- The ID does not exist
- The ticket does not belong to the authenticated user