POST api/aborechnungsposition/validate
Request Information
URI Parameters
None.
Body Parameters
AboRechnungspositionValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | AboRechnungsposition |
None. |
|
| Id | integer |
Required |
|
| RechnungId | integer |
Required |
|
| EmpfaengerId | integer |
Required |
|
| ExemplarId | integer |
None. |
|
| Position | integer |
Required |
|
| Artikel | string |
None. |
|
| Menge | decimal number |
Required |
|
| Einzelpreis | decimal number |
Required |
|
| Gesamtpreis | decimal number |
Required |
|
| Bemerkung | string |
None. |
|
| Storniert | boolean |
Required |
|
| RowGuid | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"RechnungId": 2,
"EmpfaengerId": 3,
"ExemplarId": 1,
"Position": 4,
"Artikel": "sample string 5",
"Menge": 6.0,
"Einzelpreis": 7.0,
"Gesamtpreis": 8.0,
"Bemerkung": "sample string 9",
"Storniert": true,
"RowGuid": "bb93deea-86d8-4251-8f00-44ea173b20ec"
},
"Id": 2,
"RechnungId": 3,
"EmpfaengerId": 4,
"ExemplarId": 1,
"Position": 5,
"Artikel": "sample string 6",
"Menge": 7.0,
"Einzelpreis": 8.0,
"Gesamtpreis": 9.0,
"Bemerkung": "sample string 10",
"Storniert": true,
"RowGuid": "511e314f-b636-4d4b-8092-0a4588aefcc0"
}
application/xml, text/xml
Sample:
<AboRechnungspositionValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Abo.Models">
<Artikel>sample string 6</Artikel>
<Bemerkung>sample string 10</Bemerkung>
<Einzelpreis>8</Einzelpreis>
<EmpfaengerId>4</EmpfaengerId>
<ExemplarId>1</ExemplarId>
<Gesamtpreis>9</Gesamtpreis>
<Id>2</Id>
<Menge>7</Menge>
<Position>5</Position>
<RechnungId>3</RechnungId>
<RowGuid>511e314f-b636-4d4b-8092-0a4588aefcc0</RowGuid>
<Storniert>true</Storniert>
<Reason>1</Reason>
<Rec>
<Artikel>sample string 5</Artikel>
<Bemerkung>sample string 9</Bemerkung>
<Einzelpreis>7</Einzelpreis>
<EmpfaengerId>3</EmpfaengerId>
<ExemplarId>1</ExemplarId>
<Gesamtpreis>8</Gesamtpreis>
<Id>1</Id>
<Menge>6</Menge>
<Position>4</Position>
<RechnungId>2</RechnungId>
<RowGuid>bb93deea-86d8-4251-8f00-44ea173b20ec</RowGuid>
<Storniert>true</Storniert>
</Rec>
</AboRechnungspositionValidate>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorMsg | string |
None. |
|
| HintMsg | string |
None. |
|
| ErrorFieldNames | Collection of string |
None. |
|
| FieldName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorMsg": "sample string 1",
"HintMsg": "sample string 2",
"ErrorFieldNames": [
"sample string 1",
"sample string 2"
],
"FieldName": "sample string 3"
}
application/xml, text/xml
Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<ErrorFieldNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorFieldNames>
<ErrorMsg>sample string 1</ErrorMsg>
<FieldName>sample string 3</FieldName>
<HintMsg>sample string 2</HintMsg>
</ValidationResult>