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