GET /api/v1/loterias/:id
Retrieves detailed information about a specific loteria (lottery) by its UUID.Authentication
Requires authentication. Available to all roles.Path Parameters
UUID of the loteria to retrieve
Response
Indicates if the operation was successful
The loteria object with full details
Example Request
Example Response
Error Responses
Understanding Configuration
Digits Configuration
Digits Configuration
The
digits field determines the winning number format:- 2 Digits (Times)
- 3 Digits (Monazos)
Times/Tiempos Lottery
- Valid numbers: 00-99
- Display format: “00” to “99”
- Example: “42”, “07”
Draw Schedule
Draw Schedule
The This creates sorteos:
drawSchedule defines when sorteos are auto-generated:- Every weekday (Mon-Fri)
- At 12:55 PM and 6:55 PM
- In Costa Rica timezone
REVENTADO Config
REVENTADO Config
When
reventadoConfig.enabled: true:- Sorteos inherit
reventadoEnabled: true - Vendedores can sell REVENTADO bets
- Evaluation can include extra multipliers
- Additional payouts for REVENTADO winners
Auto-Create Sorteos
Auto-Create Sorteos
The
autoCreateSorteos flag controls automatic generation:- Enabled (true)
- Disabled (false)
- Sorteos created by cron job
- Based on
drawSchedule - Runs daily (configurable)
- Idempotent (no duplicates)
Example Configurations
Use Cases
Verify Schedule
Check
drawSchedule before using Preview Schedule.Related Endpoints
List Loterias
Get all loterias
Update Loteria
Modify configuration
Preview Schedule
See generated sorteos
Seed Sorteos
Generate sorteos from schedule