Payment requests
Retrieve request
Fetch a single payment request by its id.
GET
/v1/transactions/{id}Path parameters
idstringrequired
The payreq_* id. Status is one of pending, succeeded, expired, canceled, failed.
Example: payreq_9b2f...
GET /v1/transactions/{id}
curl https://pay.kasera.id/v1/transactions/payreq_9b2f... \ -H "Authorization: Bearer kp_live_..."
{
"id": "payreq_9b2f...",
"livemode": true,
"status": "pending",
"currency": "IDR",
"amount": 150000,
"fee": 1300,
"net": 148700,
"description": "Kaos komunitas",
"external_id": "ORD-1234",
"merchant_ref": "INV-2026-001",
"customer": { "name": "Budi", "email": "budi@toko.dev" },
"order_items": [
{ "name": "Kaos komunitas", "price": 75000, "quantity": 2 }
],
"return_url": "https://toko.example/selesai",
"checkout_url": "https://pay.kasera.id/p/xK3f...",
"source": "api",
"payment_method": "qris",
"payment": {
"type": "qr",
"qr_string": "00020101021226670016COM.KASERA.WWW...6304A1B2"
},
"instructions": {
"title": "Cara membayar dengan QRIS",
"steps": [
"Buka aplikasi e-wallet atau mobile banking Anda.",
"Pilih menu bayar dengan QRIS, lalu scan kode QR di halaman pembayaran.",
"Periksa nama merchant dan nominal, lalu konfirmasi pembayaran.",
"Pembayaran terkonfirmasi otomatis dalam beberapa detik."
]
},
"expires_at": "2026-08-11T13:00:00+07:00",
"paid_at": null,
"created_at": "2026-08-11T12:00:00+07:00"
}