curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v2/upgradeaccount' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"UpgradeAcc": {
"ProcessingCode": "UpgradeAcc",
"MerchantType": "0088",
"TraceNo": "211045",
"CompanyName": "NOVA",
"DateTime": "20210105201527",
"CNIC": "5320308663983",
"FingerIndex": "1",
"FingerTemplate": "Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA",
"TemplateType": "ISO_19794_2",
"MobileNo": "03422142169",
"TerminalId": "NOVA",
"MPin": "Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx\/yxFV5udyB0ABKGP\/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs\/wytgHxmlGKony4vhnizu3tBy9\/8aeXOsVKw7slDs2kYW1VIvc70mE\/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==",
"Reserved1": "01"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v2/upgradeaccount',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"UpgradeAcc": {
"ProcessingCode": "UpgradeAcc",
"MerchantType": "0088",
"TraceNo": "211045",
"CompanyName": "NOVA",
"DateTime": "20210105201527",
"CNIC": "5320308663983",
"FingerIndex": "1",
"FingerTemplate": "Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA",
"TemplateType": "ISO_19794_2",
"MobileNo": "03422142169",
"TerminalId": "NOVA",
"MPin": "Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx/yxFV5udyB0ABKGP/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs/wytgHxmlGKony4vhnizu3tBy9/8aeXOsVKw7slDs2kYW1VIvc70mE/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==",
"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/upgradeaccount',
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 =>'{
"UpgradeAcc": {
"ProcessingCode": "UpgradeAcc",
"MerchantType": "0088",
"TraceNo": "211045",
"CompanyName": "NOVA",
"DateTime": "20210105201527",
"CNIC": "5320308663983",
"FingerIndex": "1",
"FingerTemplate": "Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA",
"TemplateType": "ISO_19794_2",
"MobileNo": "03422142169",
"TerminalId": "NOVA",
"MPin": "Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx\\/yxFV5udyB0ABKGP\\/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs\\/wytgHxmlGKony4vhnizu3tBy9\\/8aeXOsVKw7slDs2kYW1VIvc70mE\\/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==",
"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/upgradeaccount")
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({
"UpgradeAcc": {
"ProcessingCode": "UpgradeAcc",
"MerchantType": "0088",
"TraceNo": "211045",
"CompanyName": "NOVA",
"DateTime": "20210105201527",
"CNIC": "5320308663983",
"FingerIndex": "1",
"FingerTemplate": "Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA",
"TemplateType": "ISO_19794_2",
"MobileNo": "03422142169",
"TerminalId": "NOVA",
"MPin": "Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx/yxFV5udyB0ABKGP/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs/wytgHxmlGKony4vhnizu3tBy9/8aeXOsVKw7slDs2kYW1VIvc70mE/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==",
"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 \"UpgradeAcc\": {\r\n \"ProcessingCode\": \"UpgradeAcc\",\r\n \"MerchantType\": \"0088\",\r\n \"TraceNo\": \"211045\",\r\n \"CompanyName\": \"NOVA\",\r\n \"DateTime\": \"20210105201527\",\r\n \"CNIC\": \"5320308663983\",\r\n \"FingerIndex\": \"1\",\r\n \"FingerTemplate\": \"Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA\",\r\n \"TemplateType\": \"ISO_19794_2\",\r\n \"MobileNo\": \"03422142169\",\r\n \"TerminalId\": \"NOVA\",\r\n \"MPin\": \"Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx\\/yxFV5udyB0ABKGP\\/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs\\/wytgHxmlGKony4vhnizu3tBy9\\/8aeXOsVKw7slDs2kYW1VIvc70mE\\/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw==\",\r\n \"Reserved1\": \"01\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v2/upgradeaccount")
.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/upgradeaccount");
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" +
@" ""UpgradeAcc"": {
" + "\n" +
@" ""ProcessingCode"": ""UpgradeAcc"",
" + "\n" +
@" ""MerchantType"": ""0088"",
" + "\n" +
@" ""TraceNo"": ""211045"",
" + "\n" +
@" ""CompanyName"": ""NOVA"",
" + "\n" +
@" ""DateTime"": ""20210105201527"",
" + "\n" +
@" ""CNIC"": ""5320308663983"",
" + "\n" +
@" ""FingerIndex"": ""1"",
" + "\n" +
@" ""FingerTemplate"": ""Rk1SACAyMAAAAAFQAAABQAHgAMUAxQEAAABkM4BpABZxAECvABbzAIC8ACbyAEDiACr4AIDNACxwAECYADJ2AIDeADTyAEBVADh4AIDDADnwAID1AD1yAIBpAEL0AICEAEd9AIDpAEhwAIBMAFB9AECDAFL2AEAUAFx+AIEBAGHyAEDCAGN0AEA2AGr8AEA5AH18AIB4AIZ5AIA2AJP7AIEgAJRwAECnALN6AEAqALaIAECvAML6AEBZANmEAECbAPV+AECZARyCAEBeASCQAEDKASH0AECDATmMAEAzAVScAEEZAVtmAEC5AWN6AEBpAWiqAEBNAXCpAIBfAXgjAICjAXqQAEAzAXyrAIESAYxrAIDtAY9uAIDAAZnfAECzAZzuAECuAaDiAIDEAaRfAICYAa7SAIEKAbB1AIAlAbK1AIEFAcF7AIC9AdJrAAAA"",
" + "\n" +
@" ""TemplateType"": ""ISO_19794_2"",
" + "\n" +
@" ""MobileNo"": ""03422142169"",
" + "\n" +
@" ""TerminalId"": ""NOVA"",
" + "\n" +
@" ""MPin"": ""Mh+Ab+JSNrunmC4rpEak6UaxaxT78C4MVd6wx\/yxFV5udyB0ABKGP\/bg6jR3aab3N10NSooAbMP8FFIs3XNzXw0dxfflUgK7eqz9vj1dDLtQq8yKGEvRrfIiTx8z3zUssiYfBdoE8kLu1udp1NeG60KRBHhtDs\/wytgHxmlGKony4vhnizu3tBy9\/8aeXOsVKw7slDs2kYW1VIvc70mE\/y4rTYkacROo8yWNUKxySo5PKCVEnaMf86dGn4D8uBAV8zKIRNT6FZDPlZZAbJMLpSfPdsKHCYwaBGpSpT8o70lWrRaZzpfh4EPgOIFkRPH4mlgJlXh2RoknZD6kTXsEIw=="",
" + "\n" +
@" ""Reserved1"": ""01""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);