curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v1/CoreToWallet' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"CoreToWalletReq": {
"ProcessingCode": "CoreToWallet",
"OtpPin": "",
"PinType": "01",
"TraceNo": "670289",
"DateTime": "20220715201529",
"MobileNo": "03139211025",
"ChannelId": "NEEM",
"ProductId": "10245253",
"Reserved1": "01",
"Reserved2": "",
"Reserved3": "",
"Reserved4": "",
"Reserved5": "",
"Reserved6": "",
"Reserved7": "",
"Reserved8": "",
"Reserved9": "",
"Reserved10": "",
"TerminalId": "NEEM",
"CompanyName": "NEEM",
"MerchantType": "0088",
"TransactionAmount": "150",
"AccountIdentification1_102": "0000102420"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v1/CoreToWallet',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"CoreToWalletReq": {
"ProcessingCode": "CoreToWallet",
"OtpPin": "",
"PinType": "01",
"TraceNo": "670289",
"DateTime": "20220715201529",
"MobileNo": "03139211025",
"ChannelId": "NEEM",
"ProductId": "10245253",
"Reserved1": "01",
"Reserved2": "",
"Reserved3": "",
"Reserved4": "",
"Reserved5": "",
"Reserved6": "",
"Reserved7": "",
"Reserved8": "",
"Reserved9": "",
"Reserved10": "",
"TerminalId": "NEEM",
"CompanyName": "NEEM",
"MerchantType": "0088",
"TransactionAmount": "150",
"AccountIdentification1_102": "0000102420"
}
})
};
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/CoreToWallet');
$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 "CoreToWalletReq": {
\n "ProcessingCode": "CoreToWallet",
\n "OtpPin": "",
\n "PinType": "01",
\n "TraceNo": "670289",
\n "DateTime": "20220715201529",
\n "MobileNo": "03139211025",
\n "ChannelId": "NEEM",
\n "ProductId": "10245253",
\n "Reserved1": "01",
\n "Reserved2": "",
\n "Reserved3": "",
\n "Reserved4": "",
\n "Reserved5": "",
\n "Reserved6": "",
\n "Reserved7": "",
\n "Reserved8": "",
\n "Reserved9": "",
\n "Reserved10": "",
\n "TerminalId": "NEEM",
\n "CompanyName": "NEEM",
\n "MerchantType": "0088",
\n "TransactionAmount": "150",
\n "AccountIdentification1_102": "0000102420"
\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/CoreToWallet")
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({
"CoreToWalletReq": {
"ProcessingCode": "CoreToWallet",
"OtpPin": "",
"PinType": "01",
"TraceNo": "670289",
"DateTime": "20220715201529",
"MobileNo": "03139211025",
"ChannelId": "NEEM",
"ProductId": "10245253",
"Reserved1": "01",
"Reserved2": "",
"Reserved3": "",
"Reserved4": "",
"Reserved5": "",
"Reserved6": "",
"Reserved7": "",
"Reserved8": "",
"Reserved9": "",
"Reserved10": "",
"TerminalId": "NEEM",
"CompanyName": "NEEM",
"MerchantType": "0088",
"TransactionAmount": "150",
"AccountIdentification1_102": "0000102420"
}
})
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 \"CoreToWalletReq\": {\r\n \"ProcessingCode\": \"CoreToWallet\",\r\n \"OtpPin\": \"\",\r\n \"PinType\": \"01\",\r\n \"TraceNo\": \"670289\",\r\n \"DateTime\": \"20220715201529\",\r\n \"MobileNo\": \"03139211025\",\r\n \"ChannelId\": \"NEEM\",\r\n \"ProductId\": \"10245253\",\r\n \"Reserved1\": \"01\",\r\n \"Reserved2\": \"\",\r\n \"Reserved3\": \"\",\r\n \"Reserved4\": \"\",\r\n \"Reserved5\": \"\",\r\n \"Reserved6\": \"\",\r\n \"Reserved7\": \"\",\r\n \"Reserved8\": \"\",\r\n \"Reserved9\": \"\",\r\n \"Reserved10\": \"\",\r\n \"TerminalId\": \"NEEM\",\r\n \"CompanyName\": \"NEEM\",\r\n \"MerchantType\": \"0088\",\r\n \"TransactionAmount\": \"150\",\r\n \"AccountIdentification1_102\": \"0000102420\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v1/CoreToWallet")
.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/CoreToWallet");
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" +
@" ""CoreToWalletReq"": {
" + "\n" +
@" ""ProcessingCode"": ""CoreToWallet"",
" + "\n" +
@" ""OtpPin"": """",
" + "\n" +
@" ""PinType"": ""01"",
" + "\n" +
@" ""TraceNo"": ""670289"",
" + "\n" +
@" ""DateTime"": ""20220715201529"",
" + "\n" +
@" ""MobileNo"": ""03139211025"",
" + "\n" +
@" ""ChannelId"": ""NEEM"",
" + "\n" +
@" ""ProductId"": ""10245253"",
" + "\n" +
@" ""Reserved1"": ""01"",
" + "\n" +
@" ""Reserved2"": """",
" + "\n" +
@" ""Reserved3"": """",
" + "\n" +
@" ""Reserved4"": """",
" + "\n" +
@" ""Reserved5"": """",
" + "\n" +
@" ""Reserved6"": """",
" + "\n" +
@" ""Reserved7"": """",
" + "\n" +
@" ""Reserved8"": """",
" + "\n" +
@" ""Reserved9"": """",
" + "\n" +
@" ""Reserved10"": """",
" + "\n" +
@" ""TerminalId"": ""NEEM"",
" + "\n" +
@" ""CompanyName"": ""NEEM"",
" + "\n" +
@" ""MerchantType"": ""0088"",
" + "\n" +
@" ""TransactionAmount"": ""150"",
" + "\n" +
@" ""AccountIdentification1_102"": ""0000102420""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Request Body
Response Body