Overview
Retrieve details of a specific multiplier, including its configuration and relationship to lotteries and sorteos.
Endpoint
GET /api/v1/multipliers/:id
Authorization: ADMIN only
Path Parameters
Response
Indicates if the request was successful
Multiplier details
ISO 8601 date filter (null if applies always)
Sorteo UUID (null if applies to all sorteos)
Whether multiplier is active
Soft deletion timestamp (null if active)
Lottery details
id (string): Lottery UUID
name (string): Lottery name
code (string): Lottery code
Sorteo details (if appliesToSorteoId is set)
id (string): Sorteo UUID
drawTime (string): Draw time
status (string): Sorteo status
User who created the multiplier
id (string): User UUID
name (string): User name
username (string): Username
Example
curl -X GET "https://api.example.com/api/v1/multipliers/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_TOKEN"
Response Example
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"loteriaId": "loteria-uuid",
"name": "Base 80x",
"valueX": 80,
"kind": "NUMERO",
"appliesToDate": null,
"appliesToSorteoId": null,
"isActive": true,
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-03-01T10:00:00.000Z",
"deletedAt": null,
"loteria": {
"id": "loteria-uuid",
"name": "Lotto",
"code": "LOTTO"
},
"sorteo": null,
"createdBy": {
"id": "admin-uuid",
"name": "Admin User",
"username": "admin"
}
}
}
Error Responses
{
"success": false,
"error": "Multiplier not found",
"code": "NOT_FOUND"
}
List Multipliers
View all multipliers
Update Multiplier
Modify multiplier
Create Multiplier
Create new multiplier
Implementation Details
From src/api/v1/controllers/multiplier.controller.ts:27-30:
async getById(req: AuthenticatedRequest, res: Response) {
const r = await MultiplierService.getById(req.params.id);
return res.json({ success: true, data: r });
}