Login Pin Change

This API is used for Login Pin Change

LoginPinChange

POST

Login Pin Change

 

 

Description

 

This API is used for Login Pin Change.

 

 

Version


V2


Resource URL

https://sandbox.jsbl.com /v2/loginpinchange-blb2


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

processingCode

processing Code String LoginPinChange

merchantType

merchant Type String 0088

traceNo

trace No Only numbers are allowed 512206

companyName

company Name String NOVA

dateTime

date Time YYYYMMddHHmmss 20210105201527

mobileNo

mobile No String 03422142169

channelId

channel Id String NOVA

terminalId

terminal Id String NOVA

OldLoginPin

Old Login Pin String

WE9RZ/BXOK0BU6TJzYD2D12cXFas6RHyGdtviBelTJ47uc4

MJntGH9B+PGvwfJjs5A8R8EscVRiXrptGbjrKW3lcU+p4fWg7

2XKMQ6W570Tsp78OIHLg2sAkPlLPH1ZXUW00c5dQpf0456

S2PsiAwCT/uDkqMC7CZ4fQ5dXIWlrBHWo7MEXd/h9gt8trK

HMTW9LmjO4NxS8Y7yUPmWUHwqRnXlqjVX0nmpB6n+b+

RBjA5EJlC7n3pa6fxXytwMp4H6p4dxDf3YCTGHZkYzER109I

og4/IkLoeYDhSSYMV0OJ3hRU7iEZi99DR1T9h6kiF DMrTKq

Pf0wEnhUFHP7/xw==

loginPin

login Pin String

OCJNZ5NAJkbqOkl5SrfFsMrk/Plx4hb0loJnTU0Li7SXBrXT2P/

g94/uRZn29HiD3X+1KcF8OvxK3mt+UMmdBY8Zg0+KLxbCi

VsDD8gM1kl7pkJrvX/FsFuq2EbhTdMV2Bb4cM4lCl8AphQrp

VRm7B1+UxJyweiHnFwSjCuo1kGZhtk4HSly6jT3FGdoMeYc

MwWYpnIzMMPCn4hE66xXoLE+Grva1l9urusnx9q+z9xxOV3

dVzY0w9qfZniqGEDHQm3AHulxeT0E2TguL9KL3R708Tyv7

kYGkDrwPavAzvKbYp+TY/GGYLn+/bu/6jvVdDazIS6SAvTf

C08o5jq oAw==

confirmLoginPin

confirm Login Pin String

OCJNZ5NAJkbqOkl5SrfFsMrk/Plx4hb0loJnTU0Li7SXBrXT2P/

g94/uRZn29HiD3X+1KcF8OvxK3mt+UMmdBY8Zg0+KLxbCi

VsDD8gM1kl7pkJrvX/FsFuq2EbhTdMV2Bb4cM4lCl8AphQrp

VRm7B1+UxJyweiHnFwSjCuo1kGZhtk4HSly6jT3FGdoMeYc

MwWYpnIzMMPCn4hE66xXoLE+Grva1l9urusnx9q+z9xxOV

3dVzY0w9qfZniqGEDHQm3AHulxeT0E2TguL9KL3R708Tyv

7kYGkDrwPavAzvKbYp+TY/GGYLn+/bu/6jvVdDazIS6SAvT

fC08o5jq oAw==

reserved1

reserved 1 String NA

reserved2

reserved 2 String NA

 

 

Sample  Request

 

{"LoginPinChangeRequest":{
"processingCode": "LoginPinChange",
"merchantType": "0088",
"traceNo": "512206",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "03422142169",
"channelId": "NOVA",
"terminalId": "NOVA",
"OldLoginPin":"WE9RZ/BXOK0BU6TJzYD2D12cXFas6RHyGdtviBelTJ47uc4MJntGH9B+PGvwfJjs5A8R8EscVRiXrptGbjrKW3lcU+p4fWg72XKMQ6W570Tsp78OIHLg2sAkPlLPH1ZXUW00c5dQpf0456S2PsiAwCT/uDkqMC7CZ4fQ5dXIWlrBHWo7MEXd/h9gt8trKHMTW9LmjO4NxS8Y7yUPmWUHwqRnXlqjVX0nmpB6n+b+RBjA5EJlC7n3pa6fxXytwMp4H6p4dxDf3YCTGHZkYzER109Iog4/IkLoeYDhSSYMV0OJ3hRU7iEZi99DR1T9h6kiFDMrTKqPf0wEnhUFHP7/xw==",
"loginPin": "OCJNZ5NAJkbqOkl5SrfFsMrk/Plx4hb0loJnTU0Li7SXBrXT2P/g94/uRZn29HiD3X+1KcF8OvxK3mt+UMmdBY8Zg0+KLxbCiVsDD8gM1kl7pkJrvX/FsFuq2EbhTdMV2Bb4cM4lCl8AphQrpVRm7B1+UxJyweiHnFwSjCuo1kGZhtk4HSly6jT3FGdoMeYcMwWYpnIzMMPCn4hE66xXoLE+Grva1l9urusnx9q+z9xxOV3dVzY0w9qfZniqGEDHQm3AHulxeT0E2TguL9KL3R708Tyv7kYGkDrwPavAzvKbYp+TY/GGYLn+/bu/6jvVdDazIS6SAvTfC08o5jqoAw==",
"confirmLoginPin": "OCJNZ5NAJkbqOkl5SrfFsMrk/Plx4hb0loJnTU0Li7SXBrXT2P/g94/uRZn29HiD3X+1KcF8OvxK3mt+UMmdBY8Zg0+KLxbCiVsDD8gM1kl7pkJrvX/FsFuq2EbhTdMV2Bb4cM4lCl8AphQrpVRm7B1+UxJyweiHnFwSjCuo1kGZhtk4HSly6jT3FGdoMeYcMwWYpnIzMMPCn4hE66xXoLE+Grva1l9urusnx9q+z9xxOV3dVzY0w9qfZniqGEDHQm3AHulxeT0E2TguL9KL3R708Tyv7kYGkDrwPavAzvKbYp+TY/GGYLn+/bu/6jvVdDazIS6SAvTfC08o5jqoAw==",
"reserved1": "",
"reserved2": ""
}}
 

Response Parameters

 

Name Description Parameter Type Sample Value

processingCode

processing Code String  LoginPinChange

merchantType

merchant Type String  0088

traceNo

trace No Only numbers are allowed  512206

companyName

company Name String  NOVA

dateTime

date Time YYYYMMddHHmmss  20210105201527

responseCode

response Code String

 00

response Details

response Details String  Successful

rrn

rrn String

 NOVA20210105201527512206

responseDescription

response Description String  Successful

responseDateTime

response Date Time String

 20210105201527

 

 

Sample  Response

 

{

"processingCode": "LoginPinChange",

"merchantType": "0088",

"traceNo": "512206",

"companyName": "NOVA",

"dateTime": "20210105201527",

"responseCode": "00",

"responseDetails": ["Successful"],

"rrn": "NOVA20210105201527512206",

"responseDescription": "Successful",

"responseDateTime": "20210105201527" 

}

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": "3520214402765",
    
}


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 application/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/loginpinchange-blb2"
    auth = "Bearer " + oauth_token;
    request(
    {
    method: 'POST'
    url : url,
    headers : {
    "Authorization" : auth
    }, json : {
    "processingCode" :"",
    "merchantType" :"",
    "traceNo" :"",
    "companyName" :"",
    "dateTime" :"",
    "mobileNo" :"",
    "channelId" :"",
    "terminalId" :"",
    "OldLoginPin" :"",
    "loginPin" :"",
    "confirmLoginPin" :"",
    "reserved1" :"",
    "reserved2" :""
    
    } }, function (error, response, body) {
    // TODO: Use the body object to extract the response
    console.log(body)
    }
    )
    
  • <?PHP
    
    $url = 'https://sandbox.jsbl.com/v2/loginpinchange-blb2';
    $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
    'processingCode' => ' ',
    'merchantType' => ' ',
    'traceNo' => ' ',
    'companyName' => ' ',
    'dateTime' => ' ',
    'mobileNo' => ' ',
    'channelId' => ' ',
    'terminalId' => ' ',
    'OldLoginPin' => ' ',
    'loginPin' => ' ',
    'confirmLoginPin' => ' ',
    'reserved1' => ' ',
    'reserved2' => ' ',
    
    ); $data_string = json_encode($curl_post_data);
    
  • require 'net/http'
    require 'net/https'
    require 'uri'
    uri = URI('https://sandbox.jsbl.com/v2/loginpinchange-blb2')
    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 = "{
    "processingCode" :"",
    "merchantType" :"",
    "traceNo" :"",
    "companyName" :"",
    "dateTime" :"",
    "mobileNo" :"",
    "channelId" :"",
    "terminalId" :"",
    "OldLoginPin" :"",
    "loginPin" :"",
    "confirmLoginPin" :"",
    "reserved1" :""
    "reserved2" :""
    response = http.request(request)
    puts response.read_body
    
  • curl -X POST --header "Authorization: 
    Bearer " --header "Content-Type: 
    "processingCode" :"",
    "merchantType" :"",
    "traceNo" :"",
    "companyName" :"",
    "dateTime" :"",
    "mobileNo" :"",
    "channelId" :"",
    "terminalId" :"",
    "OldLoginPin" :"",
    "loginPin" :"",
    "confirmLoginPin" :"",
    "reserved1" :""
    "reserved2" :""
    
    }" "https://sandbox.jsbl.com/v2/loginpinchange-blb2"
    
  • OkHttpClient client = new OkHttpClient();
    MediaType mediaType = MediaType.parse("application/json");
    RequestBody body = RequestBody.create(mediaType, "{
    "processingCode" :"",
    "merchantType" :"",
    "traceNo" :"",
    "companyName" :"",
    "dateTime" :"",
    "mobileNo" :"",
    "channelId" :"",
    "terminalId" :"",
    "OldLoginPin" :"",
    "loginPin" :"",
    "confirmLoginPin" :"",
    "reserved1" :""
    "reserved2" :""
    
    }");
    Request request = new Request.Builder()
    .url("https://sandbox.jsbl.com/v2/loginpinchange-blb2")
    .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 Bear OAuth access token

Resource Summary

Security

Authentication

Content Type

application/json

Working...