Bus APIs
Download Sample Codes
POST URL
Example Request For Bus
Example Response For Bus
Success Response:
{ " BusSearchResult " : " ", " ResponseStatus " : 1 , " Error " : { " ErrorCode " : 0, " ErrorMessage " : " " }, " Destination " : "Hyderabad" , " Origin " : "Bangalore" , " TraceId " : "8d4de010-3c75-41f5-9712-633fb365b4f3" , " BusResults " : [ { " ResultIndex " : 5 , " ArrivalTime" : "2019-01-31T05:00:00" , " AvailableSeats " : 6 , " DepartureTime " : "2019-01-30T20:02:00" , " RouteId " : "2000000129510114514" , " BusType " : "Bharat benz Non-A/C Seater Pushback (1+1)" , " ServiceName " : "Seat Seller" , " TravelName " : "Poppin Travles" , " IdProofRequired " : "false" , " IsDropPointMandatory " : "false" , " LiveTrackingAvailable " : "false" , " MTicketEnabled " : true , " MaxSeatsPerTicket " : 6 , " OperatorId " : 10419079 , " PartialCancellationAllowed " : true , " BoardingPointsDetails " : [ { " CityPointIndex " : 252884 , " CityPointLocation " : "Old Airport Road" , " CityPointName " : "Old Airport Road" , " CityPointTime " : "2019-01-30T20:02:00" } ] , " DroppingPointsDetails " : [ { " CityPointIndex " : 235765 , " CityPointLocation " : "APSRTC M G Bus Station" , " CityPointName " : "APSRTC M G Bus Station" , " CityPointTime " : "2019-01-31T05:00:00" } ], " BusPrice " : { " CurrencyCode " : "INR" , " BasePrice " : 10.00 , " Tax " : 0 , " OtherCharges " : 0 , " Discount " : 0 , " PublishedPrice " : 10.00 , " PublishedPriceRoundedOff " : 10 , " OfferedPrice " : 9.25 , " OfferedPriceRoundedOff " : 10 , " AgentCommission " : 0.50 , " AgentMarkUp " : 0 , " TDS " : 0.15 , " GST " : { " CGSTAmount " : 0 , " CGSTRate " : 0 , " CessAmount " : 0 , " CessRate " : 0 , " IGSTAmount " : 0 , " IGSTRate " : 12 , " SGSTAmount " : 0 , " SGSTRate " : 0, " TaxableAmount " : 0 , } }, " CancellationPolicies " : [ , { " CancellationCharge " : 10 , " CancellationChargeType " : 2 , " PolicyString " : "Till 15:02 on 29 Jan 2019" , " TimeBeforeDept " : "29$-1" , " FromDate " : "2019-01-23T14:52:46" , " ToDate " : "2019-01-29T15:02:00" , } , { " CancellationCharge " : 50 , " CancellationChargeType " : 2 , " PolicyString " : "Between 15:02 on 29 Jan 2019 - 03:02 on 30 Jan 2019" , " TimeBeforeDept " : "17$29" , " FromDate " : "2019-01-29T15:02:00" , " ToDat " : "2019-01-30T03:02:00" , } , { " CancellationCharge " : 100 , " CancellationChargeType " : , " PolicyString " : "After 03:02 on 30 Jan 2019" , " TimeBeforeDept " : "0$17" , " FromDate " : "2019-01-30T03:02:00" , " ToDate " : "2019-01-31T05:00:00" , } ] " }BusSeatlayoutRequest " : { , " EndUserIp " : "192.168.5.37" , " ResultIndex " : 11 , " AgencyId " : 7888 , " TraceId" : "8d4de010-3c75-41f5-9712-633fb365b4f3" , " TokenId" : "cfa64d5a-4e13-4933-b69a-b55089fd635c" , }
Failed Response:
{ " message " : " Authentication Failed! " }
Error Codes
Status Code | Status | Message |
---|---|---|
200 | Success | Request Successfully |
400 | Error | Bad Request |
401 | Unauthorized | Unauthorized User |
402 | Payment | Payment Request |
405 | Error | Method Not Allowed |
408 | Failed | Request Timeout |
503 | Error | Service Unavailable |