Informasi Rekening

API ini digunakan untuk memeriksa informasi akun perusahaan Anda, termasuk nama akun, saldo, dan status.

Endpoint

curl -X GET 'https://partner.api.bri.co.id/sandbox/v2/inquiry/888801000157508' \
  -H 'Authorization: Bearer {{TOKEN}}' \
  -H 'BRI-Signature: {{SIGNATURE}}' \
  -H 'BRI-Timestamp: {{TIMESTAMP}}'
<?php
$NoRek = "888801000157508";
$secret = "YOUR SECRET KEY";
$timestamp = gmdate("Y-m-d\TH:i:s.000\Z");
$token = $accesstoken;
$path = "/sandbox/v2/inquiry/".$NoRek;
$verb = "GET";
$body="";

$base64sign = generateSignature($path,$verb,$token,$timestamp,$body,$secret);

$urlGet ="https://partner.api.bri.co.id/sandbox/v2/inquiry/".$NoRek;
$chGet = curl_init();
curl_setopt($chGet,CURLOPT_URL,$urlGet);

$request_headers = array(
                    "Authorization:Bearer " . $token,
                    "BRI-Timestamp:" . $timestamp,
                    "BRI-Signature:" . $base64sign
                );
curl_setopt($chGet, CURLOPT_HTTPHEADER, $request_headers);
curl_setopt($chGet, CURLINFO_HEADER_OUT, true);

curl_setopt($chGet, CURLOPT_RETURNTRANSFER, true);

$resultGet = curl_exec($chGet);
$httpCodeGet = curl_getinfo($chGet, CURLINFO_HTTP_CODE);
curl_close($chGet);

$jsonGet = json_decode($resultGet, true);


echo "<br/> <br/>";
echo "Response Get : ".$resultGet;
echo "<br/> <br/>";
?

Contoh response:

{
    "responseCode": "0100",
    "responseDescription": "Inquiry success",
    "errorDescription": "",
    "Data": {
        "sourceAccount": "888801000157508",
        "sourceAccountName": "ALOYSIUS AGUS WARI Z",
        "sourceAccountStatus": "Rekening Aktif",
        "sourceAccountBalace": "49615063835.3",
        "registrationStatus": "Rekening terdaftar an. BRI Application Program Interface"
    }
}

 

HTTP Request

GET https://partner.api.bri.co.id/sandbox/v2/inquiry/{{ACCOUNT_NUMBER}}

 

URL Parameters

Parameter Type Max Char Mandatory Description
ACCOUNT_NUMBER Numeric 15 Yes You can use 888801000157508 or 888801000003301 in our sandbox environment

 

 

 

Account Transaction History

API ini akan menampilkan riwayat transaksi akun perusahaan Anda dengan jangka waktu maksimal satu bulan untuk setiap permintaan.

Endpoint

curl -X GET 'https://sandbox.partner.api.bri.co.id/v1/statement/888801000025507/2019-12-25/2019-12-25' \
  -H 'Authorization: Bearer {{TOKEN}}' \
  -H 'BRI-Signature: {{SIGNATURE}}' \
  -H 'BRI-Timestamp: {{TIMESTAMP}}'

Contoh response:

{
  "status": true,
  "data": [
    {
      "jenis_tran": "A",
      "nomor_rekening": "888801000025507",
      "tanggal_tran": "2019-03-02 17:22:27",
      "posisi_neraca": "Kredit",
      "mutasi_debet": "0.00",
      "mutasi_kredit": "10000000.00",
      "mata_uang": "IDR",
      "ket_tran": "trfSbxTab_23",
      "kode_tran": "8700",
      "nomor_reff": "582",
      "channel_id": "8888891",
      "saldo_awal_mutasi": "0.00",
      "saldo_akhir_mutasi": "10000000.00"
    },
    {
      "jenis_tran": "A",
      "nomor_rekening": "888801000025507",
      "tanggal_tran": "2019-03-21 18:18:43",
      "posisi_neraca": "Kredit",
      "mutasi_debet": "0.00",
      "mutasi_kredit": "100.00",
      "mata_uang": "IDR",
      "ket_tran": "tes",
      "kode_tran": "8700",
      "nomor_reff": "202270",
      "channel_id": "8888891",
      "saldo_awal_mutasi": "10000000.00",
      "saldo_akhir_mutasi": "10000100.00"
    }
  ]
}

HTTP Request

GET https://sandbox.partner.api.bri.co.id/v1/statement/{{ACCOUNT_NUMBER}}/{{START_DATE}}/{{END_DATE}}

URL Parameters

Parameter Type Max Char Mandatory Description
ACCOUNT_NUMBER Numeric 15 Yes You can use 888801000157508 or 888801000003301 in our sandbox environment
START_DATE Date 10 Yes Date format is yyyy-mm-dd
END_DATE Date 10 Yes Date format is yyyy-mm-dd