POST api/v1/SelfCheckin/AddInvoice
请求信息(Request)
URI 参数
None.
Body 参数
InvoiceDTO| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| ID |
ID |
integer |
None. |
| HotelId | integer |
None. |
|
| Status | integer |
None. |
|
| Tag | string |
None. |
|
| UserId | integer |
None. |
|
| OpenId | string |
None. |
|
| Type | InvoiceType |
None. |
|
| TypeName | string |
None. |
|
| Name | string |
None. |
|
| TFN | string |
None. |
|
| Address | string |
None. |
|
| PhoneNumber | string |
None. |
|
| BankName | string |
None. |
|
| BankAccount | string |
None. |
|
| CreateTime |
建立时间 |
date |
None. |
请求格式
application/json, text/json
Sample:
{
"ID": 1,
"HotelId": 1,
"Status": 1,
"Tag": "sample string 2",
"UserId": 1,
"OpenId": "sample string 3",
"Type": 0,
"TypeName": "sample string 4",
"Name": "sample string 5",
"TFN": "sample string 6",
"Address": "sample string 7",
"PhoneNumber": "sample string 8",
"BankName": "sample string 9",
"BankAccount": "sample string 10",
"CreateTime": "2025-11-06T04:07:08.6466479+08:00"
}
application/xml, text/xml
Sample:
<InvoiceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs"> <Address>sample string 7</Address> <BankAccount>sample string 10</BankAccount> <BankName>sample string 9</BankName> <CreateTime>2025-11-06T04:07:08.6466479+08:00</CreateTime> <HotelId>1</HotelId> <ID>1</ID> <Name>sample string 5</Name> <OpenId>sample string 3</OpenId> <PhoneNumber>sample string 8</PhoneNumber> <Status>1</Status> <TFN>sample string 6</TFN> <Tag>sample string 2</Tag> <Type>Personal</Type> <TypeName>sample string 4</TypeName> <UserId>1</UserId> </InvoiceDTO>
application/x-www-form-urlencoded
Sample:
响应信息(Response)
资源描述
RequestResultOfInt32| 名称 | 描述 | 类型 | 备注 |
|---|---|---|---|
| Data | integer |
None. |
|
| Status |
状态(0:成功,1:失败) |
integer |
None. |
| Message |
导致失败的相关消息 |
string |
None. |
| Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{
"Data": 1,
"Status": 2,
"Message": "sample string 3",
"Total": 4
}
application/xml, text/xml
Sample:
<RequestResultOfint 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>1</Data> </RequestResultOfint>