POST BUS/api/app/Bus/BusLayout

Request Information

URI Parameters

None.

Body Parameters

SeatLayoutRequestModel
NameDescriptionTypeAdditional information
ResultIndex

string

None.

TraceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ResultIndex": "sample string 1",
  "TraceId": "sample string 2"
}

application/xml, text/xml

Sample:
<SeatLayoutRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <ResultIndex>sample string 1</ResultIndex>
  <TraceId>sample string 2</TraceId>
</SeatLayoutRequestModel>

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 'SeatLayoutRequestModel'.

Response Information

Resource Description

SeatsLayoutVM
NameDescriptionTypeAdditional information
Version

string

None.

StatusCode

integer

None.

Content

LayoutContent

None.

boardingPoints

Collection of PickAndDropPointsDetail

None.

droppingPoints

Collection of PickAndDropPointsDetail

None.

ResultIndex

string

None.

doj

date

None.

source

string

None.

destination

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"
      },
      "TraceId": "sample string 2",
      "SeatLayoutDetails": {
        "AvailableSeats": 1,
        "HtmlLayout": "sample string 2",
        "SeatLayout": {
          "NoOfColumns": 1,
          "NoOfRows": 2,
          "SeatDetails": [
            [
              {
                "ColumnNo": "sample string 1",
                "Height": 2,
                "IsLadiesSeat": true,
                "IsMalesSeat": true,
                "IsUpper": true,
                "RowNo": "sample string 6",
                "SeatFare": 7.0,
                "SeatIndex": 8,
                "SeatName": "sample string 9",
                "SeatStatus": true,
                "SeatType": 0,
                "Width": 11,
                "Price": {
                  "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": {}
                }
              },
              {
                "ColumnNo": "sample string 1",
                "Height": 2,
                "IsLadiesSeat": true,
                "IsMalesSeat": true,
                "IsUpper": true,
                "RowNo": "sample string 6",
                "SeatFare": 7.0,
                "SeatIndex": 8,
                "SeatName": "sample string 9",
                "SeatStatus": true,
                "SeatType": 0,
                "Width": 11,
                "Price": {
                  "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": {}
                }
              }
            ],
            [
              {
                "ColumnNo": "sample string 1",
                "Height": 2,
                "IsLadiesSeat": true,
                "IsMalesSeat": true,
                "IsUpper": true,
                "RowNo": "sample string 6",
                "SeatFare": 7.0,
                "SeatIndex": 8,
                "SeatName": "sample string 9",
                "SeatStatus": true,
                "SeatType": 0,
                "Width": 11,
                "Price": {
                  "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": {}
                }
              },
              {
                "ColumnNo": "sample string 1",
                "Height": 2,
                "IsLadiesSeat": true,
                "IsMalesSeat": true,
                "IsUpper": true,
                "RowNo": "sample string 6",
                "SeatFare": 7.0,
                "SeatIndex": 8,
                "SeatName": "sample string 9",
                "SeatStatus": true,
                "SeatType": 0,
                "Width": 11,
                "Price": {
                  "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": {}
                }
              }
            ]
          ]
        }
      }
    }
  },
  "boardingPoints": [
    {
      "CityPointIndex": 1,
      "CityPointLocation": "sample string 2",
      "CityPointName": "sample string 3",
      "CityPointTime": "2024-12-28T18:43:34.0647888+05:30"
    },
    {
      "CityPointIndex": 1,
      "CityPointLocation": "sample string 2",
      "CityPointName": "sample string 3",
      "CityPointTime": "2024-12-28T18:43:34.0647888+05:30"
    }
  ],
  "droppingPoints": [
    {
      "CityPointIndex": 1,
      "CityPointLocation": "sample string 2",
      "CityPointName": "sample string 3",
      "CityPointTime": "2024-12-28T18:43:34.0647888+05:30"
    },
    {
      "CityPointIndex": 1,
      "CityPointLocation": "sample string 2",
      "CityPointName": "sample string 3",
      "CityPointTime": "2024-12-28T18:43:34.0647888+05:30"
    }
  ],
  "ResultIndex": "sample string 3",
  "doj": "2024-12-28T18:43:34.0647888+05:30",
  "source": "sample string 5",
  "destination": "sample string 6"
}

application/xml, text/xml

Sample:
<SeatsLayoutVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <Content>
    <Addinfo>
      <Error>
        <ErrorCode>1</ErrorCode>
        <ErrorMessage>sample string 2</ErrorMessage>
      </Error>
      <ResponseStatus>1</ResponseStatus>
      <SeatLayoutDetails>
        <AvailableSeats>1</AvailableSeats>
        <HtmlLayout>sample string 2</HtmlLayout>
        <SeatLayout>
          <NoOfColumns>1</NoOfColumns>
          <NoOfRows>2</NoOfRows>
          <SeatDetails>
            <ArrayOfSeatDetail>
              <SeatDetail>
                <ColumnNo>sample string 1</ColumnNo>
                <Height>2</Height>
                <IsLadiesSeat>true</IsLadiesSeat>
                <IsMalesSeat>true</IsMalesSeat>
                <IsUpper>true</IsUpper>
                <Price>
                  <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>
                </Price>
                <RowNo>sample string 6</RowNo>
                <SeatFare>7</SeatFare>
                <SeatIndex>8</SeatIndex>
                <SeatName>sample string 9</SeatName>
                <SeatStatus>true</SeatStatus>
                <SeatType>NotSet</SeatType>
                <Width>11</Width>
              </SeatDetail>
              <SeatDetail>
                <ColumnNo>sample string 1</ColumnNo>
                <Height>2</Height>
                <IsLadiesSeat>true</IsLadiesSeat>
                <IsMalesSeat>true</IsMalesSeat>
                <IsUpper>true</IsUpper>
                <Price>
                  <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>
                </Price>
                <RowNo>sample string 6</RowNo>
                <SeatFare>7</SeatFare>
                <SeatIndex>8</SeatIndex>
                <SeatName>sample string 9</SeatName>
                <SeatStatus>true</SeatStatus>
                <SeatType>NotSet</SeatType>
                <Width>11</Width>
              </SeatDetail>
            </ArrayOfSeatDetail>
            <ArrayOfSeatDetail>
              <SeatDetail>
                <ColumnNo>sample string 1</ColumnNo>
                <Height>2</Height>
                <IsLadiesSeat>true</IsLadiesSeat>
                <IsMalesSeat>true</IsMalesSeat>
                <IsUpper>true</IsUpper>
                <Price>
                  <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>
                </Price>
                <RowNo>sample string 6</RowNo>
                <SeatFare>7</SeatFare>
                <SeatIndex>8</SeatIndex>
                <SeatName>sample string 9</SeatName>
                <SeatStatus>true</SeatStatus>
                <SeatType>NotSet</SeatType>
                <Width>11</Width>
              </SeatDetail>
              <SeatDetail>
                <ColumnNo>sample string 1</ColumnNo>
                <Height>2</Height>
                <IsLadiesSeat>true</IsLadiesSeat>
                <IsMalesSeat>true</IsMalesSeat>
                <IsUpper>true</IsUpper>
                <Price>
                  <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>
                </Price>
                <RowNo>sample string 6</RowNo>
                <SeatFare>7</SeatFare>
                <SeatIndex>8</SeatIndex>
                <SeatName>sample string 9</SeatName>
                <SeatStatus>true</SeatStatus>
                <SeatType>NotSet</SeatType>
                <Width>11</Width>
              </SeatDetail>
            </ArrayOfSeatDetail>
          </SeatDetails>
        </SeatLayout>
      </SeatLayoutDetails>
      <TraceId>sample string 2</TraceId>
    </Addinfo>
    <ResponseCode>1</ResponseCode>
  </Content>
  <ResultIndex>sample string 3</ResultIndex>
  <StatusCode>2</StatusCode>
  <Version>sample string 1</Version>
  <boardingPoints>
    <PickAndDropPointsDetail>
      <CityPointIndex>1</CityPointIndex>
      <CityPointLocation>sample string 2</CityPointLocation>
      <CityPointName>sample string 3</CityPointName>
      <CityPointTime>2024-12-28T18:43:34.0647888+05:30</CityPointTime>
    </PickAndDropPointsDetail>
    <PickAndDropPointsDetail>
      <CityPointIndex>1</CityPointIndex>
      <CityPointLocation>sample string 2</CityPointLocation>
      <CityPointName>sample string 3</CityPointName>
      <CityPointTime>2024-12-28T18:43:34.0647888+05:30</CityPointTime>
    </PickAndDropPointsDetail>
  </boardingPoints>
  <destination>sample string 6</destination>
  <doj>2024-12-28T18:43:34.0647888+05:30</doj>
  <droppingPoints>
    <PickAndDropPointsDetail>
      <CityPointIndex>1</CityPointIndex>
      <CityPointLocation>sample string 2</CityPointLocation>
      <CityPointName>sample string 3</CityPointName>
      <CityPointTime>2024-12-28T18:43:34.0647888+05:30</CityPointTime>
    </PickAndDropPointsDetail>
    <PickAndDropPointsDetail>
      <CityPointIndex>1</CityPointIndex>
      <CityPointLocation>sample string 2</CityPointLocation>
      <CityPointName>sample string 3</CityPointName>
      <CityPointTime>2024-12-28T18:43:34.0647888+05:30</CityPointTime>
    </PickAndDropPointsDetail>
  </droppingPoints>
  <source>sample string 5</source>
</SeatsLayoutVM>