Support Tickets
Manage customer support tickets with attachments and status tracking.
Create Support Ticket
Creates a new support ticket.
Request Body
ID of the user creating the ticket
User role context. Values: GUIDE, TOURIST, GUEST
Full name of the person submitting the ticket
Email address for contact
Subject/title of the support ticket
Ticket category. Values: RESERVAS_VIAJES, PAGOS_FACTURACION, CUENTA_SEGURIDAD, VERIFICACION_GUIAS, OTRO, GENERAL
Detailed message describing the issue or inquiry
Current status. Values: OPEN, IN_PROGRESS, RESOLVED, CLOSED. Default: OPEN
Timestamp when ticket was created (ISO 8601 format)
Timestamp when ticket was last updated (ISO 8601 format)
Response
Unique identifier for the support ticket
ID of the user who created the ticket
User role context: GUIDE, TOURIST, or GUEST
Full name of the ticket creator
Example Request
curl -X POST http://localhost:8080/api/support_tickets \
-H "Content-Type: application/json" \
-d '{
"userId": 42,
"roleContext": "TOURIST",
"fullName": "María González",
"email": "[email protected]",
"subject": "Cannot access my booking",
"category": "RESERVAS_VIAJES",
"message": "I am unable to view my tour booking from last week. The page shows an error.",
"status": "OPEN"
}'
Example Response
{
"ticketId": 1523,
"userId": 42,
"roleContext": "TOURIST",
"fullName": "María González",
"email": "[email protected]",
"subject": "Cannot access my booking",
"category": "RESERVAS_VIAJES",
"message": "I am unable to view my tour booking from last week. The page shows an error.",
"status": "OPEN",
"createdAt": "2026-03-11T10:30:00",
"updatedAt": "2026-03-11T10:30:00"
}
Get All Support Tickets
Retrieves all support tickets.
Example Request
curl http://localhost:8080/api/support_tickets
Example Response
[
{
"ticketId": 1523,
"userId": 42,
"roleContext": "TOURIST",
"fullName": "María González",
"email": "[email protected]",
"subject": "Cannot access my booking",
"category": "RESERVAS_VIAJES",
"message": "I am unable to view my tour booking from last week.",
"status": "OPEN",
"createdAt": "2026-03-11T10:30:00",
"updatedAt": "2026-03-11T10:30:00"
}
]
Get Support Ticket by ID
/api/support_tickets/{id}
Retrieves a specific support ticket by ID.
Path Parameters
Example Request
curl http://localhost:8080/api/support_tickets/1523
Example Response
{
"ticketId": 1523,
"userId": 42,
"roleContext": "TOURIST",
"fullName": "María González",
"email": "[email protected]",
"subject": "Cannot access my booking",
"category": "RESERVAS_VIAJES",
"message": "I am unable to view my tour booking from last week.",
"status": "IN_PROGRESS",
"createdAt": "2026-03-11T10:30:00",
"updatedAt": "2026-03-11T11:15:00"
}
Update Support Ticket
/api/support_tickets/{id}
Updates an existing support ticket.
Path Parameters
Request Body
Same fields as Create Support Ticket.
Example Request
curl -X PUT http://localhost:8080/api/support_tickets/1523 \
-H "Content-Type: application/json" \
-d '{
"userId": 42,
"roleContext": "TOURIST",
"fullName": "María González",
"email": "[email protected]",
"subject": "Cannot access my booking",
"category": "RESERVAS_VIAJES",
"message": "I am unable to view my tour booking from last week.",
"status": "RESOLVED"
}'
Delete Support Ticket
/api/support_tickets/{id}
Deletes a support ticket.
Path Parameters
Example Request
curl -X DELETE http://localhost:8080/api/support_tickets/1523
Support Ticket Attachments
Manage file attachments for support tickets.
Create Attachment
/api/support_ticket_attachments
Adds a file attachment to a support ticket.
Request Body
URL where the file is stored
Original name of the file
MIME type of the file (e.g., “image/png”, “application/pdf”)
Timestamp when file was uploaded (ISO 8601 format)
Response
Unique identifier for the attachment
Associated support ticket ID
Example Request
curl -X POST http://localhost:8080/api/support_ticket_attachments \
-H "Content-Type: application/json" \
-d '{
"ticketId": 1523,
"fileUrl": "https://cdn.kinconecta.com/attachments/error-screenshot.png",
"fileName": "error-screenshot.png",
"mimeType": "image/png",
"fileSizeBytes": 245678
}'
Example Response
{
"attachmentId": 8821,
"ticketId": 1523,
"fileUrl": "https://cdn.kinconecta.com/attachments/error-screenshot.png",
"fileName": "error-screenshot.png",
"mimeType": "image/png",
"fileSizeBytes": 245678,
"uploadedAt": "2026-03-11T10:31:25"
}
Get All Attachments
/api/support_ticket_attachments
Retrieves all support ticket attachments.
Example Request
curl http://localhost:8080/api/support_ticket_attachments
Get Attachment by ID
/api/support_ticket_attachments/{id}
Retrieves a specific attachment by ID.
Path Parameters
Example Request
curl http://localhost:8080/api/support_ticket_attachments/8821
Update Attachment
/api/support_ticket_attachments/{id}
Updates an attachment’s metadata.
Path Parameters
Example Request
curl -X PUT http://localhost:8080/api/support_ticket_attachments/8821 \
-H "Content-Type: application/json" \
-d '{
"ticketId": 1523,
"fileUrl": "https://cdn.kinconecta.com/attachments/error-screenshot.png",
"fileName": "error-screenshot-updated.png",
"mimeType": "image/png",
"fileSizeBytes": 245678
}'
Delete Attachment
/api/support_ticket_attachments/{id}
Deletes an attachment.
Path Parameters
Example Request
curl -X DELETE http://localhost:8080/api/support_ticket_attachments/8821