API Documentation

Integrate TIX with your own applications

Authentication

API requests require an API key. Contact support to obtain your API key.

headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

Events

Get Events
GET /api/events
// Get all active events fetch('/api/events') .then(response => response.json()) .then(data => console.log(data));
Get Single Event
GET /api/events/{id}
// Get event by ID fetch('/api/events/1') .then(response => response.json()) .then(data => console.log(data));

Tickets

Verify Ticket
POST /api/verify_ticket
// Verify a ticket by QR code fetch('/api/verify_ticket', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ ticket_code: 'XXXX-XXXX-XXXX' }) }) .then(response => response.json()) .then(data => console.log(data));

Orders

Create Order
POST /api/create_order
// Create a new order fetch('/api/create_order', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ event_id: 1, customer_name: 'John Doe', customer_email: 'john@example.com', tickets: [{ tier_id: 1, quantity: 2 }] }) }) .then(response => response.json()) .then(data => console.log(data));
For full API documentation and access, please contact us at admin@tmstech.co.za