Change MPIN

This API will change customer MPIN.

ChangeMPIN

POST

ChangeMPIN

 

 

Description

 

This API will change customer MPIN.

 

 

Version


V2


Resource URL

https://sandbox.jsbl.com/v2 /changempin-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 UpdateMPIN

merchantType

merchant Type String 0088

traceNo

trace No Only numbers are allowed 211865

companyName

company Name String NOVA

dateTime

date Time YYYYMMddHHmmss 20210105201527

mobileNo

mobile No String 03343638551

channelId

channel Id String NOVA

oldMpin

old Mpin String

Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx/yxFV5udyB0

ABKGP/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7

eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1Ne

G60KRBHhtDs/wytgHxmlGKony4vhnizu3tBy9/8aeXOsVKw7

slDs2kYW1VIvc70mE/y4rTYkacROo8yWNUKxySo5PKCVEna

Mf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYw

aBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6

kT XsEIw==

newMpin

new Mpin String

TF/yCunBCsrapk2hMZsIXr42Dk13aFXq4nM72gVk80Irf/n26F

GpforoNJeKaHKH4+yutV63UzCn2ksWoY26AkTWaELeYcEv

TcQzecrLSYNXyzja9yarpKPZyhQKMR5vMJFppYQDswOSQ

UjNO5sin/UPwGIO1RY0saz3L/y3ZVqNNp/xNlzWOdBlgngkj

2MV8jWQP0GBYnQB16nsvqK8ktFjLNYbFkJ4rUeWeNRQK

Xh8Wgx3KCaflhbAbTNG2s3XsFL1Yx8HcivPOWntnxQC7tq

J7DmWJRu7XZXujlIvvGEcGnBtLZo4qumekx01q20fXDUdW

iuC8DX8jj wiNOOBMQ==

confirmMpin

confirm Mpin String

TF/yCunBCsrapk2hMZsIXr42Dk13aFXq4nM72gVk80Irf/n26F

GpforoNJeKaHKH4+yutV63UzCn2ksWoY26AkTWaELeYcE

vTcQzecrLSYNXyzja9yarpKPZyhQKMR5vMJFppYQDswOSQ

UjNO5sin/UPwGIO1RY0saz3L/y3ZVqNNp/xNlzWOdBlgngkj2

MV8jWQP0GBYnQB16nsvqK8ktFjLNYbFkJ4rUeWeNRQKX

h8Wgx3KCaflhbAbTNG2s3XsFL1Yx8HcivPOWntnxQC7tqJ7

DmWJRu7XZXujlIvvGEcGnBtLZo4qumekx01q20fXDUdWiu

C8DX8jj wiNOOBMQ==

 

 

Sample  Request

{"ChangeMpinRequest":
{"processingCode" : "UpdateMPIN",
"merchantType" : "0088",
"traceNo" : "211865",
"companyName" : "NOVA",
"dateTime" : "20210105201527",
"mobileNo" : "03343638551",
"terminalId" : "NOVA",
"oldMpin" : "Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx/yxFV5udyB0ABKGP/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs/wytgHxmlGKony4vhnizu3tBy9/8aeXOsVKw7slDs2kYW1VIvc70mE/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==",
"newMpin" : "TF/yCunBCsrapk2hMZsIXr42Dk13aFXq4nM72gVk80Irf/n26FGpforoNJeKaHKH4+yutV63UzCn2ksWoY26AkTWaELeYcEvTcQzecrLSYNXyzja9yarpKPZyhQKMR5vMJFppYQDswOSQUjNO5sin/UPwGIO1RY0saz3L/y3ZVqNNp/xNlzWOdBlgngkj2MV8jWQP0GBYnQB16nsvqK8ktFjLNYbFkJ4rUeWeNRQKXh8Wgx3KCaflhbAbTNG2s3XsFL1Yx8HcivPOWntnxQC7tqJ7DmWJRu7XZXujlIvvGEcGnBtLZo4qumekx01q20fXDUdWiuC8DX8jjwiNOOBMQ==",
"confirmMpin" : "TF/yCunBCsrapk2hMZsIXr42Dk13aFXq4nM72gVk80Irf/n26FGpforoNJeKaHKH4+yutV63UzCn2ksWoY26AkTWaELeYcEvTcQzecrLSYNXyzja9yarpKPZyhQKMR5vMJFppYQDswOSQUjNO5sin/UPwGIO1RY0saz3L/y3ZVqNNp/xNlzWOdBlgngkj2MV8jWQP0GBYnQB16nsvqK8ktFjLNYbFkJ4rUeWeNRQKXh8Wgx3KCaflhbAbTNG2s3XsFL1Yx8HcivPOWntnxQC7tqJ7DmWJRu7XZXujlIvvGEcGnBtLZo4qumekx01q20fXDUdWiuC8DX8jjwiNOOBMQ=="
}
}
 

 

Response Parameters

 

Name Description Parameter Type Sample Value

processingCode

processing Code String  UpdateMPIN

merchantType

merchant Type String  0088

traceNo

trace No Only numbers are allowed  223055

companyName

company Name String  BIFILER

dateTime

date Time YYYYMMddHHmmss  20210105201527

mobileNetwork

mobile No String

 UFONE

responseCode

response Code String  00

responseDetails

response Details String

 Successful

 

 

Sample  Response

{
    "ChangeMpinResponse": {
        "processingCode": "UpdateMPIN",
        "merchantType": "0088",
        "traceNo": "211865",
        "companyName": "NOVA",
        "dateTime": "20210105201527",
        "mobileNetwork": "",
        "responseCode": "00",
        "responseDetails": "["Successful"]"
    }
}
 

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