GET api/hotel/2c/order/pnr/query/{pnr}?lang={lang}

查看PNR

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pnr

string

Required

lang

string

Default value is en-us

Body Parameters

None.

Response Information

Resource Description

查看PNR

ReturnResultOfTocHotelPnrQueryRSContract
NameDescriptionTypeAdditional information
data

TocHotelPnrQueryRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "HotelCode": "sample string 1",
    "HotelName": "sample string 2",
    "CityCode": "sample string 3",
    "City": "sample string 4",
    "Country": "sample string 5",
    "CheckInDate": "sample string 6",
    "CheckOutDate": "sample string 7",
    "Total": 8.0,
    "Currency": "sample string 9",
    "Rooms": [
      {
        "RoomTypeCode": "sample string 1",
        "RoomName": "sample string 2",
        "IsCludeBreakFast": true,
        "Guests": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "AgeType": "sample string 3",
            "Age": 1
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "AgeType": "sample string 3",
            "Age": 1
          }
        ]
      },
      {
        "RoomTypeCode": "sample string 1",
        "RoomName": "sample string 2",
        "IsCludeBreakFast": true,
        "Guests": [
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "AgeType": "sample string 3",
            "Age": 1
          },
          {
            "FirstName": "sample string 1",
            "LastName": "sample string 2",
            "AgeType": "sample string 3",
            "Age": 1
          }
        ]
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}