curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/verifyacclinkacc-blb' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"VerifyAccLinkAccRequest": {
"MerchantType": "0088",
"TraceNo": "000009",
"CNIC": " xxxxxxxxxxxxx ",
"MobileNo": " xxxxxxxxxxx ",
"DateTime": "20210105201527",
"CompanyName": "NOVA",
"Reserved1": "01",
"Reserved2": "01",
"TransactionType": "02"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/verifyacclinkacc-blb',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"VerifyAccLinkAccRequest": {
"MerchantType": "0088",
"TraceNo": "000009",
"CNIC": " xxxxxxxxxxxxx ",
"MobileNo": " xxxxxxxxxxx ",
"DateTime": "20210105201527",
"CompanyName": "NOVA",
"Reserved1": "01",
"Reserved2": "01",
"TransactionType": "02"
}
})
};
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/verifyacclinkacc-blb',
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 =>'{
"VerifyAccLinkAccRequest": {
"MerchantType": "0088",
"TraceNo": "000009",
"CNIC": " xxxxxxxxxxxxx ",
"MobileNo": " xxxxxxxxxxx ",
"DateTime": "20210105201527",
"CompanyName": "NOVA",
"Reserved1": "01",
"Reserved2": "01",
"TransactionType": "02"
}
}',
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("http://dev.mfscode.com/zconnect/api/v2/verifyacclinkacc-blb")
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"] = "J94469094y39Z"
request["clientSecret"] = "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTAwNTkyMTN9.w3Jcgt9F8Dj2F1oR9LOdYuyzh2NlTCCBX61G_x9HTX_SV1bcqJM-2u73t29O61fEO9pITdOF5lb6o4345qeP9w"
request.body = JSON.dump({
"VerifyAccLinkAccRequest": {
"MerchantType": "0088",
"TraceNo": "000009",
"CNIC": " xxxxxxxxxxxxx ",
"MobileNo": " xxxxxxxxxxx ",
"DateTime": "20210105201527",
"CompanyName": "NOVA",
"Reserved1": "01",
"Reserved2": "01",
"TransactionType": "02"
}
})
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 \"VerifyAccLinkAccRequest\": {\r\n \"MerchantType\": \"0088\",\r\n \"TraceNo\": \"000009\",\r\n \"CNIC\": \" xxxxxxxxxxxxx \",\r\n \"MobileNo\": \" xxxxxxxxxxx \",\r\n \"DateTime\": \"20210105201527\",\r\n \"CompanyName\": \"NOVA\",\r\n \"Reserved1\": \"01\",\r\n \"Reserved2\": \"01\",\r\n \"TransactionType\": \"02\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("http://dev.mfscode.com/zconnect/api/v2/verifyacclinkacc-blb")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Accept", "application/json")
.addHeader("clientId", "J94469094y39Z")
.addHeader("clientSecret", "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTAwNTkyMTN9.w3Jcgt9F8Dj2F1oR9LOdYuyzh2NlTCCBX61G_x9HTX_SV1bcqJM-2u73t29O61fEO9pITdOF5lb6o4345qeP9w")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://z-sandbox.jsbl.com/zconnect/api/v2/verifyacclinkacc-blb");
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" +
@" ""VerifyAccLinkAccRequest"": {
" + "\n" +
@" ""MerchantType"": ""0088"",
" + "\n" +
@" ""TraceNo"": ""000009"",
" + "\n" +
@" ""CNIC"": "" xxxxxxxxxxxxx "",
" + "\n" +
@" ""MobileNo"": "" xxxxxxxxxxx "",
" + "\n" +
@" ""DateTime"": ""20210105201527"",
" + "\n" +
@" ""CompanyName"": ""NOVA"",
" + "\n" +
@" ""Reserved1"": ""01"",
" + "\n" +
@" ""Reserved2"": ""01"",
" + "\n" +
@" ""TransactionType"": ""02""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);