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
NameDescriptionTypeAdditional information
Id

integer

Required

WaybillNumber

string

Max length: 100

UserName

string

Max length: 256

DeliveryDate

date

None.

ConfirmQuantityLines

Collection of StockTransferDeliveredQuantityLinesRequest

None.

Remarks

There must be at least one line in the request

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.
5. Company setting for allowing partial deliveries is false and quantity doens't match between StockTransferLines and ConfirmQuantityLines



//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

Sample:
{
  "Id": 1,
  "WaybillNumber": "sample string 2",
  "UserName": "sample string 3",
  "DeliveryDate": "2026-01-21 22:52:33",
  "ConfirmQuantityLines": [
    {
      "LineNumber": 1,
      "DeliveredQuantity": 2.0
    },
    {
      "LineNumber": 1,
      "DeliveredQuantity": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<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>2026-01-21T22:52:33.1083991+01:00</DeliveryDate>
  <Id>1</Id>
  <UserName>sample string 3</UserName>
  <WaybillNumber>sample string 2</WaybillNumber>
</StockTransferConfirmQuantityRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

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
NameDescriptionTypeAdditional information
ErrorMessage

Collection of string

None.

IndeliveryBasisBranchId

integer

None.

IndeliveryBasisId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "IndeliveryBasisBranchId": 1,
  "IndeliveryBasisId": 2
}

application/xml, text/xml

Sample:
<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>