production
development
https://apigateway.bankalfalah.com/bankalfalah/sb
Paths
/sendCustodyAccountInfo
get /sendCustodyAccountInfo
clientIdHeader
X-IBM-Client-Id
(apiKey located in header)
Client Secret
X-IBM-Client-Secret
(apiKey located in header)
oauth
oauth
(oauth2 application)
Oauth-Authentication
Token URL
https://apigateway.bankalfalah.com/bankalfalah/sb/oauthproviderapi/oauth2/token
Scopes
GetToken
userId
Required in query
string
USER ID
password
Required in query
string
Password
bankShortCode
Required in query
string
Bank Short Code
cnicNicopPoc
Required in query
string
Identification number
ParticiapntId
Required in query
string
CDC Provided Identification Number
AccountNumber
Required in query
string
CDC Provided Account Number
accOpeningDate
Required in query
string
Account Opening Date
reserved
Required in query
string
Reserved Parameter
Accept
Optional in header
string
application/json
200
200 OK
Example Request
curl --request GET \
--url 'https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE' \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("apigateway.bankalfalah.com")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'accept': "application/json"
}
conn.request("GET", "/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo',
qs:
{ userId: 'REPLACE_THIS_VALUE',
password: 'REPLACE_THIS_VALUE',
bankShortCode: 'REPLACE_THIS_VALUE',
cnicNicopPoc: 'REPLACE_THIS_VALUE',
ParticiapntId: 'REPLACE_THIS_VALUE',
AccountNumber: 'REPLACE_THIS_VALUE',
accOpeningDate: 'REPLACE_THIS_VALUE',
reserved: 'REPLACE_THIS_VALUE' },
headers:
{ accept: 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "authorization: Bearer REPLACE_BEARER_TOKEN");
headers = curl_slist_append(headers, "x-ibm-client-secret: REPLACE_THIS_KEY");
headers = curl_slist_append(headers, "x-ibm-client-id: REPLACE_THIS_KEY");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://apigateway.bankalfalah.com/bankalfalah/sb/sendCustodyAccountInfo?userId=REPLACE_THIS_VALUE&password=REPLACE_THIS_VALUE&bankShortCode=REPLACE_THIS_VALUE&cnicNicopPoc=REPLACE_THIS_VALUE&ParticiapntId=REPLACE_THIS_VALUE&AccountNumber=REPLACE_THIS_VALUE&accOpeningDate=REPLACE_THIS_VALUE&reserved=REPLACE_THIS_VALUE");
var request = new RestRequest(Method.GET);
request.AddHeader("accept", "application/json");
request.AddHeader("authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddHeader("x-ibm-client-secret", "REPLACE_THIS_KEY");
request.AddHeader("x-ibm-client-id", "REPLACE_THIS_KEY");
IRestResponse response = client.Execute(request);
Example Response
GET https://apigateway.bankalfalah.com/bankalfalah/sb//sendCustodyAccountInfo
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).