POST api/hotel/techson/order/checkbooking/{lang}

检测下单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(zh-hk,zh-cn,en-us)

string

Required

Body Parameters

下单模型

HotelBookingRQContract
NameDescriptionTypeAdditional information
sessiontoken

SessionToken

string

None.

contactperson

联系人信息

ContactPersonInfo

None.

customers

房间详细资料

Collection of BookingCustomerInfo

None.

specialRequest

特殊需求

string

None.

otherrequest

其他需求

string

None.

Request Formats

application/json, text/json

Sample:
{
  "sessiontoken": "sample string 1",
  "contactperson": {
    "surname": "sample string 1",
    "givenname": "sample string 2",
    "title": "sample string 3",
    "email": "sample string 4",
    "gender": "sample string 5",
    "age": 6,
    "address": "sample string 7",
    "tel": "sample string 8"
  },
  "customers": [
    {
      "roomtypecode": "sample string 1",
      "customerdetails": [
        {
          "surname": "sample string 1",
          "givenname": "sample string 2",
          "title": "sample string 3",
          "Gender": "sample string 4",
          "Age": 5
        },
        {
          "surname": "sample string 1",
          "givenname": "sample string 2",
          "title": "sample string 3",
          "Gender": "sample string 4",
          "Age": 5
        }
      ]
    },
    {
      "roomtypecode": "sample string 1",
      "customerdetails": [
        {
          "surname": "sample string 1",
          "givenname": "sample string 2",
          "title": "sample string 3",
          "Gender": "sample string 4",
          "Age": 5
        },
        {
          "surname": "sample string 1",
          "givenname": "sample string 2",
          "title": "sample string 3",
          "Gender": "sample string 4",
          "Age": 5
        }
      ]
    }
  ],
  "specialRequest": "sample string 2",
  "otherrequest": "sample string 3"
}

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

Response Information

Resource Description

检测下单

ReturnResultOfHotelBookingRSContract
NameDescriptionTypeAdditional information
data

HotelBookingRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "bookingcode": "sample string 1",
    "status": "sample string 2",
    "message": "sample string 3"
  },
  "code": 1,
  "message": "sample string 2"
}