POST api/hotel/curx/order/prebook/{lang}

预下单检测

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us)

string

Required

Body Parameters

下单模型

AsHotelPreBookingRQContract
NameDescriptionTypeAdditional information
citycode

城市编码

string

None.

hotelcode

结束时间

string

None.

checkindate

开始时间

date

None.

checkoutdate

结束时间

date

None.

nationality

国籍

string

None.

rooms

预定信息

Collection of AsRoomBookingContract

None.

cachetoken

缓存键

string

None.

searchsource

搜索来源(ts,sun)

string

None.

clientcurrency

网站币种

string

None.

customersessionid

客户sessionid

string

None.

customeripaddress

客户Ip地址

string

None.

customeruseragent

客户Ip地址

string

None.

authuser

用户身份信息

AsUserContract

None.

Request Formats

application/json, text/json

Sample:
{
  "citycode": "sample string 1",
  "hotelcode": "sample string 2",
  "checkindate": "2024-12-23T19:25:00.7961821+08:00",
  "checkoutdate": "2024-12-23T19:25:00.7961821+08:00",
  "nationality": "sample string 5",
  "rooms": [
    {
      "plansid": "sample string 1",
      "adultcount": 2,
      "infantcount": 3,
      "childages": [
        1,
        2
      ],
      "optionids": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "plansid": "sample string 1",
      "adultcount": 2,
      "infantcount": 3,
      "childages": [
        1,
        2
      ],
      "optionids": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "cachetoken": "sample string 6",
  "searchsource": "sample string 7",
  "clientcurrency": "sample string 8",
  "customersessionid": "sample string 9",
  "customeripaddress": "sample string 10",
  "customeruseragent": "sample string 11",
  "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 'AsHotelPreBookingRQContract'.

Response Information

Resource Description

预下单检测

ReturnResultOfAsHotelPreBookingRSContract
NameDescriptionTypeAdditional information
data

AsHotelPreBookingRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "roomid": "sample string 1",
    "roomname": "sample string 2",
    "bedtypes": [
      {
        "bedtypeid": "sample string 1",
        "bedtype": "sample string 2"
      },
      {
        "bedtypeid": "sample string 1",
        "bedtype": "sample string 2"
      }
    ],
    "hotelinfo": {
      "hotelcode": "sample string 1",
      "hotelname": "sample string 2",
      "hotelengname": "sample string 3",
      "longitude": "sample string 4",
      "latitude": "sample string 5",
      "rating": "sample string 6",
      "citycode": "sample string 7",
      "city": "sample string 8",
      "country": "sample string 9",
      "countrycode": "sample string 10",
      "regions": [
        {
          "regionid": "sample string 1",
          "region": "sample string 2"
        },
        {
          "regionid": "sample string 1",
          "region": "sample string 2"
        }
      ],
      "resort": "sample string 11",
      "address": "sample string 12",
      "streetnumber": "sample string 13",
      "postalcode": "sample string 14",
      "phone": [
        "sample string 1",
        "sample string 2"
      ],
      "fax": "sample string 15",
      "email": [
        "sample string 1",
        "sample string 2"
      ],
      "url": "sample string 16",
      "descript": "sample string 17",
      "location": "sample string 18",
      "catedescripts": [
        {
          "cateid": "sample string 1",
          "catename": "sample string 2",
          "content": "sample string 3"
        },
        {
          "cateid": "sample string 1",
          "catename": "sample string 2",
          "content": "sample string 3"
        }
      ],
      "classimages": [
        {
          "classid": "sample string 1",
          "classname": "sample string 2",
          "classimages": [
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            },
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            }
          ]
        },
        {
          "classid": "sample string 1",
          "classname": "sample string 2",
          "classimages": [
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            },
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            }
          ]
        }
      ],
      "roomtypes": [
        {
          "roomtypeid": "sample string 1",
          "roomtype": "sample string 2",
          "roomfacilitys": [
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            },
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            }
          ]
        },
        {
          "roomtypeid": "sample string 1",
          "roomtype": "sample string 2",
          "roomfacilitys": [
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            },
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            }
          ]
        }
      ],
      "hotelfacilitys": [
        {
          "facilityid": "sample string 1",
          "facility": "sample string 2",
          "notes": "sample string 3",
          "costinfo": "sample string 4"
        },
        {
          "facilityid": "sample string 1",
          "facility": "sample string 2",
          "notes": "sample string 3",
          "costinfo": "sample string 4"
        }
      ],
      "tripadvisorinfo": {
        "rating": 1.1,
        "ratingimgurl": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/1.1-52242-5.svg",
        "reviewcount": 2,
        "reviewurl": "sample string 3",
        "nearbyrestaurants": "sample string 4",
        "nearbyattractions": "sample string 5",
        "ranking": {
          "rankingno": "sample string 1",
          "rankingnumber": "sample string 2",
          "rankinglocation": "sample string 3",
          "rankingdescript": "sample string 4"
        },
        "awards": [
          {
            "awardtype": "sample string 1",
            "displayname": "sample string 2",
            "year": "sample string 3",
            "tinyimgurl": "sample string 4",
            "smallimgurl": "sample string 5",
            "largeimgurl": "sample string 6"
          },
          {
            "awardtype": "sample string 1",
            "displayname": "sample string 2",
            "year": "sample string 3",
            "tinyimgurl": "sample string 4",
            "smallimgurl": "sample string 5",
            "largeimgurl": "sample string 6"
          }
        ]
      }
    },
    "prebookingtoken": "sample string 3",
    "orgtotal": 4.0,
    "hotelfees": [
      {
        "description": "sample string 1",
        "amount": 2.0,
        "currencty": "sample string 3"
      },
      {
        "description": "sample string 1",
        "amount": 2.0,
        "currencty": "sample string 3"
      }
    ],
    "surcharges": [
      {
        "type": "sample string 1",
        "amount": 2.0,
        "currencty": "sample string 3"
      },
      {
        "type": "sample string 1",
        "amount": 2.0,
        "currencty": "sample string 3"
      }
    ],
    "markuptotal": 5.0,
    "markupdescript": "sample string 6",
    "total": 7.0,
    "surchargetotal": 8.0,
    "currency": "sample string 9",
    "cancellations": [
      {
        "startdate": "2024-12-23T19:25:00.8117882+08:00",
        "enddate": "2024-12-23T19:25:00.8117882+08:00",
        "penalty": 3.0,
        "currency": "sample string 4"
      },
      {
        "startdate": "2024-12-23T19:25:00.8117882+08:00",
        "enddate": "2024-12-23T19:25:00.8117882+08:00",
        "penalty": 3.0,
        "currency": "sample string 4"
      }
    ],
    "checkininstructions": "sample string 10",
    "specialcheckininstructions": "sample string 11",
    "cancellationpolicy": "sample string 12",
    "roompernights": [
      {
        "date": "sample string 1",
        "orgrate": 2.0,
        "rate": 3.0,
        "currency": "sample string 4"
      },
      {
        "date": "sample string 1",
        "orgrate": 2.0,
        "rate": 3.0,
        "currency": "sample string 4"
      }
    ],
    "ispackage": true
  },
  "code": 1,
  "message": "sample string 2"
}