API Documentation DH-Boss


Create token for token mandatory related api - DHBOSS API

You can generate the token from here for the API in which the token is being asked, in the API in which the token number is asked, you do not get the response immediately, in that you have to wait 2-40 seconds. If yes, then you have to use Javascript to hit such API, so that you can refresh that API every second, as if you get response success, then you can display that backend data. - docs.dhboss.com


GET/POST : createtoken

What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC

Input Parameters Detail
Name Type Description Mandatory
tokenname String {Enter Value} Yes
apikeyfill String {Enter Value} Yes

Output Parameters Detail
Name Type Description
token_no string 538792954
referid string e7838ddb92ac4a5a90df0ea0d11069ae







Other Input Parameters Detail
Name Type Description
Token NameStringsearchvin






Call API URL
https://api.dhboss.com/apicall/createtoken/
API Call Request Parameters
tokenname=value&apikeyfill=value                                                   
API Call Example Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.dhboss.com/apicall/createtoken/',
  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 => 'tokenname=parceltrack&apikeyfill=youapikey',
 
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>
API Hit Example Response
{
  "token_no": "538792954",
  "referid": "e7838ddb92ac4a5a90df0ea0d11069ae"
}