POST api/v1/SelfCheckin/AddCustomer

请求信息(Request)

URI 参数

None.

Body 参数

AddCustomerModel
名称描述类型备注
PmsHotelID

string

None.

RegOrderId

string

None.

guest

HotelRegOrderGuestDTO

None.

请求格式

application/json, text/json

Sample:
{
  "PmsHotelID": "sample string 1",
  "RegOrderId": "sample string 2",
  "guest": {
    "ID": 1,
    "HotelId": 2,
    "HotelRegOrderId": 3,
    "Name": "sample string 4",
    "Sex": 5,
    "Phone": "sample string 6",
    "IdCardNumber": "sample string 7",
    "IdCardUid": "sample string 8",
    "IdCardPhoto": "sample string 9",
    "Address": "sample string 10",
    "Birthday": "2025-06-19T22:05:05.7863594+08:00",
    "Nation": "sample string 11",
    "NationCode": "sample string 12",
    "IdCardSignDepartment": "sample string 13",
    "IdCardEffDate": "2025-06-19T22:05:05.7863594+08:00",
    "IdCardExpDate": "2025-06-19T22:05:05.7863594+08:00",
    "IdCardVerifyMode": 0,
    "IdCardVerifyModeName": "sample string 14",
    "IdCardVerifyResult": 15.0,
    "IdCardVerifyNo": "sample string 16",
    "IdCardVerifyId": 17,
    "FacePhoto": "sample string 18",
    "HasDoorLockIdCard": true,
    "DoorLockIdCardSuccess": true,
    "DoorLockIdCardMessage": "sample string 21",
    "DoorLockIdCardTime": "2025-06-19T22:05:05.7863594+08:00",
    "DoorLockIdCardCount": 22,
    "DoorLockIdCardCancel": true,
    "DoorLockIdCardCancelMessage": "sample string 24",
    "DoorLockIdCardCancelCount": 25,
    "DoorLockIdCardCancelTime": "2025-06-19T22:05:05.7863594+08:00",
    "DoorLockIcCard": "sample string 26",
    "IcCardReturn": 27,
    "PoliceApi": 0,
    "PoliceApiName": "sample string 28",
    "PoliceApiSuccess": true,
    "PoliceApiGuestNo": "sample string 29",
    "PoliceApiRecordNo": "sample string 30",
    "PoliceApiCheckOut": true,
    "PoliceApiMessage": "sample string 32",
    "CreateTime": "2025-06-19T22:05:05.7863594+08:00",
    "PmsGuestId": "sample string 34",
    "AIControlApi": 1,
    "AIControlApiName": "sample string 35",
    "AIControlApiSuccess": true,
    "AIControlApiMessage": "sample string 36",
    "IsAddGuest": true,
    "AddGuestSuccess": true,
    "UserId": 1,
    "AIControlApiLog": "sample string 39",
    "FacesetGroupId": "sample string 40",
    "FacesetFaceToken": "sample string 41",
    "HotelCode": "sample string 42",
    "HotelDataCode": "sample string 43",
    "IsOpenUnlicenCheckIn": true
  }
}

application/xml, text/xml

Sample:
<AddCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
  <PmsHotelID>sample string 1</PmsHotelID>
  <RegOrderId>sample string 2</RegOrderId>
  <guest>
    <AIControlApi>1</AIControlApi>
    <AIControlApiLog>sample string 39</AIControlApiLog>
    <AIControlApiMessage>sample string 36</AIControlApiMessage>
    <AIControlApiName>sample string 35</AIControlApiName>
    <AIControlApiSuccess>true</AIControlApiSuccess>
    <AddGuestSuccess>true</AddGuestSuccess>
    <Address>sample string 10</Address>
    <Birthday>2025-06-19T22:05:05.7863594+08:00</Birthday>
    <CreateTime>2025-06-19T22:05:05.7863594+08:00</CreateTime>
    <DoorLockIcCard>sample string 26</DoorLockIcCard>
    <DoorLockIdCardCancel>true</DoorLockIdCardCancel>
    <DoorLockIdCardCancelCount>25</DoorLockIdCardCancelCount>
    <DoorLockIdCardCancelMessage>sample string 24</DoorLockIdCardCancelMessage>
    <DoorLockIdCardCancelTime>2025-06-19T22:05:05.7863594+08:00</DoorLockIdCardCancelTime>
    <DoorLockIdCardCount>22</DoorLockIdCardCount>
    <DoorLockIdCardMessage>sample string 21</DoorLockIdCardMessage>
    <DoorLockIdCardSuccess>true</DoorLockIdCardSuccess>
    <DoorLockIdCardTime>2025-06-19T22:05:05.7863594+08:00</DoorLockIdCardTime>
    <FacePhoto>sample string 18</FacePhoto>
    <FacesetFaceToken>sample string 41</FacesetFaceToken>
    <FacesetGroupId>sample string 40</FacesetGroupId>
    <HasDoorLockIdCard>true</HasDoorLockIdCard>
    <HotelCode>sample string 42</HotelCode>
    <HotelDataCode>sample string 43</HotelDataCode>
    <HotelId>2</HotelId>
    <HotelRegOrderId>3</HotelRegOrderId>
    <ID>1</ID>
    <IcCardReturn>27</IcCardReturn>
    <IdCardEffDate>2025-06-19T22:05:05.7863594+08:00</IdCardEffDate>
    <IdCardExpDate>2025-06-19T22:05:05.7863594+08:00</IdCardExpDate>
    <IdCardNumber>sample string 7</IdCardNumber>
    <IdCardPhoto>sample string 9</IdCardPhoto>
    <IdCardSignDepartment>sample string 13</IdCardSignDepartment>
    <IdCardUid>sample string 8</IdCardUid>
    <IdCardVerifyId>17</IdCardVerifyId>
    <IdCardVerifyMode>NoVerify</IdCardVerifyMode>
    <IdCardVerifyModeName>sample string 14</IdCardVerifyModeName>
    <IdCardVerifyNo>sample string 16</IdCardVerifyNo>
    <IdCardVerifyResult>15</IdCardVerifyResult>
    <IsAddGuest>true</IsAddGuest>
    <IsOpenUnlicenCheckIn>true</IsOpenUnlicenCheckIn>
    <Name>sample string 4</Name>
    <Nation>sample string 11</Nation>
    <NationCode>sample string 12</NationCode>
    <Phone>sample string 6</Phone>
    <PmsGuestId>sample string 34</PmsGuestId>
    <PoliceApi>None</PoliceApi>
    <PoliceApiCheckOut>true</PoliceApiCheckOut>
    <PoliceApiGuestNo>sample string 29</PoliceApiGuestNo>
    <PoliceApiMessage>sample string 32</PoliceApiMessage>
    <PoliceApiName>sample string 28</PoliceApiName>
    <PoliceApiRecordNo>sample string 30</PoliceApiRecordNo>
    <PoliceApiSuccess>true</PoliceApiSuccess>
    <Sex>5</Sex>
    <UserId>1</UserId>
  </guest>
</AddCustomerModel>

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

响应信息(Response)

资源描述

RequestResultOfBoolean
名称描述类型备注
Data

boolean

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": true,
  "Status": 2,
  "Message": "sample string 3",
  "Total": 4
}

application/xml, text/xml

Sample:
<RequestResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 3</Message>
  <Status>2</Status>
  <Total>4</Total>
  <Data>true</Data>
</RequestResultOfboolean>