{
"AccountDetailDataSuccess": [
{
"AccountNumber": "0201245680",
"Currency": "IDR",
"Balance": "118849999.53",
"AvailableBalance": "118849999.53",
"FloatAmount": "0.00",
"HoldAmount": "0.00",
"Plafon": "0.00"
}
],
"AccountDetailDataFailed": []
}
{
"ErrorCode": "ESB-14-009",
"ErrorMessage": {
"Indonesian": "Tidak berhak",
"English": "Unauthorized"
}
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680' \
--header 'x-api-Key: U2FsdG...' \
--header 'X-BCA-Key: eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c' \
--header 'X-BCA-SecretKey: 8396cf1c-88af-4211-be9b-c4ea5198f27f'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680',
headers: {
'x-api-Key': 'U2FsdG...',
'X-BCA-Key': 'eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c',
'X-BCA-SecretKey': '8396cf1c-88af-4211-be9b-c4ea5198f27f'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-Key: U2FsdG...',
'X-BCA-Key: eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c',
'X-BCA-SecretKey: 8396cf1c-88af-4211-be9b-c4ea5198f27f'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;