Verify OTP

This API will be used for OTP verification for Balance Inquiry and Mini Statement only

VerifyOTP

POST

Verify OTP

 

 

Description

 

This API will be used for the verification of OTP.

 

 

Version


V1


Resource URL

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


Header


Name Type Values Description Length

Authorization

String Bearer
Example: Bearer xxxxxxxxxxxxx
Access Token will be generated through OAuth API NA

Content-Type

String Example:
application/json
Only “application/json” Content-Type is supported. NA


 

 

Request Parameters

 

Name Description Parameter Type Sample Value

MerchantType

Merchant Type String 0088

TraceNo

Trace No Only numbers are allowed 418085

CompanyName

Company Name String Bifiler

DateTime

Date Time YYYYMMddHHmmss 20210105201527

CNIC

CNIC only numbers are allowed 5412509998908

MobileNo 

Mobile Number String 03243333323

OtpPin

OtpPin String

"LYtntTDTAs4QuaMQGfJ+CbuPDbzaNvhlYTz6NvjUZvEx78W4Nbd19OlFt52

QIXNs/NiWoXqCEYuVw1SFyVmlZ7tWNsK3S1yLnfEtGguTsZnyAKNcvlo4T

cbVySPA0xZZE+QhRstw5vMjqOMcoJ787LPGJXt45mVra8gSRwT1Ud3WuyT

bPZucFWLb9k/uqqIgE/1Qk5WubjLpFWQb6mAPA82KDzO1Tt8KGc9BKY/qN

PqSVOD1MQsv964xHAZ06VhqQxm4ds5sJ0QzQS9v5v/1loDAZ+/HDJ/u/x5Yl5

vjpdpSLjUqRJ4ycI6YfrX7wiklLWsGTf8WvlEOm8LQOyv7hw=="

Sample  Request

 

{

"VerifyOtpRequest":{

"MerchantType": "0088",

"TraceNo" : "418085",

"CompanyName" : "BIFILER",

"DateTime" : "20210105201527",

"CNIC" : "5412509998908",

"MobileNo" : "03243333323",

"OtpPin" :

"LYtntTDTAs4QuaMQGfJ+CbuPDbzaNvhlYTz6NvjUZvEx78W4Nbd19OlFt52QIXNs/NiWoXqCEYuVw1SFy

VmlZ7tWNsK3S1yLnfEtGguTsZnyAKNcvlo4TcbVySPA0xZZE+QhRstw5vMjqOMcoJ787LPGJXt45mVra8gSR

wT1Ud3WuyTbPZucFWLb9k/uqqIgE/1Qk5WubjLpFWQb6mAPA82KDzO1Tt8KGc9BKY/qNPqSVOD1MQsv96

4xHAZ06VhqQxm4ds5sJ0QzQS9v5v/1loDAZ+/HDJ/u/x5Yl5vjpdpSLjUqRJ4ycI6YfrX7wiklLWsGTf8WvlEOm8LQOyv7hw=="

 

}

Response Parameters

 

Name Description Parameter Type Sample Value

MerchantType

Merchant Type String  0088

TraceNo

Trace No Only numbers are allowed  410106

CompanyName

Company Name String  BIFILER

DateTime

Date Time YYYYMMddHHmmss  20210105201527

ResponseCode

Response Code Only numbers are allowed  38

ResponseDetails

Response Details String

 
Invalid otpPin

Sample  Response

 

{
    "VerifyOtpResponse": {
        "MerchantType": "0088",
        "TraceNo": "418085",
        "CompanyName": "BIFILER",
        "DateTime": "20210105201527",
        "ResponseCode": "98",
        "ResponseDetails": [
            "Invalid otpPin"
        ]
    }
}
 

 

Response Code Details


{
"requestId": "3091741309081",
"errorCode": "01",
"errorMessage": "Bad Request - Invalid Authorization Header"
}



{
"requestId": "3091741309081",
"errorCode": "03",
"errorMessage": "Bad Request - Invalid Request Payload"
}



{
"requestId": "3091741309081",
"errorCode": "04",
"errorMessage": "Bad Request - Resource not found"
}



{
"requestId": "3091741309081",
"errorCode": "05",
"errorMessage": "Bad Request - Invalid Access Token"
}
{
     "ResponseCode": "00",
    "ResponseDescription": "Successful",
    "Rrn": "",
    "MobileNumber": "03464991719",
    "Cnic": "53201-571166-0",
	"Otp": "12345"
     
}


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/verifyotp-blb"
    auth = "Bearer " + oauth_token;
    request(
    {
    method: 'POST'
    url : url,
    headers : {
    "Authorization" : auth
    }, json : {
    "MerchantType" :"",
    "TraceNo" :"",
    "CompanyName" :"",
    "DateTime" :"",
    "CNIC" :"",
    "MobileNo" :"",
    "OtpPin" :"",
    
    
    
    
    } }, function (error, response, body) {
    // TODO: Use the body object to extract the response
    console.log(body)
    }
    )
    
  • <?PHP
    
    $url = 'https://sandbox.jsbl.com/v2/verifyotp-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
    'MerchantType' => ' ',
    'TraceNo' => ' '
    'CompanyName' => ' ',
    'DateTime' => ' '
    'CNIC' => ' ',
    'MobileNo' => ' '
    'OtpPin' => ' '
    
    
    ); $data_string = json_encode($curl_post_data);
    
  • require 'net/http'
    require 'net/https'
    require 'uri'
    uri = URI('https://sandbox.jsbl.com/v2/verifyotp-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 = "{
    \"MerchantType\":\" \",
    \"TraceNo\":\" \"
    \"CompanyName\":\" \",
    \"DateTime\":\" \"
    \"CNIC\":\" \",
    \"MobileNo\":\" \"
    \"OtpPin\":\" \"
    
    }"
    response = http.request(request)
    puts response.read_body
    
  • curl -X POST --header "Authorization: 
    Bearer " --header "Content-Type: 
    application/json" -d "{ \"MobileNumber\":\" \",
    \"Cnic\":\" \",
    \"Otp\":\" \"
    
    }" "https://sandbox.jsbl.com/v2/verifyotp-blb"
    
  • OkHttpClient client = new OkHttpClient();
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{
    \"MerchantType\":\" \",
    \"TraceNo\":\" \"
    \"CompanyName\":\" \",
    \"DateTime\":\" \"
    \"CNIC\":\" \",
    \"MobileNo\":\" \"
    \"OtpPin\":\" \"
    
    
    }");
    Request request = new Request.Builder()
    .url("https://sandbox.jsbl.com/v2/verifyotp-blb")
    .post(body)
    .addHeader("authorization", "Bearer YOUR_OAUTH_TOKEN")
    .addHeader("content-type", "application/json")
    .build();
    Response response = client.newCall(request).execute(); 
    

FAQs

You need to go through the section "How it Works".

Prerequisite(s)

1. Authentication Bearer OAuth access token
Note: OTP verification for Balance Inquiry and Mini Statement only

Resource Summary

Security

Authentication

Content Type

application/json

Working...