POST BUS/api/app/Bus/BookSeat
Request Information
URI Parameters
None.
Body Parameters
BusPaxInfoVMName | Description | Type | Additional information |
---|---|---|---|
selectedSeats | string |
None. |
|
busOperatorName | string |
None. |
|
IdProofRequired | boolean |
None. |
|
Devicetoken | string |
None. |
|
Latitude | string |
None. |
|
Longitude | string |
None. |
|
ModelNo | string |
None. |
|
City | string |
None. |
|
PostalCode | string |
None. |
|
InternetTYPE | string |
None. |
|
IP | string |
None. |
|
Addresss | string |
None. |
|
value1 | string |
None. |
|
value2 | string |
None. |
|
bookInfo | BlockBusTicketModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "selectedSeats": "sample string 1", "busOperatorName": "sample string 2", "IdProofRequired": true, "Devicetoken": "sample string 4", "Latitude": "sample string 5", "Longitude": "sample string 6", "ModelNo": "sample string 7", "City": "sample string 8", "PostalCode": "sample string 9", "InternetTYPE": "sample string 10", "IP": "sample string 11", "Addresss": "sample string 12", "value1": "sample string 13", "value2": "sample string 14", "bookInfo": { "ResultIndex": "sample string 1", "TraceId": "sample string 2", "BoardingPointId": 3, "DropingPointId": 4, "ClientId": "sample string 5", "Passenger": [ { "LeadPassenger": true, "PassengerId": 2, "Title": "sample string 3", "Address": "sample string 4", "Age": 5, "Email": "sample string 6", "FirstName": "sample string 7", "Gender": 1, "IdNumber": "sample string 8", "IdType": 1, "LastName": "sample string 9", "Phoneno": "sample string 10", "Seat": { "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": {} } } }, { "LeadPassenger": true, "PassengerId": 2, "Title": "sample string 3", "Address": "sample string 4", "Age": 5, "Email": "sample string 6", "FirstName": "sample string 7", "Gender": 1, "IdNumber": "sample string 8", "IdType": 1, "LastName": "sample string 9", "Phoneno": "sample string 10", "Seat": { "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": {} } } } ], "droppingPoint": { "CityPointIndex": 1, "CityPointLocation": "sample string 2", "CityPointName": "sample string 3", "CityPointTime": "2024-12-28T19:03:22.7068141+05:30" }, "boardingPoint": { "CityPointIndex": 1, "CityPointLocation": "sample string 2", "CityPointName": "sample string 3", "CityPointTime": "2024-12-28T19:03:22.7068141+05:30" }, "sourceCity": "sample string 6", "destinationCity": "sample string 7", "doj": "sample string 8" } }
application/xml, text/xml
Sample:
<BusPaxInfoVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models"> <Addresss>sample string 12</Addresss> <City>sample string 8</City> <Devicetoken>sample string 4</Devicetoken> <IP>sample string 11</IP> <IdProofRequired>true</IdProofRequired> <InternetTYPE>sample string 10</InternetTYPE> <Latitude>sample string 5</Latitude> <Longitude>sample string 6</Longitude> <ModelNo>sample string 7</ModelNo> <PostalCode>sample string 9</PostalCode> <bookInfo> <BoardingPointId>3</BoardingPointId> <ClientId>sample string 5</ClientId> <DropingPointId>4</DropingPointId> <Passenger> <BusPassenger> <Address>sample string 4</Address> <Age>5</Age> <Email>sample string 6</Email> <FirstName>sample string 7</FirstName> <Gender>Male</Gender> <IdNumber>sample string 8</IdNumber> <IdType>PanNo</IdType> <LastName>sample string 9</LastName> <LeadPassenger>true</LeadPassenger> <PassengerId>2</PassengerId> <Phoneno>sample string 10</Phoneno> <Seat> <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> </Seat> <Title>sample string 3</Title> </BusPassenger> <BusPassenger> <Address>sample string 4</Address> <Age>5</Age> <Email>sample string 6</Email> <FirstName>sample string 7</FirstName> <Gender>Male</Gender> <IdNumber>sample string 8</IdNumber> <IdType>PanNo</IdType> <LastName>sample string 9</LastName> <LeadPassenger>true</LeadPassenger> <PassengerId>2</PassengerId> <Phoneno>sample string 10</Phoneno> <Seat> <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> </Seat> <Title>sample string 3</Title> </BusPassenger> </Passenger> <ResultIndex>sample string 1</ResultIndex> <TraceId>sample string 2</TraceId> <boardingPoint> <CityPointIndex>1</CityPointIndex> <CityPointLocation>sample string 2</CityPointLocation> <CityPointName>sample string 3</CityPointName> <CityPointTime>2024-12-28T19:03:22.7068141+05:30</CityPointTime> </boardingPoint> <destinationCity>sample string 7</destinationCity> <doj>sample string 8</doj> <droppingPoint> <CityPointIndex>1</CityPointIndex> <CityPointLocation>sample string 2</CityPointLocation> <CityPointName>sample string 3</CityPointName> <CityPointTime>2024-12-28T19:03:22.7068141+05:30</CityPointTime> </droppingPoint> <sourceCity>sample string 6</sourceCity> </bookInfo> <busOperatorName>sample string 2</busOperatorName> <selectedSeats>sample string 1</selectedSeats> <value1>sample string 13</value1> <value2>sample string 14</value2> </BusPaxInfoVM>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BusBookingResponseVmName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
StatusCode | integer |
None. |
|
Content | BusBookingResponseContent |
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", "BusBookingStatus": "sample string 3", "InvoiceAmount": 4.0, "InvoiceNumber": "sample string 5", "BusId": "sample string 6", "TicketNo": "sample string 7", "TravelOperatorPNR": "sample string 8" } } }
application/xml, text/xml
Sample:
<BusBookingResponseVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models"> <Content> <ADDINFO> <BusBookingStatus>sample string 3</BusBookingStatus> <BusId>sample string 6</BusId> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 2</ErrorMessage> </Error> <InvoiceAmount>4</InvoiceAmount> <InvoiceNumber>sample string 5</InvoiceNumber> <ResponseStatus>1</ResponseStatus> <TicketNo>sample string 7</TicketNo> <TraceId>sample string 2</TraceId> <TravelOperatorPNR>sample string 8</TravelOperatorPNR> </ADDINFO> <ResponseCode>1</ResponseCode> </Content> <StatusCode>2</StatusCode> <Version>sample string 1</Version> </BusBookingResponseVm>