Authentication
Requires authentication. Available to roles:VENDEDOR, VENTANA, ADMIN.
Path Parameters
UUID of the ticket to retrieve.
Response Fields
Ticket UUID.
Unique ticket number in format
TYYMMDD-XXXXXX-CC (e.g., T260303-00042A-15).Total amount of all jugadas.
Ticket status. Possible values:
ACTIVE: Ticket is active and validCANCELLED: Ticket was cancelledEVALUATED: Sorteo completed, winners determinedPAID: Winner ticket fully paidEXCLUDED: Excluded from reports
Whether the ticket is active.
Whether the ticket has any winning jugadas.
UUID of the lottery.
UUID of the sorteo.
UUID of the ventana.
UUID of the vendedor who created the ticket.
Customer name.
ISO 8601 timestamp of ticket creation.
ISO 8601 timestamp of last update.
Business date in Costa Rica timezone when ticket was created.
Total commission amount (sum of all jugada commissions).
Total payout amount for winning tickets. Null for non-winning tickets.
Total amount paid out so far (for winning tickets).
Remaining payout amount for partially paid winners.
ISO 8601 timestamp of last payment (for winners).
Method of last payment:
cash, transfer, check.Notes from the last payment.
Complete history of payments for this ticket.
UUID of the user who created the ticket (may differ from vendedorId if created via impersonation).
Role of the user who created the ticket:
VENDEDOR, VENTANA, ADMIN.Whether the associated sorteo has been closed.
Array of jugadas (bets) in this ticket.
Lottery details.
Sorteo details with formatted name.
Vendedor information with print configuration.
Ventana information with print configuration (same structure as vendedor).
Example Request
Example Response
Error Responses
404 Not Found
500 Internal Server Error - Invalid Sorteo
Notes
- The sorteo name is formatted with scheduled time (e.g., “TICA 7:00 PM”)
- Print configuration is extracted from vendedor and ventana
settingsJSON field - Commission snapshots are immutable and show the commission rates at ticket creation time
- The
finalMultiplierXshows the multiplier value at the time the ticket was created - No RBAC filtering is applied on single ticket retrieval (any authenticated user can view any ticket)
- Payment history shows the complete audit trail of all payments and reversals