Documentation api

L’API BooomTickets vous permet d’intégrer la gestion et la validation des billets à vos applications.

🎤 Événements

1. Créer un événement

Enregistrez un nouvel événement (concert, festival, etc.)


POST /api/create-event
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN

{
    "name": "Summer Fest 2025",
    "location": "Main Arena",
    "date": "2025-07-15T19:00:00Z"
}
        

2. Lister les événements

Récupérer tous les événements créés


GET /api/events
Authorization: Bearer YOUR_API_TOKEN
        

[
    {
        "id": 12,
        "name": "Summer Fest 2025",
        "location": "Main Arena",
        "date": "2025-07-15T19:00:00Z"
    },
    {
        "id": 13,
        "name": "Rock Night",
        "location": "Stage B",
        "date": "2025-08-01T20:00:00Z"
    }
]
        

🎟 Billets

1. Ajouter un billet

Ajouter un billet à un événement


POST /api/add-ticket
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN

{
    "barcode": "ABC123XYZ",
    "event_id": 12,
    "holder_name": "Иван Иванов"
}
        

2. Vérifier un billet


POST /api/verify-ticket
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN

{
    "event_id": 12,
    "barcode": "1234567890"
}
        

3. Statut du billet


GET /api/ticket-status/{barcode}
Authorization: Bearer YOUR_API_TOKEN
        

4. Liste des billets

Obtenir tous les billets d’un événement avec leur statut


GET /api/event/{event_id}/tickets
Authorization: Bearer YOUR_API_TOKEN
        

[
    {
        "barcode": "ABC123XYZ",
        "holder_name": "Иван Иванов",
        "status": "valid"
    },
    {
        "barcode": "XYZ987ABC",
        "holder_name": "Петр Петров",
        "status": "used"
    }
]
        

5. Journal des entrées

documentation.checkin_log_desc


POST /api/checkin-log
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN

{
    "barcode": "1234567890",
    "device_id": "scanner01",
    "timestamp": "2025-05-28T19:00:00Z"
}