{
"id":1,
"label": "Rekening Kantor",
"bank":"Mandiri",
"norekening":"151000000000",
"namarekening":"Bagus",
"date":"2022-00-00 00:00:00",
"type":"CREDIT",
"nominal":100000,
"desc":"MCM InhouseTrf CS-CS DARI XAVI3R - 0",
"saldo":101000
}
<?php
header('content-type: application/json');
$data = json_decode(file_get_contents('php://input'), true);
file_put_contents('mutasi.txt', '[' . date('Y-m-d H:i:s') . "]\n" . json_encode($data) . "\n\n", FILE_APPEND); // data transaksi disave ke file mutasi.txt
?>
Parameter |
[GET/POST]
|
Tipe |
api_key | API Key Akun (GET API KEY) | String (Wajib) |
<?php
$data = [
'api_key' => 'API_KEY_AKUN'
];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://xavi3r.tech/apiv2/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => http_build_query($data))
);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
{
"result":true,
"data":{
"bca":[
{
"account_number":"1234567890",
"account_name":"NAMA REKENING BCA",
"last_balance":0
}
],
"mandiri":[
{
"account_number":"1234567890",
"account_name":"NAMA REKENING MANDIRI",
"last_balance":100000
}
],
"gopay":[
{
"account_number":"1234567890",
"account_name":"NAMA EWALLET GOPAY",
"last_balance":2500
}
],
"ovo":[
{
"account_number":"1234567890",
"account_name":"NAMA EWALLET OVO",
"last_balance":60000
}
]
}
}
Parameter |
[GET/POST]
|
Tipe | Default |
api_key | API Key Akun (GET API KEY) | String (Wajib) | - |
bank | Daftar Kode Bank : Bank Mandiri : mandiri Bank BNI : bni Bank BCA : bca Bank Cimb Niaga : cimb Bank BRImo : brimo E-Wallet DANA : dana E-Wallet GOPAY : gopay E-Wallet OVO : ovo |
String (Wajib) | - |
norekening | No Rekening yang ingin diambil info & mutasi bank | Number (Wajib) | - |
start_date | Mengambil mutasi dengan tanggal awal (contoh: 2022-11-17) Parameter ini tidak berlaku untuk bank cimb (default: 10 transaksi terakhir) |
String (Tidak Wajib) | 2024-10-06 |
end_date | Mengambil mutasi dengan tanggal akhir (contoh: 2022-11-18) Parameter ini tidak berlaku untuk bank bni (default: mengikuti start_date) |
String (Tidak Wajib) | 2024-10-06 |
quantity | Mengambil mutasi dengan filter nominal transaksi Contoh : 50132 (Mencari nominal Rp. 50,132 dalam mutasi rekening) |
Number (Tidak Wajib) | - |
page | Mengambil mutasi dengan filter page (Khusus E-Wallet DANA) value "all" untuk semua page | String (Tidak Wajib) | 1 |
<?php
$data = [
'api_key' => 'API_KEY_AKUN',
'bank' => 'bca',
'norekening' => 'nomor_rekening',
'start_date' => '2024-10-03',
'end_date => '2024-10-06'
];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://xavi3r.tech/apiv2/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => http_build_query($data))
);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
{
"result":true,
"remaining_credit":49,
"start_date":"2022-01-01",
"end_date":"2022-01-31",
"data":{
"bank_code":"bni",
"account_name":"XAVI3R",
"account_number":"1001234567",
"account_balance":50028,
"credit_amount":28,
"debit_amount":18500,
"mutasi":[
{
"transaction_date":"31-Aug-2022",
"transaction_type":"DB",
"transaction_amount":7500,
"description":"BIAYA ADM KARTU",
"balance":50028
},
{
"transaction_date":"31-Aug-2022",
"transaction_type":"DB",
"transaction_amount":11000,
"description":"BIAYA ADM REK",
"balance":57528
},
{
"transaction_date":"31-Aug-2022",
"transaction_type":"CR",
"transaction_amount":28,
"description":"JASA GIRO\/BUNGA",
"balance":68528
}
]
}
}