Documentație api

API-ul BooomTickets îți permite să integrezi funcții de scanare și gestionare a biletelor în aplicațiile tale.

🎤 Evenimente

1. Creează eveniment

Înregistrează un nou eveniment (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. Listează evenimentele

Obține toate evenimentele create


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"
    }
]
        

🎟 Bilete

1. Adaugă bilet

Adaugă un bilet la eveniment


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

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

2. Verifică bilet


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

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

3. Stare bilet


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

4. Lista biletelor

Obține toate biletele pentru un eveniment cu starea lor


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

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

5. Jurnal de check-in

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"
}