Operator list

Post  https://api.bos.center/api/BOS/OperatorsList


Use this API to authenticate with the BOS system and obtain the authorization bearer token. All other API calls must have this token as an Authorization header in the format 'Bearer' (without quotes) for them to get processed. The generated token is valid for 600 seconds.

Click to view the steps to generate a public key and the signature.

Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

status     boolean

response_code     integer

message     string


Did this page help you?     Yes    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

curl --location -request POST 'https://api.bos.center/api/BOS/OperatorsList' \
--data  ''
                                
import requests

url = 'https://api.bos.center/api/BOS/OperatorsList'

payload = ""
headers = {}

response = requests.request("POST", url, headers=headers, data=payload)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "POST",
  "url" : 'https://api.bos.center/api/BOS/OperatorsList',
  "headers" : {}
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,'https://api.bos.center/api/BOS/OperatorsList')
var content = new StringContent("", null,"application/json");

request.Content = content;
var response =  await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
                                
<?php
$curl =  curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL =>  ' https://api.bos.center/api/BOS/OperatorsList',
  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',
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
    "response_code": 1,
    "status": true,
    "data": [
        {
            "id": "280",
            "name": "Axis Bank",
            "category": "Fastag",
            "viewbill": "0",// You do not need to fetch the bill
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "17"
        },
        {
            "id": "276",
            "name": "Bank Of Baroda",
            "category": "Fastag",
            viewbill": "1",// You need to fetch the bill
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "13"
        },
        {
            "id": "310",
            "name": "Equitas FASTag Recharge",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "19"
        },
        {
            "id": "314",
            "name": "Federal Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "23"
        },
        {
            "id": "278",
            "name": "HDFC Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "15"
        },
        {
            "id": "277",
            "name": "ICICI Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            displayname": "Vehicle Registration Number",
            "ad1_regex": "14"
        },
        {
            "id": "315",
            "name": "IDBI Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "24"
        },
        {
            id": "279",
            "name": "IDFC FIRST Bank",
            category": "Fastag",
            "viewbill": "1",
            "regex": "",
            displayname": "Vehicle Registration Number",
            ad1_regex": "16"
        },
        {
            "id": "274",
            "name": "Indian Highways Management Company Ltd",
            "category": "Fastag",
            viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            ad1_regex": "11"
        },
        {
            "id": "275",
            "name": "Indusind Bank",
            category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "12"
        },
        {
            "id": "318",
            "name": "IOB FASTag",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "27"
        },
        {
            "id": "313",
            "name": "Jammu and Kashmir Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "22"
        },
        {
            "id": "528",
            "name": "Karnataka Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "29"
        },
        {
            "id": "281",
            "name": "Kotak Mahindra Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            displayname": "Vehicle Registration Number",
            "ad1_regex": "18"
        },
        {
            "id": "312",
            "name": "Paul Merchants",
            "category": "Fastag",
            "viewbill": "0",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "21"
        },
        {
            "id": "311",
            "name": "Paytm Payments Bank",
            "category": "Fastag",
           "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "20"
        },
        {
            "id": "533",
            "name": "State Bank of India",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "31"
        },
        {
            "id": "317",
            "name": "Transaction Analyst FASTag",
            "category": "Fastag",
            "viewbill": "0",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "26"
        },
        {
            "id": "527",
            "name": "Transcorp International Limited",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "28"
        },
        {
            "id": "316",
            "name": "UCO Bank",
            "category": "Fastag",
            "viewbill": "1",
            "regex": "",
            "displayname": "Vehicle Registration Number",
            "ad1_regex": "25"
        }
    ],
    "message": "Operator List Fetched"
}
                                
{
  "status": false,
  "response_code": 5,
  "message": "Invalid signature encoding"
}