Transactions
Daftar transaksi merchant.
GET
cURL
/api/transactions
Mengambil daftar transaksi merchant.
Query Params
| Param | Type | Wajib | Keterangan |
|---|---|---|---|
limit | integer | Tidak | Jumlah transaksi. Default 50. |
Request Example
curl "<origin>/api/transactions?limit=50" \ -H "Authorization: Bearer sk_xxx"Response
{
"transactions": [
{
"id": "f2b1d5b0-7b1f-4c5d-9c37-93f0c8f6a001",
"reference_id": "PAY-LXAMPLE",
"merchant_reference_id": "ORDER-1024",
"payment_method_code": "qris",
"currency": "IDR",
"amount": 150000,
"fee_amount": 1050,
"net_amount": 150000,
"total_amount": 151050,
"status": "paid",
"paid_at": "2026-05-19T10:01:00Z",
"created_at": "2026-05-19T10:00:00Z",
"updated_at": "2026-05-19T10:01:00Z"
}
]
}Response Fields
| Field | Keterangan |
|---|---|
transactions | Daftar transaksi. |
transactions[].id | UUID transaksi. |
transactions[].reference_id | ID transaksi dari Chiwa Pay. |
transactions[].merchant_reference_id | ID order dari merchant. |
transactions[].status | Status transaksi. |
transactions[].total_amount | Nominal yang harus dibayar pelanggan. |
HTTP Error Code
| HTTP | Code | Keterangan |
|---|---|---|
401 | invalid_api_key | Secret key tidak valid. |
403 | merchant_not_approved | Merchant belum aktif. |
500 | server_error | Transaksi gagal dimuat. |