Balance Inquiry

The Api is used for Balance Inquiry

BalanceInquiry

POST

Balance Inquiry

 

 

Request Parameters

 

Name Description Parameter Type Sample Value

MerchantType

MerchantType Body 0088

TraceNo

TraceNo Body 226309

CompanyName

CompanyName Body BIFILER

DateTime

DateTime Body 20210603201527

MobileNo

MobileNo Body 03346578999

TerminalId

TerminalId Body BFILER

OtpPin

OtpPin Body alllll==

Reserved1

Reserved1 Body 02

 

 

 

 

 

 

 

 

 

 

 

Sample  Request

{

"BalanceInquiryRequest":{

"MerchantType" : "0088",

"TraceNo" : "211093",

"CompanyName" : "BFILER",

"DateTime" : "20210105201527",

"MobileNo" : "03345838445",

"TerminalId" : "BFILER",

"OtpPin": "alllll==",

"Reserved1": "02",

}

}

 

Response Parameters

 

Name Description Parameter Type Sample Value

MerchantType

MerchantType Body  0088

TraceNo

TraceNo Body  226309

CompanyName

CompanyName Body  BIFILER 

DateTime

DateTime Body  2021060321527

ResponseCode

ResponseCode Body  14

 

 

 

 

 

Sample  Response

{

"BalanceInquiryResponse": {

"MerchantType": "0088",

"TraceNo": "226309",

"CompanyName": "BIFILER",

"DateTime": "20210603201527",

"ResponseCode": "14",

"ResponseDetails": [

"User Not Found."

]

}

}

 

 

 

Resource URL

https://sandbox.jsbl.com/v2/ balanceInquiry-blb

Try out yourself

Header Parameters


Name Values Description
Authorization
(required)

Auth2.0 verification. "Bearer" keyword followed by a space and generated Access Token from OAuth API.Like "Bearer xxxxxxx"

Content-Type
(required)

Content Type applciation/json is supported

Body Parameters


Name Values Description
Request Body
(required)

Add values in JSON Body

Request Body

HTTP Basic

OAuth 2.0

API Key

Clear Request

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Code examples

  • var request = require('request'),
    oauth_token = "YOUR_ACCESS_TOKEN",
    url = "https://sandbox.jsbl.com/v2/balanceInquiry-blb"
    auth = "Bearer " + oauth_token;
    request(
    {
    method: 'POST'
    url : url,
    headers : {
    "Authorization" : auth
    }, json : {
    "DeviceTypeID" :"",
    "PIN" :"",
    "EncyptionType" :"",
    "UserID" :"",
    "BBAccountID" :""
    } },
    function (error, response, body) {
    // TODO: Use the body object to extract the response
    console.log(body)
    } )

  • <?PHP

    $url = 'https://sandbox.jsbl.com/v2/balanceInquiry-blb';
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_HTTPHEADER,
    array('Content-Type:application/json','Authorization:Bearer 
    ACCESS_TOKEN')); //setting custom header
    $curl_post_data = array(
    //Fill in the request parameters with valid values
    'DeviceTypeID' => ' ',
    'PIN' => ' ',
    'EncyptionType' => ' ',
    'UserID' => ' ',
    'BBAccountID' => ' '
    );
    $data_string = json_encode($curl_post_data);

  • require 'net/http'
    require 'net/https'
    require 'uri'
    uri = URI('https://sandbox.jsbl.com/v2/balanceInquiry-blb')
    http = Net::HTTP.new(uri.host, uri.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    request = Net::HTTP::Get.new(uri)
    request["accept"] = 'application/json'
    request["content-type"] = 'application/json'
    request["authorization"] = 'Bearer '
    request.body = "{
    \"DeviceTypeID\":\" \",
    \"PIN\":\" \",
    \"EncyptionType\":\" \",
    \"UserID\":\" \",
    \"BBAccountID\":\" \"
    }"
    response = http.request(request)
    puts response.read_body

  • curl -X POST --header "Authorization: 
    Bearer " --header "Content-Type: application/json" -d "{
    \"DeviceTypeID\":\" \",
    \"PIN\":\" \",
    \"EncyptionType\":\" \",
    \"UserID\":\" \",
    \"BBAccountID\":\" \"
    }" "https://sandbox.jsbl.com/v2/balanceInquiry-blb"

  • OkHttpClient client = new OkHttpClient();
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{
    \"DeviceTypeID\":\" \",
    \"PIN\":\" \",
    \"EncyptionType\":\" \",
    \"UserID\":\" \",
    \"BBAccountID\":\" \"
    }");
    Request request = new Request.Builder()
    .url("https://sandbox.jsbl.com/v2/balanceInquiry-blb")
    .post(body)
    .addHeader("authorization", "Bearer YOUR_OAUTH_TOKEN")
    .addHeader("content-type", "application/json")
    .build();
    Response response = client.newCall(request).execute();

Response Code Details




{
"requestId": "3091624162362",
"errorCode": "02",
"errorMessage": "Bad Request - Invalid MobileNumber"
}



{
"ResponseCode": "",
"ResponseDescription": "",
"Rrn": "",
"MobileNumber": "",
"Cnic": "",
"HashData": ""
}

FAQs

We take security very seriously. This API will make sure you execute your transactions in a safe and controlled environment. We are using the OAuth2 security mechanism.

This API can power your app with a robust set of permission-based consumer and business account and transactional data while adhering to bank-level security requirements. Effectively managing data is also key for regulatory reporting. You use the API to authenticate your users easily through your web/desktop and mobile applications. This will enable you to extend reach and attract additional customers.

In order to actually access the account and retrieve the requested data, account holders need to authorize your application and allow it to access their account. This is achieved using OAuth 2.

The Client Token, commonly referred to as access_token in code samples, is a credential that can be used by a client to access an API.

You can find all the validation rules under the API docs.



Prerequisite(s)

1. Authentication Bear OAuth access token

2.Balance Inquiry OTP

Resource Summary

Security:

Content Type:

application/json

Working...