curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/changempin-blb2' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"ChangeMpinRequest": {
"processingCode": "UpdateMPIN",
"merchantType": "0088",
"traceNo": "000006",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"oldMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"newMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\/Opgn2OByYLcYs9fPs3AjTTYZI\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==",
"confirmMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\/Opgn2OByYLcYs9fPs3AjTTYZI\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A=="
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/changempin-blb2',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"ChangeMpinRequest": {
"processingCode": "UpdateMPIN",
"merchantType": "0088",
"traceNo": "000006",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"oldMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"newMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE/Opgn2OByYLcYs9fPs3AjTTYZI/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==",
"confirmMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE/Opgn2OByYLcYs9fPs3AjTTYZI/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A=="
}
})
};
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/changempin-blb2',
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 =>'{
"ChangeMpinRequest": {
"processingCode": "UpdateMPIN",
"merchantType": "0088",
"traceNo": "000006",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"oldMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\\/Vj9\\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"newMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\\/Opgn2OByYLcYs9fPs3AjTTYZI\\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==",
"confirmMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\\/Opgn2OByYLcYs9fPs3AjTTYZI\\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A=="
}
}',
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/changempin-blb2")
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({
"ChangeMpinRequest": {
"processingCode": "UpdateMPIN",
"merchantType": "0088",
"traceNo": "000006",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"terminalId": "NOVA",
"oldMpin": "ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX/Vj9/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw==",
"newMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE/Opgn2OByYLcYs9fPs3AjTTYZI/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==",
"confirmMpin": "UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE/Opgn2OByYLcYs9fPs3AjTTYZI/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A=="
}
})
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 \"ChangeMpinRequest\": {\r\n \"processingCode\": \"UpdateMPIN\",\r\n \"merchantType\": \"0088\",\r\n \"traceNo\": \"000006\",\r\n \"companyName\": \"NOVA\",\r\n \"dateTime\": \"20210105201527\",\r\n \"mobileNo\": \"xxxxxxxxxxx\",\r\n \"terminalId\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F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v2/changempin-blb2")
.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/changempin-blb2");
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" +
@" ""ChangeMpinRequest"": {
" + "\n" +
@" ""processingCode"": ""UpdateMPIN"",
" + "\n" +
@" ""merchantType"": ""0088"",
" + "\n" +
@" ""traceNo"": ""000006"",
" + "\n" +
@" ""companyName"": ""NOVA"",
" + "\n" +
@" ""dateTime"": ""20210105201527"",
" + "\n" +
@" ""mobileNo"": ""xxxxxxxxxxx"",
" + "\n" +
@" ""terminalId"": ""NOVA"",
" + "\n" +
@" ""oldMpin"": ""ZarH77yWmgdnieZNwITKvM7aYrwBN5NsmNtLw8yvhPJz0w\/jgsxcinpsvjLA2nab1O9A5IkwLq6QMKWduR4QoW4K\/7ZTK8Fxnrm6fCYCf78XSheT7jsZOoByY8kPYzk2BC2sZRLbdUnj8DolsaXfUBn+qiHqD70QtrvegqD8hEwe1HLojELFuW8ghFSFDVscBRdv04mWCqnzUcAVZ2rSyX\/Vj9\/HbxiqogvrWJCrKg5OZlz2RofDwMLb2UNjWrdn1pHx+OKpHG5tMJTKmhyl7HKXyvboTjT2VieaL87hsvIJW6RMx2sUe99UQg9VnCtyU6T1Q6s0CysIXUpUhnoFJw=="",
" + "\n" +
@" ""newMpin"": ""UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\/Opgn2OByYLcYs9fPs3AjTTYZI\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A=="",
" + "\n" +
@" ""confirmMpin"": ""UQM6qeN2SwOEHCV1cXm+9TEJgsh7o7UmxIzZ8gHoc94\/VqXwS9bRDoEUhIGR3xe0wEf77LdRabEmfupG5iLKy8uoB99BXLqFpk6y3+wBesKE\/Opgn2OByYLcYs9fPs3AjTTYZI\/3CfWd8qzgZ63C8QrCpQw2SiDgkDX4P8k6Q4Q4gY26GBTT6j9qPsGtYiopxWUPb22B25QVsJClrcBxZk8CdNTCR0kbGqf14gsfLc2gHQt5ayEYLYqfklBOv40PhVu4eYdsrKXcz6UZlCQwXjTISyJDMfOHg8YmRsVPZz4nM5KyX7F+YGa9q1egVgCPDeLA5ovdnVGqQVQjRyio4A==""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
has context menu
Compose