POST api/StockTransfers
Request Information
URI Parameters
None.
Body Parameters
StockTransferName | Description | Type | Additional information |
---|---|---|---|
DocEntry | integer |
None. |
|
DocNum | integer |
None. |
|
Comments | string |
None. |
|
SalesPersonCode | integer |
None. |
|
DocDate | date |
None. |
|
DueDate | date |
None. |
|
FromWarehouse | string |
None. |
|
ToWarehouse | string |
None. |
|
StockTransferLines | Collection of StockTransferRows |
None. |
|
Udfs | Collection of Udf |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocEntry": 1, "DocNum": 2, "Comments": "sample string 3", "SalesPersonCode": 4, "DocDate": "2025-04-03T20:35:40.2229956-06:00", "DueDate": "2025-04-03T20:35:40.2229956-06:00", "FromWarehouse": "sample string 7", "ToWarehouse": "sample string 8", "StockTransferLines": [ { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "Quantity": 3.0, "WarehouseCode": "sample string 4", "FromWarehouseCode": "sample string 5", "BaseLine": 6, "BaseEntry": 1, "BaseType": "sample string 7", "SerialNumbers": [ { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" }, { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" } ], "BatchNumbers": [ { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 }, { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 } ], "StockTransferLinesBinAllocations": [ { "BinActionType": "sample string 1", "BinAbsEntry": 2, "Quantity": 3.1, "BaseLineNumber": 4, "SerialAndBatchNumbersBaseLine": 5 }, { "BinActionType": "sample string 1", "BinAbsEntry": 2, "Quantity": 3.1, "BaseLineNumber": 4, "SerialAndBatchNumbersBaseLine": 5 } ], "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" } ] }, { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "Quantity": 3.0, "WarehouseCode": "sample string 4", "FromWarehouseCode": "sample string 5", "BaseLine": 6, "BaseEntry": 1, "BaseType": "sample string 7", "SerialNumbers": [ { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" }, { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" } ], "BatchNumbers": [ { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 }, { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 } ], "StockTransferLinesBinAllocations": [ { "BinActionType": "sample string 1", "BinAbsEntry": 2, "Quantity": 3.1, "BaseLineNumber": 4, "SerialAndBatchNumbersBaseLine": 5 }, { "BinActionType": "sample string 1", "BinAbsEntry": 2, "Quantity": 3.1, "BaseLineNumber": 4, "SerialAndBatchNumbersBaseLine": 5 } ], "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" } ] } ], "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:
<StockTransfer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS.SAP"> <Comments>sample string 3</Comments> <DocDate>2025-04-03T20:35:40.2229956-06:00</DocDate> <DocEntry>1</DocEntry> <DocNum>2</DocNum> <DueDate>2025-04-03T20:35:40.2229956-06:00</DueDate> <FromWarehouse>sample string 7</FromWarehouse> <SalesPersonCode>4</SalesPersonCode> <StockTransferLines> <StockTransferRows> <BaseEntry>1</BaseEntry> <BaseLine>6</BaseLine> <BaseType>sample string 7</BaseType> <BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> </BatchNumbers> <FromWarehouseCode>sample string 5</FromWarehouseCode> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>3</Quantity> <SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> </SerialNumbers> <StockTransferLinesBinAllocations> <StockTransferLinesBinAllocations> <BaseLineNumber>4</BaseLineNumber> <BinAbsEntry>2</BinAbsEntry> <BinActionType>sample string 1</BinActionType> <Quantity>3.1</Quantity> <SerialAndBatchNumbersBaseLine>5</SerialAndBatchNumbersBaseLine> </StockTransferLinesBinAllocations> <StockTransferLinesBinAllocations> <BaseLineNumber>4</BaseLineNumber> <BinAbsEntry>2</BinAbsEntry> <BinActionType>sample string 1</BinActionType> <Quantity>3.1</Quantity> <SerialAndBatchNumbersBaseLine>5</SerialAndBatchNumbersBaseLine> </StockTransferLinesBinAllocations> </StockTransferLinesBinAllocations> <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> <WarehouseCode>sample string 4</WarehouseCode> </StockTransferRows> <StockTransferRows> <BaseEntry>1</BaseEntry> <BaseLine>6</BaseLine> <BaseType>sample string 7</BaseType> <BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> </BatchNumbers> <FromWarehouseCode>sample string 5</FromWarehouseCode> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>3</Quantity> <SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> </SerialNumbers> <StockTransferLinesBinAllocations> <StockTransferLinesBinAllocations> <BaseLineNumber>4</BaseLineNumber> <BinAbsEntry>2</BinAbsEntry> <BinActionType>sample string 1</BinActionType> <Quantity>3.1</Quantity> <SerialAndBatchNumbersBaseLine>5</SerialAndBatchNumbersBaseLine> </StockTransferLinesBinAllocations> <StockTransferLinesBinAllocations> <BaseLineNumber>4</BaseLineNumber> <BinAbsEntry>2</BinAbsEntry> <BinActionType>sample string 1</BinActionType> <Quantity>3.1</Quantity> <SerialAndBatchNumbersBaseLine>5</SerialAndBatchNumbersBaseLine> </StockTransferLinesBinAllocations> </StockTransferLinesBinAllocations> <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> <WarehouseCode>sample string 4</WarehouseCode> </StockTransferRows> </StockTransferLines> <ToWarehouse>sample string 8</ToWarehouse> <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> </StockTransfer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |