POST api/indelivery
Method for creating an indelivery
Request Information
URI Parameters
None.
Body Parameters
PostIndeliveryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| BranchId |
Branch id |
integer |
Required |
| SupplierId |
Id of the supplier |
globally unique identifier |
Required |
| SupplierOrderHeadId |
If the indelivery comes from a supplier order, use the Id of the SupplierOrderHead |
integer |
None. |
| GoodsReceivedDate |
Date of recieving goods |
date |
Required |
| IndeliveryPerson |
Name of the person that received the indelivery |
string |
Required Max length: 256 |
| SupplierDeliveryNote |
Delivery note id from the supplier |
string |
Max length: 50 |
| Comment |
Comment |
string |
Max length: 60 |
| IndeliveryLines |
Article lines for the indelivery |
Collection of IndeliveryLine |
None. |
| WaybillNumber |
Waybill number of the delivery |
string |
Max length: 100 |
Remarks
None.
Example
//Create a new indelivery
http://localhost/api/indelivery/
Request Formats
application/json, text/json
{
"BranchId": 1,
"SupplierId": "5002ba95-7979-4d9c-ae97-616a65d20ce4",
"SupplierOrderHeadId": 1,
"GoodsReceivedDate": "12/21/2025 1:03:16 PM",
"IndeliveryPerson": "sample string 3",
"SupplierDeliveryNote": "sample string 4",
"Comment": "sample string 5",
"IndeliveryLines": [
{
"LineId": 1,
"ArticleId": "8ef3522d-e8ae-4656-a4ce-48512c292ba1",
"StockId": "25caca54-7f4b-421c-a4bd-847aad90caa4",
"PalletPlace": "sample string 4",
"SupplierOrderLineId": 1,
"ArticleName": "sample string 5",
"Quantity": 6.0,
"Price": 7.0,
"Discount": 8.0,
"RecycleFee": 9.0,
"Amount": 10.0,
"UnitId": 1,
"Comment": "sample string 11",
"SupplierInvoiceId": "sample string 12"
},
{
"LineId": 1,
"ArticleId": "8ef3522d-e8ae-4656-a4ce-48512c292ba1",
"StockId": "25caca54-7f4b-421c-a4bd-847aad90caa4",
"PalletPlace": "sample string 4",
"SupplierOrderLineId": 1,
"ArticleName": "sample string 5",
"Quantity": 6.0,
"Price": 7.0,
"Discount": 8.0,
"RecycleFee": 9.0,
"Amount": 10.0,
"UnitId": 1,
"Comment": "sample string 11",
"SupplierInvoiceId": "sample string 12"
}
],
"WaybillNumber": "sample string 6"
}
application/xml, text/xml
<PostIndeliveryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
<BranchId>1</BranchId>
<Comment>sample string 5</Comment>
<GoodsReceivedDate>2025-12-21T13:03:16.7676267+00:00</GoodsReceivedDate>
<IndeliveryLines>
<IndeliveryLine>
<Amount>10</Amount>
<ArticleId>8ef3522d-e8ae-4656-a4ce-48512c292ba1</ArticleId>
<ArticleName>sample string 5</ArticleName>
<Comment>sample string 11</Comment>
<Discount>8</Discount>
<LineId>1</LineId>
<PalletPlace>sample string 4</PalletPlace>
<Price>7</Price>
<Quantity>6</Quantity>
<RecycleFee>9</RecycleFee>
<StockId>25caca54-7f4b-421c-a4bd-847aad90caa4</StockId>
<SupplierInvoiceId>sample string 12</SupplierInvoiceId>
<SupplierOrderLineId>1</SupplierOrderLineId>
<UnitId>1</UnitId>
</IndeliveryLine>
<IndeliveryLine>
<Amount>10</Amount>
<ArticleId>8ef3522d-e8ae-4656-a4ce-48512c292ba1</ArticleId>
<ArticleName>sample string 5</ArticleName>
<Comment>sample string 11</Comment>
<Discount>8</Discount>
<LineId>1</LineId>
<PalletPlace>sample string 4</PalletPlace>
<Price>7</Price>
<Quantity>6</Quantity>
<RecycleFee>9</RecycleFee>
<StockId>25caca54-7f4b-421c-a4bd-847aad90caa4</StockId>
<SupplierInvoiceId>sample string 12</SupplierInvoiceId>
<SupplierOrderLineId>1</SupplierOrderLineId>
<UnitId>1</UnitId>
</IndeliveryLine>
</IndeliveryLines>
<IndeliveryPerson>sample string 3</IndeliveryPerson>
<SupplierDeliveryNote>sample string 4</SupplierDeliveryNote>
<SupplierId>5002ba95-7979-4d9c-ae97-616a65d20ce4</SupplierId>
<SupplierOrderHeadId>1</SupplierOrderHeadId>
<WaybillNumber>sample string 6</WaybillNumber>
</PostIndeliveryRequest>
application/x-www-form-urlencoded
Response Information
Resource Description
Id and Branch Id of the created indelivery
PostIndeliveryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
If false, the indelivery could not be created, check in Errors. |
boolean |
None. |
| Errors |
List of errors |
Collection of PostIndeliveryErrorResponse |
None. |
| Id |
Id of the created indelivery |
integer |
None. |
| BranchId |
Branch id of the created indelivery |
integer |
None. |
Response Formats
application/json, text/json
{
"Success": true,
"Errors": [
{
"ErrorMessage": "sample string 1",
"ErrorCode": 0
},
{
"ErrorMessage": "sample string 1",
"ErrorCode": 0
}
],
"Id": 1,
"BranchId": 1
}
application/xml, text/xml
<PostIndeliveryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
<BranchId>1</BranchId>
<Errors>
<PostIndeliveryErrorResponse>
<ErrorCode>MissingStock</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostIndeliveryErrorResponse>
<PostIndeliveryErrorResponse>
<ErrorCode>MissingStock</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostIndeliveryErrorResponse>
</Errors>
<Id>1</Id>
<Success>true</Success>
</PostIndeliveryResponse>