POST api/hotel/agentsys/book

预定

Request Information

URI Parameters

None.

Body Parameters

TC_HotelBookRQContract
NameDescriptionTypeAdditional information
lang

语言

string

None.

hotelcode

结束时间

string

None.

prebookingtoken

PreBookingToken

string

None.

checkindate

开始时间

date

None.

checkoutdate

结束时间

date

None.

contacttitle

联系人称谓(MR/MS/MISS....)

string

None.

contactfirstname

First Name

string

None.

contactlastname

Last Name

string

None.

contactaddress

联系人地址

string

None.

contactemail

联系人邮件

string

None.

contactphone

联系人电话

string

None.

specialrequest

特殊需求

string

None.

rooms

预定信息

Collection of TC_RoomBookContract

None.

customersessionid

客户sessionid

string

None.

customeripaddress

客户Ip地址

string

None.

customeruseragent

客户浏览器信息

string

None.

customerorderno

客户订单号

string

None.

authuser

用户身份信息

TC_UserContract

None.

Request Formats

application/json, text/json

Sample:
{
  "lang": "sample string 1",
  "hotelcode": "sample string 2",
  "prebookingtoken": "sample string 3",
  "checkindate": "2024-12-23T19:27:49.5610412+08:00",
  "checkoutdate": "2024-12-23T19:27:49.5610412+08:00",
  "contacttitle": "sample string 6",
  "contactfirstname": "sample string 7",
  "contactlastname": "sample string 8",
  "contactaddress": "sample string 9",
  "contactemail": "sample string 10",
  "contactphone": "sample string 11",
  "specialrequest": "sample string 12",
  "rooms": [
    {
      "plansessionid": "sample string 1",
      "adultcount": 2,
      "childcount": 3,
      "infantcount": 4,
      "bedtypecode": "sample string 5",
      "roomguests": [
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6",
          "gender": 7
        },
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6",
          "gender": 7
        }
      ]
    },
    {
      "plansessionid": "sample string 1",
      "adultcount": 2,
      "childcount": 3,
      "infantcount": 4,
      "bedtypecode": "sample string 5",
      "roomguests": [
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6",
          "gender": 7
        },
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6",
          "gender": 7
        }
      ]
    }
  ],
  "customersessionid": "sample string 14",
  "customeripaddress": "sample string 15",
  "customeruseragent": "sample string 16",
  "customerorderno": "sample string 17",
  "authuser": {
    "userid": "sample string 1",
    "password": "sample string 2"
  }
}

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

Response Information

Resource Description

预定

ReturnResultOfTC_HotelBookRSContract
NameDescriptionTypeAdditional information
data

TC_HotelBookRSContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "orderId": "sample string 1",
    "bookingcode": "sample string 2",
    "supplierbookingcode": "sample string 3",
    "confirmcode": "sample string 4",
    "status": "sample string 6"
  },
  "code": 1,
  "message": "sample string 2"
}