curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/ibft-blb' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"IBFTRequest": {
"MerchantType": "0088",
"TraceNo": "515407",
"CompanyName": "NOVA",
"DateTime": "20210706121213",
"TerminalId": "NOVA",
"SenderMobileNumber": "xxxxxxxxxxx",
"RecieverMobileNumber": " xxxxxxxxxxx ",
"SourceBankIMD": "603733",
"DestinstionBankIMD": "100196",
"DestinationAccount": "00020000011005325",
"Amount": "100",
"OtpPin": "01",
"MPin": "",
"PurposeOfPayment": "CAR LIFTING",
"SenderAcountTitle": "ALI ALI",
"RecieverAccountTitle": "TAIMOOR ALI 1-LINK",
"ToBankName": "MODEL BANK",
"ToBranchName": "LANDHI KARACHI",
"BenificiaryIBAN": "",
"Reserved1": "01"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/ibft-blb',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"IBFTRequest": {
"MerchantType": "0088",
"TraceNo": "515407",
"CompanyName": "NOVA",
"DateTime": "20210706121213",
"TerminalId": "NOVA",
"SenderMobileNumber": "xxxxxxxxxxx",
"RecieverMobileNumber": " xxxxxxxxxxx ",
"SourceBankIMD": "603733",
"DestinstionBankIMD": "100196",
"DestinationAccount": "00020000011005325",
"Amount": "100",
"OtpPin": "01",
"MPin": "",
"PurposeOfPayment": "CAR LIFTING",
"SenderAcountTitle": "ALI ALI",
"RecieverAccountTitle": "TAIMOOR ALI 1-LINK",
"ToBankName": "MODEL BANK",
"ToBranchName": "LANDHI KARACHI",
"BenificiaryIBAN": "",
"Reserved1": "01"
}
})
};
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/ibft-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 =>'{
"IBFTRequest": {
"MerchantType": "0088",
"TraceNo": "515407",
"CompanyName": "NOVA",
"DateTime": "20210706121213",
"TerminalId": "NOVA",
"SenderMobileNumber": "xxxxxxxxxxx",
"RecieverMobileNumber": " xxxxxxxxxxx ",
"SourceBankIMD": "603733",
"DestinstionBankIMD": "100196",
"DestinationAccount": "00020000011005325",
"Amount": "100",
"OtpPin": "01",
"MPin": "",
"PurposeOfPayment": "CAR LIFTING",
"SenderAcountTitle": "ALI ALI",
"RecieverAccountTitle": "TAIMOOR ALI 1-LINK",
"ToBankName": "MODEL BANK",
"ToBranchName": "LANDHI KARACHI",
"BenificiaryIBAN": "",
"Reserved1": "01"
}
}',
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/ibft-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"] = "364E9806o51K9"
request["clientSecret"] = "eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA"
request["organizationId"] = "223"
request.body = JSON.dump({
"IBFTRequest": {
"MerchantType": "0088",
"TraceNo": "515407",
"CompanyName": "NOVA",
"DateTime": "20210706121213",
"TerminalId": "NOVA",
"SenderMobileNumber": "xxxxxxxxxxx",
"RecieverMobileNumber": " xxxxxxxxxxx ",
"SourceBankIMD": "603733",
"DestinstionBankIMD": "100196",
"DestinationAccount": "00020000011005325",
"Amount": "100",
"OtpPin": "01",
"MPin": "",
"PurposeOfPayment": "CAR LIFTING",
"SenderAcountTitle": "ALI ALI",
"RecieverAccountTitle": "TAIMOOR ALI 1-LINK",
"ToBankName": "MODEL BANK",
"ToBranchName": "LANDHI KARACHI",
"BenificiaryIBAN": "",
"Reserved1": "01"
}
})
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 \"IBFTRequest\": {\r\n \"MerchantType\": \"0088\",\r\n \"TraceNo\": \"515407\",\r\n \"CompanyName\": \"NOVA\",\r\n \"DateTime\": \"20210706121213\",\r\n \"TerminalId\": \"NOVA\",\r\n \"SenderMobileNumber\": \"xxxxxxxxxxx\",\r\n \"RecieverMobileNumber\": \" xxxxxxxxxxx \",\r\n \"SourceBankIMD\": \"603733\",\r\n \"DestinstionBankIMD\": \"100196\",\r\n \"DestinationAccount\": \"00020000011005325\",\r\n \"Amount\": \"100\",\r\n \"OtpPin\": \"01\",\r\n \"MPin\": \"\",\r\n \"PurposeOfPayment\": \"CAR LIFTING\",\r\n \"SenderAcountTitle\": \"ALI ALI\",\r\n \"RecieverAccountTitle\": \"TAIMOOR ALI 1-LINK\",\r\n \"ToBankName\": \"MODEL BANK\",\r\n \"ToBranchName\": \"LANDHI KARACHI\",\r\n \"BenificiaryIBAN\": \"\",\r\n \"Reserved1\": \"01\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v2/ibft-blb")
.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/ibft-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" +
@" ""IBFTRequest"": {
" + "\n" +
@" ""MerchantType"": ""0088"",
" + "\n" +
@" ""TraceNo"": ""515407"",
" + "\n" +
@" ""CompanyName"": ""NOVA"",
" + "\n" +
@" ""DateTime"": ""20210706121213"",
" + "\n" +
@" ""TerminalId"": ""NOVA"",
" + "\n" +
@" ""SenderMobileNumber"": ""xxxxxxxxxxx"",
" + "\n" +
@" ""RecieverMobileNumber"": "" xxxxxxxxxxx "",
" + "\n" +
@" ""SourceBankIMD"": ""603733"",
" + "\n" +
@" ""DestinstionBankIMD"": ""100196"",
" + "\n" +
@" ""DestinationAccount"": ""00020000011005325"",
" + "\n" +
@" ""Amount"": ""100"",
" + "\n" +
@" ""OtpPin"": ""01"",
" + "\n" +
@" ""MPin"": """",
" + "\n" +
@" ""PurposeOfPayment"": ""CAR LIFTING"",
" + "\n" +
@" ""SenderAcountTitle"": ""ALI ALI"",
" + "\n" +
@" ""RecieverAccountTitle"": ""TAIMOOR ALI 1-LINK"",
" + "\n" +
@" ""ToBankName"": ""MODEL BANK"",
" + "\n" +
@" ""ToBranchName"": ""LANDHI KARACHI"",
" + "\n" +
@" ""BenificiaryIBAN"": """",
" + "\n" +
@" ""Reserved1"": ""01""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);