POST api/Documents/CreateInventoryGenExists
Request Information
URI Parameters
None.
Body Parameters
InventoryGenExistPost| Name | Description | Type | Additional information |
|---|---|---|---|
| DocDate | string |
None. |
|
| DocDueDate | string |
None. |
|
| Comments | string |
None. |
|
| DocumentLines | Collection of InvGenExiLine |
None. |
|
| Udfs | Collection of Udf |
None. |
Request Formats
application/json, text/json
Sample:
{
"DocDate": "sample string 1",
"DocDueDate": "sample string 2",
"Comments": "sample string 3",
"DocumentLines": [
{
"ItemCode": "sample string 1",
"ItemDescription": "sample string 2",
"Quantity": 3,
"WarehouseCode": "sample string 4",
"UnitPrice": 5.1,
"Currency": "sample string 6",
"ProjectCode": "sample string 7",
"AccountCode": "sample string 8",
"BaseEntry": 1,
"BaseLine": 1,
"BaseType": 1,
"Udfs": [
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
},
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
}
],
"SerialNumbers": [
{
"InternalSerialNumber": "sample string 1",
"Quantity": 2.1
},
{
"InternalSerialNumber": "sample string 1",
"Quantity": 2.1
}
],
"BatchNumbers": [
{
"BatchNumber": "sample string 1",
"Quantity": 2.1
},
{
"BatchNumber": "sample string 1",
"Quantity": 2.1
}
]
},
{
"ItemCode": "sample string 1",
"ItemDescription": "sample string 2",
"Quantity": 3,
"WarehouseCode": "sample string 4",
"UnitPrice": 5.1,
"Currency": "sample string 6",
"ProjectCode": "sample string 7",
"AccountCode": "sample string 8",
"BaseEntry": 1,
"BaseLine": 1,
"BaseType": 1,
"Udfs": [
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
},
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
}
],
"SerialNumbers": [
{
"InternalSerialNumber": "sample string 1",
"Quantity": 2.1
},
{
"InternalSerialNumber": "sample string 1",
"Quantity": 2.1
}
],
"BatchNumbers": [
{
"BatchNumber": "sample string 1",
"Quantity": 2.1
},
{
"BatchNumber": "sample string 1",
"Quantity": 2.1
}
]
}
],
"Udfs": [
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
},
{
"Name": "sample string 1",
"FieldType": "sample string 2",
"Value": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<InventoryGenExistPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CL_TD_TD_SRV_API.MODELS.SAP">
<Comments>sample string 3</Comments>
<DocDate>sample string 1</DocDate>
<DocDueDate>sample string 2</DocDueDate>
<DocumentLines>
<InvGenExiLine>
<AccountCode>sample string 8</AccountCode>
<BaseEntry>1</BaseEntry>
<BaseLine>1</BaseLine>
<BaseType>1</BaseType>
<BatchNumbers>
<BatchInvGenExi>
<BatchNumber>sample string 1</BatchNumber>
<Quantity>2.1</Quantity>
</BatchInvGenExi>
<BatchInvGenExi>
<BatchNumber>sample string 1</BatchNumber>
<Quantity>2.1</Quantity>
</BatchInvGenExi>
</BatchNumbers>
<Currency>sample string 6</Currency>
<ItemCode>sample string 1</ItemCode>
<ItemDescription>sample string 2</ItemDescription>
<ProjectCode>sample string 7</ProjectCode>
<Quantity>3</Quantity>
<SerialNumbers>
<SerialInvGenExi>
<InternalSerialNumber>sample string 1</InternalSerialNumber>
<Quantity>2.1</Quantity>
</SerialInvGenExi>
<SerialInvGenExi>
<InternalSerialNumber>sample string 1</InternalSerialNumber>
<Quantity>2.1</Quantity>
</SerialInvGenExi>
</SerialNumbers>
<Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
<d4p1:Udf>
<d4p1:FieldType>sample string 2</d4p1:FieldType>
<d4p1:Name>sample string 1</d4p1:Name>
<d4p1:Value>sample string 3</d4p1:Value>
</d4p1:Udf>
<d4p1:Udf>
<d4p1:FieldType>sample string 2</d4p1:FieldType>
<d4p1:Name>sample string 1</d4p1:Name>
<d4p1:Value>sample string 3</d4p1:Value>
</d4p1:Udf>
</Udfs>
<UnitPrice>5.1</UnitPrice>
<WarehouseCode>sample string 4</WarehouseCode>
</InvGenExiLine>
<InvGenExiLine>
<AccountCode>sample string 8</AccountCode>
<BaseEntry>1</BaseEntry>
<BaseLine>1</BaseLine>
<BaseType>1</BaseType>
<BatchNumbers>
<BatchInvGenExi>
<BatchNumber>sample string 1</BatchNumber>
<Quantity>2.1</Quantity>
</BatchInvGenExi>
<BatchInvGenExi>
<BatchNumber>sample string 1</BatchNumber>
<Quantity>2.1</Quantity>
</BatchInvGenExi>
</BatchNumbers>
<Currency>sample string 6</Currency>
<ItemCode>sample string 1</ItemCode>
<ItemDescription>sample string 2</ItemDescription>
<ProjectCode>sample string 7</ProjectCode>
<Quantity>3</Quantity>
<SerialNumbers>
<SerialInvGenExi>
<InternalSerialNumber>sample string 1</InternalSerialNumber>
<Quantity>2.1</Quantity>
</SerialInvGenExi>
<SerialInvGenExi>
<InternalSerialNumber>sample string 1</InternalSerialNumber>
<Quantity>2.1</Quantity>
</SerialInvGenExi>
</SerialNumbers>
<Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
<d4p1:Udf>
<d4p1:FieldType>sample string 2</d4p1:FieldType>
<d4p1:Name>sample string 1</d4p1:Name>
<d4p1:Value>sample string 3</d4p1:Value>
</d4p1:Udf>
<d4p1:Udf>
<d4p1:FieldType>sample string 2</d4p1:FieldType>
<d4p1:Name>sample string 1</d4p1:Name>
<d4p1:Value>sample string 3</d4p1:Value>
</d4p1:Udf>
</Udfs>
<UnitPrice>5.1</UnitPrice>
<WarehouseCode>sample string 4</WarehouseCode>
</InvGenExiLine>
</DocumentLines>
<Udfs xmlns:d2p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
<d2p1:Udf>
<d2p1:FieldType>sample string 2</d2p1:FieldType>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Value>sample string 3</d2p1:Value>
</d2p1:Udf>
<d2p1:Udf>
<d2p1:FieldType>sample string 2</d2p1:FieldType>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Value>sample string 3</d2p1:Value>
</d2p1:Udf>
</Udfs>
</InventoryGenExistPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |