POST api/hotel/totalstay/order/submit/{lang}

下单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us)

string

Required

Body Parameters

下单模型

TsHotelBookingRQContract
NameDescriptionTypeAdditional information
PropertyID

PropertyID

integer

None.

prebookingtoken

PreBookingToken

string

None.

checkintime

开始时间

date

None.

checkouttime

结束时间

date

None.

contactstitle

联系人称谓(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.

roombooks

房间信息

Collection of vRoomBookingContract

None.

Request Formats

application/json, text/json

Sample:
{
  "PropertyID": 1,
  "prebookingtoken": "sample string 2",
  "checkintime": "2024-12-23T19:44:03.4782493+08:00",
  "checkouttime": "2024-12-23T19:44:03.4782493+08:00",
  "contactstitle": "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",
  "roombooks": [
    {
      "roomtypeid": 1,
      "bookingtoken": "sample string 2",
      "mealbasisid": 3,
      "adultcount": 4,
      "childcount": 5,
      "infants": 6,
      "roomguests": [
        {
          "agetype": "sample string 1",
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5
        },
        {
          "agetype": "sample string 1",
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5
        }
      ]
    },
    {
      "roomtypeid": 1,
      "bookingtoken": "sample string 2",
      "mealbasisid": 3,
      "adultcount": 4,
      "childcount": 5,
      "infants": 6,
      "roomguests": [
        {
          "agetype": "sample string 1",
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5
        },
        {
          "agetype": "sample string 1",
          "title": "sample string 2",
          "firstname": "sample string 3",
          "lastname": "sample string 4",
          "age": 5
        }
      ]
    }
  ]
}

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

Response Information

Resource Description

下单

ReturnResultOfTsHotelBookingRSContract
NameDescriptionTypeAdditional information
data

TsHotelBookingRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "bookingcode": "sample string 1",
    "tradecode": "sample string 2",
    "total": 3.0,
    "suppliers": [
      {
        "supplier": "sample string 1",
        "supplierno": "sample string 2"
      },
      {
        "supplier": "sample string 1",
        "supplierno": "sample string 2"
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}