POST api/stocktransfer/ConfirmDelivery
Confirms delivery from WMS for a specific stock transfer.<br/> Will create an indelivery basis for the receiving branch and add quantities to the rows of the stockTransfer (WMSConfirmedQuantity)<br/>
Request Information
URI Parameters
None.
Body Parameters
Confirm quantity request
StockTransferConfirmQuantityRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the stock transfer to set Confirmed quantity on |
integer |
Required |
| WaybillNumber |
Waybill number of the delivery |
string |
Max length: 100 |
| UserName |
User name to set on AlteredBy |
string |
Max length: 256 |
| DeliveryDate |
Date and time of the delivery |
date |
None. |
| ConfirmQuantityLines |
The lines to set confirmed quantity on |
Collection of StockTransferDeliveredQuantityLinesRequest |
None. |
Remarks
Errors are returned and the Confirmation will not be done if:
1. The request doesn't contain any lines.
2. If a required field is ignored.
3. If all rows have 0 in quantity
4. If the stockTransfer have status "Open"
4. If a general error should occur.
//Creates indelivery basis for receiving branch, the body should contain a StockTransferConfirmQuantityRequest
POST: http://localhost/api/stocktransfers/ConfirmDelivery
Example
None.
Request Formats
application/json, text/json
{
"Id": 1,
"WaybillNumber": "sample string 2",
"UserName": "sample string 3",
"DeliveryDate": "12/21/2025 1:08:11 PM",
"ConfirmQuantityLines": [
{
"LineNumber": 1,
"DeliveredQuantity": 2.0
},
{
"LineNumber": 1,
"DeliveredQuantity": 2.0
}
]
}
application/xml, text/xml
<StockTransferConfirmQuantityRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
<ConfirmQuantityLines>
<StockTransferDeliveredQuantityLinesRequest>
<DeliveredQuantity>2</DeliveredQuantity>
<LineNumber>1</LineNumber>
</StockTransferDeliveredQuantityLinesRequest>
<StockTransferDeliveredQuantityLinesRequest>
<DeliveredQuantity>2</DeliveredQuantity>
<LineNumber>1</LineNumber>
</StockTransferDeliveredQuantityLinesRequest>
</ConfirmQuantityLines>
<DeliveryDate>2025-12-21T13:08:11.0000858+00:00</DeliveryDate>
<Id>1</Id>
<UserName>sample string 3</UserName>
<WaybillNumber>sample string 2</WaybillNumber>
</StockTransferConfirmQuantityRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
Check ErrorMessage for errors, it will be empty if success. Returns Id and BranchId of the indeliveryBasis that was created
StockTransferConfirmQuantityResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorMessage |
Error message, empty if successful |
Collection of string |
None. |
| IndeliveryBasisBranchId |
BranchId of the indelivery basis that was created for the confirmed quantity |
integer |
None. |
| IndeliveryBasisId |
Id of the indelivery basis that was created for the confirmed quantity |
integer |
None. |
Response Formats
application/json, text/json
{
"ErrorMessage": [
"sample string 1",
"sample string 2"
],
"IndeliveryBasisBranchId": 1,
"IndeliveryBasisId": 2
}
application/xml, text/xml
<StockTransferConfirmQuantityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
<ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorMessage>
<IndeliveryBasisBranchId>1</IndeliveryBasisBranchId>
<IndeliveryBasisId>2</IndeliveryBasisId>
</StockTransferConfirmQuantityResponse>