Transaction
Riwayat Transaksi (History)
Ambil daftar transaksi berdasarkan berbagai filter.
Coba di Postman
Ambil daftar transaksi berdasarkan berbagai filter.
Endpoint
URL: {{baseUrl}}/api/v2/history
Metode: POST
Request Headers
| Kunci | Nilai | Deskripsi |
|---|---|---|
Content-Type | application/json | |
signature | {{signature}} | Signature yang dihasilkan. Lihat Pembuatan Signature. |
va | {{va}} | Nomor Virtual Account Anda. |
timestamp | {{timestamp}} | Timestamp saat ini. |
Request Body
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
status | string | Tidak | Filter berdasarkan kode status (misal, 1 untuk sukses). |
date | string | Tidak | Tipe filter tanggal: created_at atau indate (tanggal bayar). |
startdate | string | Tidak | Tanggal mulai (YYYY-MM-DD). |
enddate | string | Tidak | Tanggal akhir (YYYY-MM-DD). |
page | number | Tidak | Nomor halaman (default 1). |
limit | number | Tidak | Limit per halaman (maks 20). |
orderBy | string | Tidak | id, created_at, atau indate. |
order | string | Tidak | ASC atau DESC. |
lang | string | Tidak | en atau id. |
Contoh Request
{
"status": "1",
"orderBy": "id",
"order": "DESC",
"limit": "10"
}Contoh Response
{
"Status": 200,
"Success": true,
"Message": "Success",
"Data": {
"Total": 150,
"Per_Page": 10,
"Current_Page": 1,
"Total_Page": 15,
"Results": [
{
"TransactionId": 341189,
"ReferenceId": "INV-001",
"Amount": 10000,
"Fee": 4000,
"Status": 1,
"StatusDesc": "Berhasil",
"Type": 11,
"TypeDesc": "Convenience Store",
"CreatedDate": "2023-11-23 10:00:00"
}
// ... transaksi lainnya
]
}
}