POST api/krnorgtyp/validate
Request Information
URI Parameters
None.
Body Parameters
KrnOrgTypValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | KrnOrgTyp |
None. |
|
| Id | integer |
Required |
|
| Nummer | integer |
Required |
|
| Bezeichnung | string |
None. |
|
| Mitglied | boolean |
Required |
|
| Adressgruppe | string |
None. |
|
| Debitorgruppe | string |
None. |
|
| Kreditorgruppe | string |
None. |
|
| KontoFord | integer |
Required |
|
| KontoVerb | integer |
Required |
|
| DebitorKontoPrefix | string |
None. |
|
| KreditorKontoPrefix | string |
None. |
|
| RowGuid | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"Nummer": 2,
"Bezeichnung": "sample string 3",
"Mitglied": true,
"Adressgruppe": "sample string 5",
"Debitorgruppe": "sample string 6",
"Kreditorgruppe": "sample string 7",
"KontoFord": 8,
"KontoVerb": 9,
"DebitorKontoPrefix": "sample string 10",
"KreditorKontoPrefix": "sample string 11",
"RowGuid": "318d9b1b-f34c-4f0f-bd74-7398a96fe029"
},
"Id": 2,
"Nummer": 3,
"Bezeichnung": "sample string 4",
"Mitglied": true,
"Adressgruppe": "sample string 6",
"Debitorgruppe": "sample string 7",
"Kreditorgruppe": "sample string 8",
"KontoFord": 9,
"KontoVerb": 10,
"DebitorKontoPrefix": "sample string 11",
"KreditorKontoPrefix": "sample string 12",
"RowGuid": "8ad02770-7f17-46c4-96cc-9d2ea2ec11d3"
}
application/xml, text/xml
Sample:
<KrnOrgTypValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
<Adressgruppe>sample string 6</Adressgruppe>
<Bezeichnung>sample string 4</Bezeichnung>
<DebitorKontoPrefix>sample string 11</DebitorKontoPrefix>
<Debitorgruppe>sample string 7</Debitorgruppe>
<Id>2</Id>
<KontoFord>9</KontoFord>
<KontoVerb>10</KontoVerb>
<KreditorKontoPrefix>sample string 12</KreditorKontoPrefix>
<Kreditorgruppe>sample string 8</Kreditorgruppe>
<Mitglied>true</Mitglied>
<Nummer>3</Nummer>
<RowGuid>8ad02770-7f17-46c4-96cc-9d2ea2ec11d3</RowGuid>
<Reason>1</Reason>
<Rec>
<Adressgruppe>sample string 5</Adressgruppe>
<Bezeichnung>sample string 3</Bezeichnung>
<DebitorKontoPrefix>sample string 10</DebitorKontoPrefix>
<Debitorgruppe>sample string 6</Debitorgruppe>
<Id>1</Id>
<KontoFord>8</KontoFord>
<KontoVerb>9</KontoVerb>
<KreditorKontoPrefix>sample string 11</KreditorKontoPrefix>
<Kreditorgruppe>sample string 7</Kreditorgruppe>
<Mitglied>true</Mitglied>
<Nummer>2</Nummer>
<RowGuid>318d9b1b-f34c-4f0f-bd74-7398a96fe029</RowGuid>
</Rec>
</KrnOrgTypValidate>
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>