Documentations for GET API
This API can retrieve the Client credential for a given client ID while returning the confirmed bucket credential. The response payload also shows the new client secret which is valid for the next 24 hours.
Name | Type | Values | Description |
---|---|---|---|
Accept | JSON | application/json | |
Content-Type | JSON | application/json | |
clientId | String | XXXXXXXXX42 | Client ID for the Identification of the client. |
Name | Description | Required | Parameter Type | Length | Sample Value |
---|---|---|---|---|---|
|
Name | Description | Parameter Type | Sample Value |
---|---|---|---|
responseCode | Response status code | String | 0000 |
message | Response message indicating success or failure | String | Success |
channel | String | null | |
terminal | String | null | |
transactionDate | Date | null | |
reterivalReferenceNumber | Number | null | |
payLoad | Payload containing the new client secret | Object | { } |
clientId | Client ID associated with the client | String | XXXXXXXXX42 |
clientSecret | New client secret | String | XXXXXXXXXXXXX. YYYYYYYYYYYYYYYY. ZZZZZZZZZZZZZZZZZ-VVVVVVVVVVVVV-P0vwwa0st4dLSAT |
organizationId | Organization ID associated with the client | Integer | XX3 |
errors | Field reserved for potential errors (null if none) | Null | null |
checkSum | Checksum field (null if not applicable) | Null | null |
{
"responseCode": "0000",
"message": "Success",
"channel": null,
"terminal": null,
"transactionDate": null,
"reterivalReferenceNumber": null,
"payLoad": {
"clientId": "XXXXXXXXXXX09",
"clientSecret": "XXXXXXXXXXXXX.YYYYYYYYYYYYYYYY.
ZZZZZZZZZZZZZZZZZ-VVVVVVVVVVVVV-
Y0LF0QKsMWAvZQ",
"organizationId": XX2
},
"errors": null,
"checkSum": null
}
curl --location --request GET 'https://z-sandbox.jsbl.com/zconnect/client/oauth-blb' \
--header 'clientId: T0852n68J6572' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://z-sandbox.jsbl.com/zconnect/client/oauth-blb',
'headers': {
'clientId': 'T0852n68J6572',
'Accept': 'application/json',
'Content-Type': 'application/json'
}
};
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/client/oauth-blb',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'clientId: T0852n68J6572',
'Accept: application/json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response
require "uri"
require "json"
require "net/http"
url = URI("https://z-sandbox.jsbl.com/zconnect/client/oauth-blb")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["clientId"] = "T0852n68J6572"
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
response = https.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://z-sandbox.jsbl.com/zconnect/client/oauth-blb")
.method("GET", null)
.addHeader("clientId", "T0852n68J6572")
.addHeader("Accept", "application/json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://z-sandbox.jsbl.com/zconnect/client/oauth-blb");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("clientId", "T0852n68J6572");
request.AddHeader("Accept", "application/json");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
{
"responseCode": "0000",
"message": "Success",
"channel": null,
"terminal": null,
"transactionDate": null,
"reterivalReferenceNumber": null,
"payLoad": {
"clientId": "XXXXXXXXX42",
"clientSecret": "XXXXXXXXXXXXX.YYYYYYYYYYYYYYYY.
ZZZZZZZZZZZZZZZZZ-VVVVVVVVVVVVV
-P0vwwa0st4dLSAT",
"organizationId": XX3
},
"errors": null,
"checkSum": null
}
{
"responseCode": "1300",
"message": "Record Not Found",
"channel": null,
"terminal": null,
"transactionDate": null,
"reterivalReferenceNumber": null,
"payLoad": null,
"errors": null,
"checkSum": null
}