Generate MPin

Documentations

Documentations for API

End Points

https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin

Http Method

POST

Header

Name Type Values Description
Accept JSON application/json
Content-Type JSON application/json
clientId String *************
clientSecret String Access-Token Auth2.0 verification
organizationId String 223 Authenticate organization

Request Parameters

Name Description Required Parameter Type Length Sample Value
processingCode processingCode Mandatory STRING 12 GenerateMP
MerchantType MerchantType Mandatory STRING 4 0088
TraceNo TraceNo Mandatory STRING 6 000004
CompanyName CompanyName Mandatory STRING 4 NOVA
DateTime DateTime Mandatory STRING 14 2022072210
MobileNo MobileNo Mandatory STRING 11 xxxxxxxxxx
TerminalId TerminalId Mandatory STRING 4 NOVA
mPin mPin Mandatory STRING 344 ZarH77yWmg
confirmMpin confirmMpin Mandatory STRING 344 ZarH77yWmg

Sample Request

{
    "GenerateMpinRequest": {
        "processingCode": "GenerateMPIN",
        "merchantType": "0088",
        "traceNo": "000004",
        "companyName": "NOVA",
        "dateTime": "20220722103315",
        "mobileNo": "xxxxxxxxxxx",
        "terminalId": "NOVA",
        "mPin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
        "confirmMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="
    }
}

Response Parameters

Name Description Parameter Type Length Sample Value
processingCode processingCode String 12 GenerateMPIN
MerchantType MerchantType String 4 0088
TraceNo TraceNo String 6 000004
CompanyName CompanyName String 4 NOVA
DateTime DateTime String 14 20220722103315
mobileNetwork mobileNetwork String 0
ResponseCode ResponseCode String 2 00
ResponseDetails ResponseDetails object 14 ["Successful"]

Response Sample

{
    "GenerateMpinResponse": {
        "processingCode": "GenerateMPIN",
        "merchantType": "0088",
        "traceNo": "000004",
        "companyName": "NOVA",
        "dateTime": "20220722103315",
        "mobileNetwork": "",
        "responseCode": "00",
        "responseDetails": ["Successful"]
    }
}
curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"GenerateMpinRequest": {
"processingCode": "GenerateMPIN",
"merchantType": "0088",
"traceNo": "000004",
"companyName": "NOVA",
"dateTime": "20220722103315",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"mPin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"confirmMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"GenerateMpinRequest": {
"processingCode": "GenerateMPIN",
"merchantType": "0088",
"traceNo": "000004",
"companyName": "NOVA",
"dateTime": "20220722103315",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"mPin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"confirmMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="
}
})



};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});




$curl = curl_init();



curl_setopt_array($curl, array(
CURLOPT_URL => 'https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"GenerateMpinRequest": {
"processingCode": "GenerateMPIN",
"merchantType": "0088",
"traceNo": "000004",
"companyName": "NOVA",
"dateTime": "20220722103315",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"mPin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\\/Vj9\\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"confirmMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\\/Vj9\\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept: application/json',
'clientId: 364E9806o51K9',
'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId: 223'
),
));



$response = curl_exec($curl);



curl_close($curl);
echo $response;
require "uri"
require "json"
require "net/http"



url = URI("https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin")



http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["Accept"] = "application/json"
request["clientId"] = "364E9806o51K9"
request["clientSecret"] = "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA"
request["organizationId"] = "223"
request.body = JSON.dump({
"GenerateMpinRequest": {
"processingCode": "GenerateMPIN",
"merchantType": "0088",
"traceNo": "000004",
"companyName": "NOVA",
"dateTime": "20220722103315",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"mPin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"confirmMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="
}
})



response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"GenerateMpinRequest\": {\r\n \"processingCode\": \"GenerateMPIN\",\r\n \"merchantType\": \"0088\",\r\n \"traceNo\": \"000004\",\r\n \"companyName\": \"NOVA\",\r\n \"dateTime\": \"20220722103315\",\r\n \"mobileNo\": \"xxxxxxxxxxx\",\r\n \"terminalId\": \"NOVA\",\r\n \"mPin\": \"ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\\/Vj9\\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==\",\r\n \"confirmMpin\": \"ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\\/Vj9\\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Accept", "application/json")
.addHeader("clientId", "364E9806o51K9")
.addHeader("clientSecret", "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA")
.addHeader("organizationId", "223")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://z-sandbox.jsbl.com/zconnect/api/v2/generateMpin");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Accept", "application/json");
request.AddHeader("clientId", "364E9806o51K9");
request.AddHeader("clientSecret", "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA");
request.AddHeader("organizationId", "223");
var body = @"{
" + "\n" +
@" ""GenerateMpinRequest"": {
" + "\n" +
@" ""processingCode"": ""GenerateMPIN"",
" + "\n" +
@" ""merchantType"": ""0088"",
" + "\n" +
@" ""traceNo"": ""000004"",
" + "\n" +
@" ""companyName"": ""NOVA"",
" + "\n" +
@" ""dateTime"": ""20220722103315"",
" + "\n" +
@" ""mobileNo"": ""xxxxxxxxxxx"",
" + "\n" +
@" ""terminalId"": ""NOVA"",
" + "\n" +
@" ""mPin"": ""ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="",
" + "\n" +
@" ""confirmMpin"": ""ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Response Code Details

{
    "GenerateMpinResponse": {
        "processingCode": "GenerateMPIN",
        "merchantType": "0088",
        "traceNo": "000004",
        "companyName": "NOVA",
        "dateTime": "20220722103315",
        "mobileNetwork": "",
        "responseCode": "00",
        "responseDetails": ["Successful"]
    }
}
{
    "messages": "Bad Request - Invalid Access Token",
    "errorcode": "4001"
}

{
    "messages": "Bad Request - Invalid Request Payload",
    "errorcode": "4002"
}

{
    "messages": "Bad Request - Invalid Authorization Header",
    "errorcode": "4003"
}

{
    "messages": "Something Went Wrong",
    "errorcode": "4004"
}

{
    "messages": "Record Not Found",
    "errorcode": "4005"
}

{
    "messages": "Invalid Client Id\/Secret",
    "errorcode": "4006"
}

{
    "messages": "Bad Request - Invalid Access Token",
    "errorcode": "4007"
}

Try out yourself

Security

X-IBM-Client-Id(apiKey located in header)
X-IBM-Client-Secret(apiKey located in header)
1c48aa28-2614-486f-aa2c-cbc86cc7ab51

Header Parameter

Name Values Description
Content-Type application/json Content Type application/json is supported
Accept application/json Content Type application/json is supported
organizationId xyz You will make a call to the auth-blb api and give it your client ID. You should add the client secret and organisation ID it returns here.
clientId Enter your verified Client Id
clientSecret Enter Your Verified Client Secret

Request Body

Response Body