curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/wallettocore-blb2' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"WalletToCorRequest": {
"processingCode": "WalletToCore",
"merchantType": "0088",
"traceNo": "000027",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"channelId": "NOVA",
"terminalId": "NOVA",
"otpPin": "01",
"pinType": "01",
"receiverMobileNumber": "03320354357",
"receiverAccountNumber": "0001814991",
"amount": "100.0",
"reserved1": "01",
"reserved2": ""
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/wallettocore-blb2',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"WalletToCorRequest": {
"processingCode": "WalletToCore",
"merchantType": "0088",
"traceNo": "000027",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"channelId": "NOVA",
"terminalId": "NOVA",
"otpPin": "01",
"pinType": "01",
"receiverMobileNumber": "03320354357",
"receiverAccountNumber": "0001814991",
"amount": "100.0",
"reserved1": "01",
"reserved2": ""
}
})
};
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/wallettocore-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 =>'{
"WalletToCorRequest": {
"processingCode": "WalletToCore",
"merchantType": "0088",
"traceNo": "000027",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"channelId": "NOVA",
"terminalId": "NOVA",
"otpPin": "01",
"pinType": "01",
"receiverMobileNumber": "03320354357",
"receiverAccountNumber": "0001814991",
"amount": "100.0",
"reserved1": "01",
"reserved2": ""
}
}',
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/wallettocore-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({
"WalletToCorRequest": {
"processingCode": "WalletToCore",
"merchantType": "0088",
"traceNo": "000027",
"companyName": "NOVA",
"dateTime": "20210105201527",
"mobileNo": "xxxxxxxxxxx",
"channelId": "NOVA",
"terminalId": "NOVA",
"otpPin": "01",
"pinType": "01",
"receiverMobileNumber": "03320354357",
"receiverAccountNumber": "0001814991",
"amount": "100.0",
"reserved1": "01",
"reserved2": ""
}
})
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 \"WalletToCorRequest\": {\r\n \"processingCode\": \"WalletToCore\",\r\n \"merchantType\": \"0088\",\r\n \"traceNo\": \"000027\",\r\n \"companyName\": \"NOVA\",\r\n \"dateTime\": \"20210105201527\",\r\n \"mobileNo\": \"xxxxxxxxxxx\",\r\n \"channelId\": \"NOVA\",\r\n \"terminalId\": \"NOVA\",\r\n \"otpPin\": \"01\",\r\n \"pinType\": \"01\",\r\n \"receiverMobileNumber\": \"03320354357\",\r\n \"receiverAccountNumber\": \"0001814991\",\r\n \"amount\": \"100.0\",\r\n \"reserved1\": \"01\",\r\n \"reserved2\": \"\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v2/wallettocore-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/wallettocore-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" +
@" ""WalletToCorRequest"": {
" + "\n" +
@" ""processingCode"": ""WalletToCore"",
" + "\n" +
@" ""merchantType"": ""0088"",
" + "\n" +
@" ""traceNo"": ""000027"",
" + "\n" +
@" ""companyName"": ""NOVA"",
" + "\n" +
@" ""dateTime"": ""20210105201527"",
" + "\n" +
@" ""mobileNo"": ""xxxxxxxxxxx"",
" + "\n" +
@" ""channelId"": ""NOVA"",
" + "\n" +
@" ""terminalId"": ""NOVA"",
" + "\n" +
@" ""otpPin"": ""01"",
" + "\n" +
@" ""pinType"": ""01"",
" + "\n" +
@" ""receiverMobileNumber"": ""03320354357"",
" + "\n" +
@" ""receiverAccountNumber"": ""0001814991"",
" + "\n" +
@" ""amount"": ""100.0"",
" + "\n" +
@" ""reserved1"": ""01"",
" + "\n" +
@" ""reserved2"": """"
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);