POST api/Invoice/AddInvoiceInfo
新增开票信息
Request Information
URI Parameters
None.
Body Parameters
InvoiceInfoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | globally unique identifier |
Required |
|
| InvoiceTitle | string |
String length: inclusive between 0 and 50 |
|
| CreditNumber | string |
String length: inclusive between 0 and 50 |
|
| InvoiceCode | string |
String length: inclusive between 0 and 50 |
|
| ExpressName | string |
String length: inclusive between 0 and 30 |
|
| ExpressPhone | string |
String length: inclusive between 0 and 15 |
|
| ExpressAdress | string |
String length: inclusive between 0 and 50 |
|
| ExpressEmail | string |
String length: inclusive between 0 and 50 |
|
| CreationTime | date |
None. |
|
| CreatorId | globally unique identifier |
None. |
|
| LastModificationTime | date |
None. |
|
| LastModifierId | globally unique identifier |
None. |
|
| IsDeleted | boolean |
Required |
|
| Version | Collection of byte |
None. |
|
| Id | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": "a1d75f15-a9c3-4750-af7b-f2710cef2b0b",
"InvoiceTitle": "sample string 2",
"CreditNumber": "sample string 3",
"InvoiceCode": "sample string 4",
"ExpressName": "sample string 5",
"ExpressPhone": "sample string 6",
"ExpressAdress": "sample string 7",
"ExpressEmail": "sample string 8",
"CreationTime": "2026-01-29 15:01:18",
"CreatorId": "d6f1cfa3-35fe-43fb-8320-210334d52fdb",
"LastModificationTime": "2026-01-29 15:01:18",
"LastModifierId": "9d544fa6-2831-42ba-b7c9-7032678327f4",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 10"
}
application/xml, text/xml
Sample:
<InvoiceInfoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Applications.Services.Dtos.Parks"> <Id xmlns="http://schemas.datacontract.org/2004/07/Util.Applications">sample string 10</Id> <CreationTime>2026-01-29T15:01:18.720433+08:00</CreationTime> <CreatorId>d6f1cfa3-35fe-43fb-8320-210334d52fdb</CreatorId> <CreditNumber>sample string 3</CreditNumber> <CustomerId>a1d75f15-a9c3-4750-af7b-f2710cef2b0b</CustomerId> <ExpressAdress>sample string 7</ExpressAdress> <ExpressEmail>sample string 8</ExpressEmail> <ExpressName>sample string 5</ExpressName> <ExpressPhone>sample string 6</ExpressPhone> <InvoiceCode>sample string 4</InvoiceCode> <InvoiceTitle>sample string 2</InvoiceTitle> <IsDeleted>true</IsDeleted> <LastModificationTime>2026-01-29T15:01:18.720433+08:00</LastModificationTime> <LastModifierId>9d544fa6-2831-42ba-b7c9-7032678327f4</LastModifierId> <Version>QEA=</Version> </InvoiceInfoDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| status |
操作结果状态 |
MStatusCode |
None. |
| message |
操作结果消息 |
string |
None. |
| errors |
请求对象未通过验证的错误消息列表 |
Collection of ValidErrors |
None. |
| url |
操作成功后的跳转页面 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 0,
"message": "sample string 1",
"errors": [
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
},
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
}
],
"url": "sample string 2"
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Applications.WebApi.Common">
<Status>Fail</Status>
<Message>sample string 1</Message>
<Url>sample string 2</Url>
<Errors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
</Errors>
</Result>