POST api/hotel/2c/order/book/{lang}

下单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us)

string

Required

Body Parameters

下单模型

TocHotelBookRQContract
NameDescriptionTypeAdditional information
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 TocRoomBookContract

None.

customersessionid

客户sessionid

string

None.

customeripaddress

客户Ip地址

string

None.

customeruseragent

客户Ip地址

string

None.

customerorderno

客户订单号

string

None.

cancelbeforeday

取消提前天数

integer

None.

FareReasonCode

价钱原因代码

string

None.

paycardid

支付的卡id

string

None.

paycardpwd

支付的卡密码

string

None.

Request Formats

application/json, text/json

Sample:
{
  "hotelcode": "sample string 1",
  "prebookingtoken": "sample string 2",
  "checkindate": "2024-12-23T19:33:23.8581716+08:00",
  "checkoutdate": "2024-12-23T19:33:23.8581716+08:00",
  "contacttitle": "sample string 5",
  "contactfirstname": "sample string 6",
  "contactlastname": "sample string 7",
  "contactaddress": "sample string 8",
  "contactemail": "sample string 9",
  "contactphone": "sample string 10",
  "specialrequest": "sample string 11",
  "rooms": [
    {
      "plansid": "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"
        },
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6"
        }
      ]
    },
    {
      "plansid": "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"
        },
        {
          "agetype": 1,
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5,
          "nationality": "sample string 6"
        }
      ]
    }
  ],
  "customersessionid": "sample string 12",
  "customeripaddress": "sample string 13",
  "customeruseragent": "sample string 14",
  "customerorderno": "sample string 15",
  "cancelbeforeday": 16,
  "FareReasonCode": "sample string 17",
  "paycardid": "sample string 18",
  "paycardpwd": "sample string 19"
}

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

Response Information

Resource Description

下单

ReturnResultOfTocHotelBookRSContract
NameDescriptionTypeAdditional information
data

TocHotelBookRSContract

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 5"
  },
  "code": 1,
  "message": "sample string 2"
}