{"service":"qris-bca","version":"1.1.0","auth":"Send header `X-API-Key: <API_KEY>` on all /api/* except /api/health and /api.","docs":"/docs","endpoints":[{"method":"GET","path":"/api/health","auth":false,"desc":"Liveness (detail lengkap bila terautentikasi)"},{"method":"GET","path":"/api/transactions","auth":true,"params":["mid","from","to","since","q","limit","offset","order"],"desc":"Query transactions (a branch passes its own mid)"},{"method":"GET","path":"/api/summary","auth":true,"params":["mid","from","to"],"desc":"Aggregates (count, totalAmount, byIssuer, byDay, byOutlet)"},{"method":"GET","path":"/api/outlets","auth":true,"params":[],"desc":"List outlets / MIDs"},{"method":"POST","path":"/api/stream/ticket","auth":true,"params":[],"desc":"Tiket sekali pakai (60 dtk) untuk membuka SSE dari browser"},{"method":"GET","path":"/api/stream","auth":true,"params":["mid","ticket"],"desc":"SSE live stream (header X-API-Key, cookie dasbor, atau ?ticket=)"},{"method":"GET","path":"/api/webhooks","auth":true,"params":[],"desc":"List registered webhooks"},{"method":"POST","path":"/api/webhooks","auth":true,"params":["url","secret","mid"],"desc":"Register/replace a webhook (JSON body; secret ≥16 karakter wajib)"},{"method":"DELETE","path":"/api/webhooks","auth":true,"params":["url"],"desc":"Remove a webhook"},{"method":"POST","path":"/api/qris/generate","auth":true,"params":["mid","amount","order_id","customer_name","phone","address","meta","ttl_min","unique"],"desc":"Buat QRIS dinamis + invoice"},{"method":"GET","path":"/api/qris/invoices","auth":true,"params":["status","limit"],"desc":"List invoice"},{"method":"GET","path":"/api/qris/invoice","auth":true,"params":["id"],"desc":"Satu invoice"},{"method":"POST","path":"/api/poll","auth":"admin","params":["days"],"desc":"Trigger an immediate poll (maks 31 hari)"}]}