📋 Service Information
Service Name: Ticket Service
Port: 8053
Base URL: http://localhost:8053
Description: Handles ticket booking, management, status updates, and live panel data
Features: Ticket booking, status management, hold/transfer tickets, live panel integration, Kafka event streaming
Book Ticket
Create a new ticket for a service
📝 Request Example:
Get Ticket by ID
Retrieve ticket details by ticket ID
📝 Request Example:
📌 Path Parameters:
id - Ticket ID (UUID)
Get Ticket List
Get all tickets with pagination, search, and filters
📝 Request Example:
📌 Query Parameters:
page - Page number (default: 0)
size - Page size (default: 10)
search - Search term (optional)
status - Filter by status (optional)
userId - Filter by user ID (optional, UUID)
serviceId - Filter by service ID (optional, UUID)
sortBy - Sort field (default: created_at)
sortDir - Sort direction: asc/desc (default: asc)
Get Tickets by Service
Get tickets filtered by userId, agencyId, and serviceId
📝 Request Example:
📌 Query Parameters:
userId - User ID (required, UUID)
agencyId - Agency ID (required, UUID)
serviceId - Service ID (required, UUID)
page - Page number (default: 0)
size - Page size (default: 100)
status - Filter by status (optional)
Get Tickets by User and Branch
Get tickets filtered by userId and agencyId (branch-wise and user-wise)
📝 Request Example:
📌 Query Parameters:
userId - User ID (required, UUID)
agencyId - Agency/Branch ID (required, UUID)
page - Page number (default: 0)
size - Page size (default: 10)
status - Filter by status (optional)
search - Search term (optional)
Get Ticket History
Get all ticket history with filters
📝 Request Example:
📌 Query Parameters:
page - Page number (default: 0)
size - Page size (default: 10)
search - Search term (optional)
bookingType - Filter by booking type (optional)
status - Filter by status (optional)
userId - Filter by user ID (optional, UUID)
Update Ticket
Update ticket information
📝 Request Example:
📌 Path Parameters:
id - Ticket ID (UUID)
Change Ticket Status
Update ticket status (waiting, called, serving, completed, etc.)
📝 Request Example:
📌 Path Parameters:
ticketId - Ticket ID (UUID)
Hold Ticket
Put a ticket on hold
📝 Request Example:
Transfer Ticket
Transfer a ticket to another service or agency
📝 Request Example:
Get Hold Tickets
Get all tickets that are on hold
📝 Request Example:
Get Transfer Tickets
Get all tickets that have been transferred
📝 Request Example:
Get Agency Summary
Get ticket details and summary for an agency
📝 Request Example:
📌 Path Parameters:
agencyId - Agency ID (UUID)
Get Logo Path
Get the logo URL for the live panel
📝 Request Example:
Get Branding Color
Get the branding color for the live panel
📝 Request Example:
Get Advertisements
Get list of advertisement video URLs
📝 Request Example:
Get Marquee Texts
Get list of marquee texts for display
📝 Request Example:
Get Live Tickets
Get currently called/live tickets for display