POST api/hotel/order/submit

提交酒店预定订单(已使用)

Request Information

URI Parameters

None.

Body Parameters

订单信息

HotelReservRQContract
NameDescriptionTypeAdditional information
reservinfo

下单必要信息

Collection of HotelReservInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "reservinfo": [
    {
      "agentuniqueid": "sample string 1",
      "agentcontext": "sample string 2",
      "roomstaylist": [
        {
          "roomtypename": "sample string 1",
          "roomtypecode": "sample string 2",
          "RatePlanId": "sample string 3",
          "checkintime": "2024-12-23T19:22:23.3407884+08:00",
          "checkouttime": "2024-12-23T19:22:23.3407884+08:00",
          "hotelcode": "sample string 6",
          "hotelcodecontext": "sample string 7",
          "amountbeforetax": 8.0,
          "currencycode": "sample string 9",
          "guestlist": [
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            },
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            }
          ]
        },
        {
          "roomtypename": "sample string 1",
          "roomtypecode": "sample string 2",
          "RatePlanId": "sample string 3",
          "checkintime": "2024-12-23T19:22:23.3407884+08:00",
          "checkouttime": "2024-12-23T19:22:23.3407884+08:00",
          "hotelcode": "sample string 6",
          "hotelcodecontext": "sample string 7",
          "amountbeforetax": 8.0,
          "currencycode": "sample string 9",
          "guestlist": [
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            },
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            }
          ]
        }
      ],
      "specialrequest": [
        "sample string 1",
        "sample string 2"
      ],
      "contactperson": "sample string 3",
      "emailorfax": "sample string 4",
      "phone": "sample string 5"
    },
    {
      "agentuniqueid": "sample string 1",
      "agentcontext": "sample string 2",
      "roomstaylist": [
        {
          "roomtypename": "sample string 1",
          "roomtypecode": "sample string 2",
          "RatePlanId": "sample string 3",
          "checkintime": "2024-12-23T19:22:23.3407884+08:00",
          "checkouttime": "2024-12-23T19:22:23.3407884+08:00",
          "hotelcode": "sample string 6",
          "hotelcodecontext": "sample string 7",
          "amountbeforetax": 8.0,
          "currencycode": "sample string 9",
          "guestlist": [
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            },
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            }
          ]
        },
        {
          "roomtypename": "sample string 1",
          "roomtypecode": "sample string 2",
          "RatePlanId": "sample string 3",
          "checkintime": "2024-12-23T19:22:23.3407884+08:00",
          "checkouttime": "2024-12-23T19:22:23.3407884+08:00",
          "hotelcode": "sample string 6",
          "hotelcodecontext": "sample string 7",
          "amountbeforetax": 8.0,
          "currencycode": "sample string 9",
          "guestlist": [
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            },
            {
              "isprimaryindicator": true,
              "arrivaltransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "departuretransport": {
                "transporttype": "sample string 1",
                "transportid": "sample string 2",
                "time": "2024-12-23T19:22:23.3407884+08:00"
              },
              "guestCount": {
                "prefix": "sample string 1",
                "givename": "sample string 2",
                "surname": "sample string 3",
                "agequalifyingcode": 4,
                "age": 5
              }
            }
          ]
        }
      ],
      "specialrequest": [
        "sample string 1",
        "sample string 2"
      ],
      "contactperson": "sample string 3",
      "emailorfax": "sample string 4",
      "phone": "sample string 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 'HotelReservRQContract'.

Response Information

Resource Description

提交酒店预定订单(已使用)

ReturnResultOfHotelReservResContract
NameDescriptionTypeAdditional information
data

HotelReservResContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "revid": "sample string 1",
    "dealline": "sample string 2",
    "amountpercent": 3.0,
    "roomsbookstatus": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "code": 1,
  "message": "sample string 2"
}