Account Statement

Documentations

Documentations for API

End Points

https://z-sandbox.jsbl.com/zconnect/api/v1/accountstatement

Http Method

POST

Header

Name Type Values Description
Accept JSON application/json
Content-Type JSON application/json
clientId String *************
clientSecret String Access-Token Auth2.0 verification
organizationId String 223 Authenticate organization

Request Parameters

Name Description Required Parameter Type Length Sample Value
ProcessingCode ProcessingCode Mandatory STRING 6 763000
TransmissionDatetime TransmissionDatetime Mandatory STRING 10 0101120302
TraceNo TraceNo Mandatory STRING 6 000001
TimeLocalTransaction TimeLocalTransaction Mandatory STRING 6 120302
DateLocalTransaction DateLocalTransaction Mandatory STRING 4 0101
MerchantType MerchantType Mandatory STRING 4 0069
AccountNumber AccountNumber Mandatory STRING 11 xxxxxxxxxx
FromDate FromDate Mandatory STRING 11 15-MAR-202
ToDate ToDate Mandatory STRING 11 23-JUL-202

Sample Request

{
    "AccountStatement": {
        "ProcessingCode": "763000",
        "TransmissionDatetime": "0101120302",
        "TraceNo": "000001",
        "TimeLocalTransaction": "120302",
        "DateLocalTransaction": "0101",
        "MerchantType": "0069",
        "AccountNumber": "xxxxxxxxxxx",
        "FromDate": "15-MAR-2022",
        "ToDate": "23-JUL-2022"
    }
}

Response Parameters

Name Description Parameter Type Length Sample Value
MTI MTI String 3 210
ProcessingCode ProcessingCode String 6 763000
TransmissionDatetime TransmissionDatetime String 9 101120302
TraceNo TraceNo String 4 0001
TimeLocalTransaction TimeLocalTransaction String 6 120302
DateLocalTransaction DateLocalTransaction String 3 101
MerchantType MerchantType String 2 69
AccountNumber AccountNumber String 11 xxxxxxxxxxx
FromDate FromDate String 5 44635
ToDate ToDate String 5 44765
ResponseCode ResponseCode String 2 00
ResponseDescription ResponseDescription String 7 SUCCESS
BLBTransactionDetails BLBTransactionDetails String 686 [            [                {                    "mobileNumber": "xxxxxxxxxxx",                    "productName": "JS Wallet Transfer - Customer",                    "tranTime": "2022-11-11 17:30:13.957",                    "tranID": "553414060361",                    "fromAccountNumber": "xxxxxxxxxxx",                    "toAccountNumber": "xxxxxxxxxxx",                    "accountTitle": null,                    "toBank": null,                    "transactionDateTime": "2022-11-11

Response Sample

{
    "AccountStatement": {
        "MTI": "0210",
        "ProcessingCode": "763000",
        "TransmissionDatetime": "0101120302",
        "TraceNo": "000001",
        "TimeLocalTransaction": "120302",
        "DateLocalTransaction": "0101",
        "MerchantType": "0069",
        "AccountNumber": "xxxxxxxxxxx",
        "FromDate": "15-MAR-2022",
        "ToDate": "23-JUL-2022",
        "ResponseCode": "00",
        "ResponseDescription": "SUCCESS",
        "BLBTransactionDetails": [
            [{
                "mobileNumber": "xxxxxxxxxxx",
                "productName": "JSWalletTransfer-Customer",
                "tranTime": "2022-11-1117:30:13.957",
                "tranID": "553414060361",
                "fromAccountNumber": "xxxxxxxxxxx",
                "toAccountNumber": "xxxxxxxxxxx",
                "accountTitle": null,
                "toBank": null,
                "transactionDateTime": "2022-11-1117:30:13.957",
                "transactionAmount": 150.0,
                "transactionType": "CREDIT",
                "debitAmount": 0,
                "creditAmount": 150,
                "balanceAmount": 150
            }]
        ]
    }
}
curl --location --request POST 'https://z-sandbox.jsbl.com/zconnect/api/v1/accountstatement' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'clientId: 364E9806o51K9' \
--header 'clientSecret: eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA' \
--header 'organizationId: 223' \
--data-raw '{
"AccountStatement": {
"ProcessingCode": "763000",
"TransmissionDatetime": "0101120302",
"TraceNo": "000001",
"TimeLocalTransaction": "120302",
"DateLocalTransaction": "0101",
"MerchantType": "0069",
"AccountNumber": "xxxxxxxxxxx",
"FromDate": "15-MAR-2022",
"ToDate": "23-JUL-2022"
}
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://z-sandbox.jsbl.com/zconnect/api/v1/accountstatement',
'headers': {
'Content-Type': 'application/json',
'Accept': 'application/json',
'clientId': '364E9806o51K9',
'clientSecret': 'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE2OTI2MzcxOTl9.0s3evOaGFm6uyRxSioiXlOffHbZTDIB1zB1xl3ck_IIfxSrsARI9tPiooIOVjVv9rQqUInqtk1odcWtk8V3rFA',
'organizationId': '223'
},
body: JSON.stringify({
"AccountStatement": {
"ProcessingCode": "763000",
"TransmissionDatetime": "0101120302",
"TraceNo": "000001",
"TimeLocalTransaction": "120302",
"DateLocalTransaction": "0101",
"MerchantType": "0069",
"AccountNumber": "xxxxxxxxxxx",
"FromDate": "15-MAR-2022",
"ToDate": "23-JUL-2022"
}
})



};
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/v1/accountstatement',
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 =>'{
"AccountStatement": {
"ProcessingCode": "763000",
"TransmissionDatetime": "0101120302",
"TraceNo": "000001",
"TimeLocalTransaction": "120302",
"DateLocalTransaction": "0101",
"MerchantType": "0069",
"AccountNumber": "xxxxxxxxxxx",
"FromDate": "15-MAR-2022",
"ToDate": "23-JUL-2022"
}
}',
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/v1/accountstatement")



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({
"AccountStatement": {
"ProcessingCode": "763000",
"TransmissionDatetime": "0101120302",
"TraceNo": "000001",
"TimeLocalTransaction": "120302",
"DateLocalTransaction": "0101",
"MerchantType": "0069",
"AccountNumber": "xxxxxxxxxxx",
"FromDate": "15-MAR-2022",
"ToDate": "23-JUL-2022"
}
})



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 \"AccountStatement\": {\r\n \"ProcessingCode\": \"763000\",\r\n \"TransmissionDatetime\": \"0101120302\",\r\n \"TraceNo\": \"000001\",\r\n \"TimeLocalTransaction\": \"120302\",\r\n \"DateLocalTransaction\": \"0101\",\r\n \"MerchantType\": \"0069\",\r\n \"AccountNumber\": \"xxxxxxxxxxx\",\r\n \"FromDate\": \"15-MAR-2022\",\r\n \"ToDate\": \"23-JUL-2022\"\r\n }\r\n}");
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/api/v1/accountstatement")
.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();

has context menu
var client = new RestClient("https://z-sandbox.jsbl.com/zconnect/api/v1/accountstatement");
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" +
@" ""AccountStatement"": {
" + "\n" +
@" ""ProcessingCode"": ""763000"",
" + "\n" +
@" ""TransmissionDatetime"": ""0101120302"",
" + "\n" +
@" ""TraceNo"": ""000001"",
" + "\n" +
@" ""TimeLocalTransaction"": ""120302"",
" + "\n" +
@" ""DateLocalTransaction"": ""0101"",
" + "\n" +
@" ""MerchantType"": ""0069"",
" + "\n" +
@" ""AccountNumber"": ""xxxxxxxxxxx"",
" + "\n" +
@" ""FromDate"": ""15-MAR-2022"",
" + "\n" +
@" ""ToDate"": ""23-JUL-2022""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Response Code Details

{
    "AccountStatement": {
        "MTI": "0210",
        "ProcessingCode": "763000",
        "TransmissionDatetime": "0101120302",
        "TraceNo": "000001",
        "TimeLocalTransaction": "120302",
        "DateLocalTransaction": "0101",
        "MerchantType": "0069",
        "AccountNumber": "xxxxxxxxxxx",
        "FromDate": "15-MAR-2022",
        "ToDate": "23-JUL-2022",
        "ResponseCode": "00",
        "ResponseDescription": "SUCCESS",
        "BLBTransactionDetails": [
            [{
                "mobileNumber": "xxxxxxxxxxx",
                "productName": "JSWalletTransfer-Customer",
                "tranTime": "2022-11-1117:30:13.957",
                "tranID": "553414060361",
                "fromAccountNumber": "xxxxxxxxxxx",
                "toAccountNumber": "xxxxxxxxxxx",
                "accountTitle": null,
                "toBank": null,
                "transactionDateTime": "2022-11-1117:30:13.957",
                "transactionAmount": 150.0,
                "transactionType": "CREDIT",
                "debitAmount": 0,
                "creditAmount": 150,
                "balanceAmount": 150
            }]
        ]
    }
}
{
    "messages": "Bad Request - Invalid Access Token",
    "errorcode": "4001"
}

{
    "messages": "Bad Request - Invalid Request Payload",
    "errorcode": "4002"
}

{
    "messages": "Bad Request - Invalid Authorization Header",
    "errorcode": "4003"
}

{
    "messages": "Something Went Wrong",
    "errorcode": "4004"
}

{
    "messages": "Record Not Found",
    "errorcode": "4005"
}

{
    "messages": "Invalid Client Id\/Secret",
    "errorcode": "4006"
}

{
    "messages": "Bad Request - Invalid Access Token",
    "errorcode": "4007"
}

Try out yourself

Security

X-IBM-Client-Id(apiKey located in header)
X-IBM-Client-Secret(apiKey located in header)
1c48aa28-2614-486f-aa2c-cbc86cc7ab51

Header Parameter

Name Values Description
Content-Type application/json Content Type application/json is supported
Accept application/json Content Type application/json is supported
organizationId xyz You will make a call to the auth-blb api and give it your client ID. You should add the client secret and organisation ID it returns here.
clientId Enter your verified Client Id
clientSecret Enter Your Verified Client Secret

Request Body

Response Body