POST api/kiosk/book

Request Information

URI Parameters

None.

Body Parameters

BookCreateDTO
NameDescriptionTypeAdditional information
IsReturning

integer

None.

DepartBook

BookByListObjFromAPI

None.

ReturnBook

BookByListObjFromAPI

None.

Request Formats

application/json, text/json

Sample:
{
  "IsReturning": 1,
  "DepartBook": {
    "scheduleBusTypeId": 1,
    "userid": 2,
    "isCredit": 3,
    "paymentType": 4,
    "approvalCode": "sample string 5",
    "cardNumber": "sample string 6",
    "emailAddress": "sample string 7",
    "contactNum": "sample string 8",
    "promoVoucherCode": "sample string 9",
    "Items": [
      {
        "seatNo": 1,
        "rtNumber": "sample string 2",
        "passengername": "sample string 3",
        "discountid": 4,
        "kmId": 5,
        "email": "sample string 6",
        "mobileno": "sample string 7",
        "discountno": "sample string 8"
      },
      {
        "seatNo": 1,
        "rtNumber": "sample string 2",
        "passengername": "sample string 3",
        "discountid": 4,
        "kmId": 5,
        "email": "sample string 6",
        "mobileno": "sample string 7",
        "discountno": "sample string 8"
      }
    ]
  },
  "ReturnBook": {
    "scheduleBusTypeId": 1,
    "userid": 2,
    "isCredit": 3,
    "paymentType": 4,
    "approvalCode": "sample string 5",
    "cardNumber": "sample string 6",
    "emailAddress": "sample string 7",
    "contactNum": "sample string 8",
    "promoVoucherCode": "sample string 9",
    "Items": [
      {
        "seatNo": 1,
        "rtNumber": "sample string 2",
        "passengername": "sample string 3",
        "discountid": 4,
        "kmId": 5,
        "email": "sample string 6",
        "mobileno": "sample string 7",
        "discountno": "sample string 8"
      },
      {
        "seatNo": 1,
        "rtNumber": "sample string 2",
        "passengername": "sample string 3",
        "discountid": 4,
        "kmId": 5,
        "email": "sample string 6",
        "mobileno": "sample string 7",
        "discountno": "sample string 8"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<BookCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VLI_API.Models.DTO">
  <DepartBook xmlns:d2p1="http://schemas.datacontract.org/2004/07/EFDomain">
    <d2p1:Items>
      <d2p1:BookByListObjFromAPI.Item>
        <d2p1:discountid>4</d2p1:discountid>
        <d2p1:discountno>sample string 8</d2p1:discountno>
        <d2p1:email>sample string 6</d2p1:email>
        <d2p1:kmId>5</d2p1:kmId>
        <d2p1:mobileno>sample string 7</d2p1:mobileno>
        <d2p1:passengername>sample string 3</d2p1:passengername>
        <d2p1:rtNumber>sample string 2</d2p1:rtNumber>
        <d2p1:seatNo>1</d2p1:seatNo>
      </d2p1:BookByListObjFromAPI.Item>
      <d2p1:BookByListObjFromAPI.Item>
        <d2p1:discountid>4</d2p1:discountid>
        <d2p1:discountno>sample string 8</d2p1:discountno>
        <d2p1:email>sample string 6</d2p1:email>
        <d2p1:kmId>5</d2p1:kmId>
        <d2p1:mobileno>sample string 7</d2p1:mobileno>
        <d2p1:passengername>sample string 3</d2p1:passengername>
        <d2p1:rtNumber>sample string 2</d2p1:rtNumber>
        <d2p1:seatNo>1</d2p1:seatNo>
      </d2p1:BookByListObjFromAPI.Item>
    </d2p1:Items>
    <d2p1:approvalCode>sample string 5</d2p1:approvalCode>
    <d2p1:cardNumber>sample string 6</d2p1:cardNumber>
    <d2p1:contactNum>sample string 8</d2p1:contactNum>
    <d2p1:emailAddress>sample string 7</d2p1:emailAddress>
    <d2p1:isCredit>3</d2p1:isCredit>
    <d2p1:paymentType>4</d2p1:paymentType>
    <d2p1:promoVoucherCode>sample string 9</d2p1:promoVoucherCode>
    <d2p1:scheduleBusTypeId>1</d2p1:scheduleBusTypeId>
    <d2p1:userid>2</d2p1:userid>
  </DepartBook>
  <IsReturning>1</IsReturning>
  <ReturnBook xmlns:d2p1="http://schemas.datacontract.org/2004/07/EFDomain">
    <d2p1:Items>
      <d2p1:BookByListObjFromAPI.Item>
        <d2p1:discountid>4</d2p1:discountid>
        <d2p1:discountno>sample string 8</d2p1:discountno>
        <d2p1:email>sample string 6</d2p1:email>
        <d2p1:kmId>5</d2p1:kmId>
        <d2p1:mobileno>sample string 7</d2p1:mobileno>
        <d2p1:passengername>sample string 3</d2p1:passengername>
        <d2p1:rtNumber>sample string 2</d2p1:rtNumber>
        <d2p1:seatNo>1</d2p1:seatNo>
      </d2p1:BookByListObjFromAPI.Item>
      <d2p1:BookByListObjFromAPI.Item>
        <d2p1:discountid>4</d2p1:discountid>
        <d2p1:discountno>sample string 8</d2p1:discountno>
        <d2p1:email>sample string 6</d2p1:email>
        <d2p1:kmId>5</d2p1:kmId>
        <d2p1:mobileno>sample string 7</d2p1:mobileno>
        <d2p1:passengername>sample string 3</d2p1:passengername>
        <d2p1:rtNumber>sample string 2</d2p1:rtNumber>
        <d2p1:seatNo>1</d2p1:seatNo>
      </d2p1:BookByListObjFromAPI.Item>
    </d2p1:Items>
    <d2p1:approvalCode>sample string 5</d2p1:approvalCode>
    <d2p1:cardNumber>sample string 6</d2p1:cardNumber>
    <d2p1:contactNum>sample string 8</d2p1:contactNum>
    <d2p1:emailAddress>sample string 7</d2p1:emailAddress>
    <d2p1:isCredit>3</d2p1:isCredit>
    <d2p1:paymentType>4</d2p1:paymentType>
    <d2p1:promoVoucherCode>sample string 9</d2p1:promoVoucherCode>
    <d2p1:scheduleBusTypeId>1</d2p1:scheduleBusTypeId>
    <d2p1:userid>2</d2p1:userid>
  </ReturnBook>
</BookCreateDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.