POST BUS/api/app/Bus/Search

Request Information

URI Parameters

None.

Body Parameters

BusSearchRequestModel
NameDescriptionTypeAdditional information
OriginId

string

None.

DestinationId

string

None.

DateOfJourney

string

None.

PreferredCurrency

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OriginId": "sample string 1",
  "DestinationId": "sample string 2",
  "DateOfJourney": "sample string 3",
  "PreferredCurrency": "INR"
}

application/xml, text/xml

Sample:
<BusSearchRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <DateOfJourney>sample string 3</DateOfJourney>
  <DestinationId>sample string 2</DestinationId>
  <OriginId>sample string 1</OriginId>
</BusSearchRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BusSearchRequestModel'.

Response Information

Resource Description

BusSearchResultVM
NameDescriptionTypeAdditional information
Version

string

None.

StatusCode

integer

None.

Content

SearchResultContent

None.

doj

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "sample string 1",
  "StatusCode": 2,
  "Content": {
    "ResponseCode": 1,
    "Addinfo": {
      "ResponseStatus": 1,
      "Error": {
        "ErrorCode": 1,
        "ErrorMessage": "sample string 2"
      },
      "Destination": "sample string 2",
      "Origin": "sample string 3",
      "TraceId": "sample string 4",
      "BusResults": [
        {
          "ResultIndex": "sample string 1",
          "ArrivalTime": "2024-12-28T18:54:13.947822+05:30",
          "AvailableSeats": 3,
          "DepartureTime": "2024-12-28T18:54:13.947822+05:30",
          "RouteId": "sample string 5",
          "BusType": "sample string 6",
          "ServiceName": "sample string 7",
          "TravelName": "sample string 8",
          "IdProofRequired": true,
          "IsDropPointMandatory": true,
          "LiveTrackingAvailable": true,
          "MTicketEnabled": true,
          "MaxSeatsPerTicket": 13,
          "OperatorId": 14,
          "PartialCancellationAllowed": true,
          "BoardingPointsDetails": [
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            }
          ],
          "DroppingPointsDetails": [
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            }
          ],
          "BusPrice": {
            "CurrencyCode": "sample string 1",
            "BasePrice": 2.0,
            "Tax": 3.0,
            "OtherCharges": 4.0,
            "Discount": 5.0,
            "PublishedPrice": 6.0,
            "PublishedPriceRoundedOff": 7.0,
            "OfferedPrice": 8.0,
            "OfferedPriceRoundedOff": 9.0,
            "AgentCommission": 10.0,
            "AgentMarkUp": 11.0,
            "TDS": 12.0,
            "GST": {}
          },
          "CancellationPolicies": [
            {
              "CancellationCharge": 1,
              "CancellationChargeType": 1,
              "PolicyString": "sample string 2",
              "TimeBeforeDept": "sample string 3",
              "FromDate": "2024-12-28T18:54:13.947822+05:30",
              "ToDate": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CancellationCharge": 1,
              "CancellationChargeType": 1,
              "PolicyString": "sample string 2",
              "TimeBeforeDept": "sample string 3",
              "FromDate": "2024-12-28T18:54:13.947822+05:30",
              "ToDate": "2024-12-28T18:54:13.947822+05:30"
            }
          ]
        },
        {
          "ResultIndex": "sample string 1",
          "ArrivalTime": "2024-12-28T18:54:13.947822+05:30",
          "AvailableSeats": 3,
          "DepartureTime": "2024-12-28T18:54:13.947822+05:30",
          "RouteId": "sample string 5",
          "BusType": "sample string 6",
          "ServiceName": "sample string 7",
          "TravelName": "sample string 8",
          "IdProofRequired": true,
          "IsDropPointMandatory": true,
          "LiveTrackingAvailable": true,
          "MTicketEnabled": true,
          "MaxSeatsPerTicket": 13,
          "OperatorId": 14,
          "PartialCancellationAllowed": true,
          "BoardingPointsDetails": [
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            }
          ],
          "DroppingPointsDetails": [
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CityPointIndex": 1,
              "CityPointLocation": "sample string 2",
              "CityPointName": "sample string 3",
              "CityPointTime": "2024-12-28T18:54:13.947822+05:30"
            }
          ],
          "BusPrice": {
            "CurrencyCode": "sample string 1",
            "BasePrice": 2.0,
            "Tax": 3.0,
            "OtherCharges": 4.0,
            "Discount": 5.0,
            "PublishedPrice": 6.0,
            "PublishedPriceRoundedOff": 7.0,
            "OfferedPrice": 8.0,
            "OfferedPriceRoundedOff": 9.0,
            "AgentCommission": 10.0,
            "AgentMarkUp": 11.0,
            "TDS": 12.0,
            "GST": {}
          },
          "CancellationPolicies": [
            {
              "CancellationCharge": 1,
              "CancellationChargeType": 1,
              "PolicyString": "sample string 2",
              "TimeBeforeDept": "sample string 3",
              "FromDate": "2024-12-28T18:54:13.947822+05:30",
              "ToDate": "2024-12-28T18:54:13.947822+05:30"
            },
            {
              "CancellationCharge": 1,
              "CancellationChargeType": 1,
              "PolicyString": "sample string 2",
              "TimeBeforeDept": "sample string 3",
              "FromDate": "2024-12-28T18:54:13.947822+05:30",
              "ToDate": "2024-12-28T18:54:13.947822+05:30"
            }
          ]
        }
      ]
    }
  },
  "doj": "sample string 3"
}

application/xml, text/xml

Sample:
<BusSearchResultVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <Content>
    <Addinfo>
      <BusResults>
        <BusResult>
          <ArrivalTime>2024-12-28T18:54:13.947822+05:30</ArrivalTime>
          <AvailableSeats>3</AvailableSeats>
          <BoardingPointsDetails>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
          </BoardingPointsDetails>
          <BusPrice>
            <AgentCommission>10</AgentCommission>
            <AgentMarkUp>11</AgentMarkUp>
            <BasePrice>2</BasePrice>
            <CurrencyCode>sample string 1</CurrencyCode>
            <Discount>5</Discount>
            <GST />
            <OfferedPrice>8</OfferedPrice>
            <OfferedPriceRoundedOff>9</OfferedPriceRoundedOff>
            <OtherCharges>4</OtherCharges>
            <PublishedPrice>6</PublishedPrice>
            <PublishedPriceRoundedOff>7</PublishedPriceRoundedOff>
            <TDS>12</TDS>
            <Tax>3</Tax>
          </BusPrice>
          <BusType>sample string 6</BusType>
          <CancellationPolicies>
            <BusCancellationPolicy>
              <CancellationCharge>1</CancellationCharge>
              <CancellationChargeType>1</CancellationChargeType>
              <FromDate>2024-12-28T18:54:13.947822+05:30</FromDate>
              <PolicyString>sample string 2</PolicyString>
              <TimeBeforeDept>sample string 3</TimeBeforeDept>
              <ToDate>2024-12-28T18:54:13.947822+05:30</ToDate>
            </BusCancellationPolicy>
            <BusCancellationPolicy>
              <CancellationCharge>1</CancellationCharge>
              <CancellationChargeType>1</CancellationChargeType>
              <FromDate>2024-12-28T18:54:13.947822+05:30</FromDate>
              <PolicyString>sample string 2</PolicyString>
              <TimeBeforeDept>sample string 3</TimeBeforeDept>
              <ToDate>2024-12-28T18:54:13.947822+05:30</ToDate>
            </BusCancellationPolicy>
          </CancellationPolicies>
          <DepartureTime>2024-12-28T18:54:13.947822+05:30</DepartureTime>
          <DroppingPointsDetails>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
          </DroppingPointsDetails>
          <IdProofRequired>true</IdProofRequired>
          <IsDropPointMandatory>true</IsDropPointMandatory>
          <LiveTrackingAvailable>true</LiveTrackingAvailable>
          <MTicketEnabled>true</MTicketEnabled>
          <MaxSeatsPerTicket>13</MaxSeatsPerTicket>
          <OperatorId>14</OperatorId>
          <PartialCancellationAllowed>true</PartialCancellationAllowed>
          <ResultIndex>sample string 1</ResultIndex>
          <RouteId>sample string 5</RouteId>
          <ServiceName>sample string 7</ServiceName>
          <TravelName>sample string 8</TravelName>
        </BusResult>
        <BusResult>
          <ArrivalTime>2024-12-28T18:54:13.947822+05:30</ArrivalTime>
          <AvailableSeats>3</AvailableSeats>
          <BoardingPointsDetails>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
          </BoardingPointsDetails>
          <BusPrice>
            <AgentCommission>10</AgentCommission>
            <AgentMarkUp>11</AgentMarkUp>
            <BasePrice>2</BasePrice>
            <CurrencyCode>sample string 1</CurrencyCode>
            <Discount>5</Discount>
            <GST />
            <OfferedPrice>8</OfferedPrice>
            <OfferedPriceRoundedOff>9</OfferedPriceRoundedOff>
            <OtherCharges>4</OtherCharges>
            <PublishedPrice>6</PublishedPrice>
            <PublishedPriceRoundedOff>7</PublishedPriceRoundedOff>
            <TDS>12</TDS>
            <Tax>3</Tax>
          </BusPrice>
          <BusType>sample string 6</BusType>
          <CancellationPolicies>
            <BusCancellationPolicy>
              <CancellationCharge>1</CancellationCharge>
              <CancellationChargeType>1</CancellationChargeType>
              <FromDate>2024-12-28T18:54:13.947822+05:30</FromDate>
              <PolicyString>sample string 2</PolicyString>
              <TimeBeforeDept>sample string 3</TimeBeforeDept>
              <ToDate>2024-12-28T18:54:13.947822+05:30</ToDate>
            </BusCancellationPolicy>
            <BusCancellationPolicy>
              <CancellationCharge>1</CancellationCharge>
              <CancellationChargeType>1</CancellationChargeType>
              <FromDate>2024-12-28T18:54:13.947822+05:30</FromDate>
              <PolicyString>sample string 2</PolicyString>
              <TimeBeforeDept>sample string 3</TimeBeforeDept>
              <ToDate>2024-12-28T18:54:13.947822+05:30</ToDate>
            </BusCancellationPolicy>
          </CancellationPolicies>
          <DepartureTime>2024-12-28T18:54:13.947822+05:30</DepartureTime>
          <DroppingPointsDetails>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
            <PickAndDropPointsDetail>
              <CityPointIndex>1</CityPointIndex>
              <CityPointLocation>sample string 2</CityPointLocation>
              <CityPointName>sample string 3</CityPointName>
              <CityPointTime>2024-12-28T18:54:13.947822+05:30</CityPointTime>
            </PickAndDropPointsDetail>
          </DroppingPointsDetails>
          <IdProofRequired>true</IdProofRequired>
          <IsDropPointMandatory>true</IsDropPointMandatory>
          <LiveTrackingAvailable>true</LiveTrackingAvailable>
          <MTicketEnabled>true</MTicketEnabled>
          <MaxSeatsPerTicket>13</MaxSeatsPerTicket>
          <OperatorId>14</OperatorId>
          <PartialCancellationAllowed>true</PartialCancellationAllowed>
          <ResultIndex>sample string 1</ResultIndex>
          <RouteId>sample string 5</RouteId>
          <ServiceName>sample string 7</ServiceName>
          <TravelName>sample string 8</TravelName>
        </BusResult>
      </BusResults>
      <Destination>sample string 2</Destination>
      <Error>
        <ErrorCode>1</ErrorCode>
        <ErrorMessage>sample string 2</ErrorMessage>
      </Error>
      <Origin>sample string 3</Origin>
      <ResponseStatus>1</ResponseStatus>
      <TraceId>sample string 4</TraceId>
    </Addinfo>
    <ResponseCode>1</ResponseCode>
  </Content>
  <StatusCode>2</StatusCode>
  <Version>sample string 1</Version>
  <doj>sample string 3</doj>
</BusSearchResultVM>