curl --location --request POST 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusHistory' \
--header 'Content-Type: application/json' \
--data '{
"fromdate": "06/11/2025",
"month": "06",
"todate": "06/12/2025",
"type": 0,
"year": "2025",
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}'
import requests
import json
url = 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusHistory'
payload = "{
"fromdate": "06/11/2025",
"month": "06",
"type": 0,
"year": "2025",
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}"
headers = {
"Content-type" : "application/json"
}
response = requests.request("POST", url, headers=headers, data=payload)
print (response.text)
var requests = require("request");
var options = {
"method" : "POST",
"url" : 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusHistory',
"headers" : {
"Content-Type" : 'application/json'
},
body: '{
"fromdate": "06/11/2025",
"month": "06",
"todate": "06/12/2025",
"type": 0,
"year": "2025",
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353,
"registrationID": "AOP-554"
}'
};
request(options, function(error, response){
if(error) throw new Error(error);
console.log(response.body);
});
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,'https://travel.bospay.co.in/api/V1/Bus/Travel/BusHistory')
var content = new StringContent(
"{
"fromdate": "06/11/2025",
"month": "06",
"todate": "06/12/2025",
"type": 0,
"year": "2025",
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}",
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://travel.bospay.co.in/api/V1/Bus/Travel/BusHistory',
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 => '{
"fromdate": "06/11/2025",
"month": "06",
"todate": "06/12/2025",
"type": 0,
"year": "2025",
"iP_Address": "27.XXX.XX.76",
"request_Id": "REQ123456",
"imeI_Number": "353535353535353",
"registrationID": "AOP-554"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;