curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v1/debitCardIssuanceInquiry' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"DebitCardIssuInqRequest": {
"processingCode": "DebitCardIssueInquiry",
"merchantType": "0088",
"traceNo": "988641",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "03150242404",
"terminalId": "NOVA",
"pinType": "01",
"transactionType": "01",
"cnic": "4220112822287",
"cardProductTypeId": "3",
"reserved1": "02"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v1/debitCardIssuanceInquiry',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"DebitCardIssuInqRequest": {
"processingCode": "DebitCardIssueInquiry",
"merchantType": "0088",
"traceNo": "988641",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "03150242404",
"terminalId": "NOVA",
"pinType": "01",
"transactionType": "01",
"cnic": "4220112822287",
"cardProductTypeId": "3",
"reserved1": "02"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://z-sandbox.jsbl.com/zconnect/api/v1/debitCardIssuanceInquiry');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'clientId' => '364E9806o51K9',
'clientSecret' => 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId' => '223'
));
$request->setBody('{
\n "DebitCardIssuInqRequest": {
\n "processingCode": "DebitCardIssueInquiry",
\n "merchantType": "0088",
\n "traceNo": "988641",
\n "companyName": "NOVA",
\n "dateTime": "20210105201527",
\n "mobileNo": "03150242404",
\n "terminalId": "NOVA",
\n "pinType": "01",
\n "transactionType": "01",
\n "cnic": "4220112822287",
\n "cardProductTypeId": "3",
\n "reserved1": "02"
\n }
\n}');
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
require "uri"
require "json"
require "net/http"
url = URI("https://z-sandbox.jsbl.com/zconnect/api/v1/debitCardIssuanceInquiry")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
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({
"DebitCardIssuInqRequest": {
"processingCode": "DebitCardIssueInquiry",
"merchantType": "0088",
"traceNo": "988641",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "03150242404",
"terminalId": "NOVA",
"pinType": "01",
"transactionType": "01",
"cnic": "4220112822287",
"cardProductTypeId": "3",
"reserved1": "02"
}
})
response = https.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 \"DebitCardIssuInqRequest\": {\r\n \"processingCode\": \"DebitCardIssueInquiry\",\r\n \"merchantType\": \"0088\",\r\n \"traceNo\": \"988641\",\r\n \"companyName\": \"NOVA\",\r\n \"dateTime\": \"20210105201527\",\r\n \"mobileNo\": \"03150242404\",\r\n \"terminalId\": \"NOVA\",\r\n \"pinType\": \"01\",\r\n \"transactionType\": \"01\",\r\n \"cnic\": \"4220112822287\",\r\n \"cardProductTypeId\": \"3\",\r\n \"reserved1\": \"02\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v1/debitCardIssuanceInquiry")
.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/v1/debitCardIssuanceInquiry");
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" +
@" ""DebitCardIssuInqRequest"": {
" + "\n" +
@" ""processingCode"": ""DebitCardIssueInquiry"",
" + "\n" +
@" ""merchantType"": ""0088"",
" + "\n" +
@" ""traceNo"": ""988641"",
" + "\n" +
@" ""companyName"": ""NOVA"",
" + "\n" +
@" ""dateTime"": ""20210105201527"",
" + "\n" +
@" ""mobileNo"": ""03150242404"",
" + "\n" +
@" ""terminalId"": ""NOVA"",
" + "\n" +
@" ""pinType"": ""01"",
" + "\n" +
@" ""transactionType"": ""01"",
" + "\n" +
@" ""cnic"": ""4220112822287"",
" + "\n" +
@" ""cardProductTypeId"": ""3"",
" + "\n" +
@" ""reserved1"": ""02""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);