POST api/v1/Hotel/AddInvoice

获取

请求信息(Request)

URI 参数

None.

Body 参数

发票信息

InvoiceDTO
名称描述类型备注
ID

ID

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,
  "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-05-04T17:36:26.4659423+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-05-04T17:36:26.4659423+08:00</CreateTime>
  <ID>1</ID>
  <Name>sample string 5</Name>
  <OpenId>sample string 3</OpenId>
  <PhoneNumber>sample string 8</PhoneNumber>
  <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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InvoiceDTO'.

响应信息(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>