POST api/indelivery
Method for creating an indelivery
Request Information
URI Parameters
None.
Body Parameters
PostIndeliveryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| BranchId | integer |
Required |
|
| SupplierId | globally unique identifier |
Required |
|
| SupplierOrderHeadId | integer |
None. |
|
| GoodsReceivedDate | date |
Required |
|
| IndeliveryPerson | string |
Required Max length: 256 |
|
| SupplierDeliveryNote | string |
Max length: 50 |
|
| Comment | string |
Max length: 60 |
|
| IndeliveryLines | Collection of IndeliveryLine |
None. |
|
| WaybillNumber | string |
Max length: 100 |
Remarks
None.
Example
//Create a new indelivery
http://localhost/api/indelivery/
Request Formats
application/json, text/json
Sample:
{
"BranchId": 1,
"SupplierId": "3dea4bc5-d43f-4193-8967-3865a12cbf60",
"SupplierOrderHeadId": 1,
"GoodsReceivedDate": "2026-01-21 22:49:42",
"IndeliveryPerson": "sample string 3",
"SupplierDeliveryNote": "sample string 4",
"Comment": "sample string 5",
"IndeliveryLines": [
{
"LineId": 1,
"ArticleId": "8b787780-adb9-4d19-a213-1bf21e8d5d93",
"StockId": "be7ac6e2-72f6-41e3-90fb-5236cc491788",
"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": "8b787780-adb9-4d19-a213-1bf21e8d5d93",
"StockId": "be7ac6e2-72f6-41e3-90fb-5236cc491788",
"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
Sample:
<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>2026-01-21T22:49:42.8113775+01:00</GoodsReceivedDate>
<IndeliveryLines>
<IndeliveryLine>
<Amount>10</Amount>
<ArticleId>8b787780-adb9-4d19-a213-1bf21e8d5d93</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>be7ac6e2-72f6-41e3-90fb-5236cc491788</StockId>
<SupplierInvoiceId>sample string 12</SupplierInvoiceId>
<SupplierOrderLineId>1</SupplierOrderLineId>
<UnitId>1</UnitId>
</IndeliveryLine>
<IndeliveryLine>
<Amount>10</Amount>
<ArticleId>8b787780-adb9-4d19-a213-1bf21e8d5d93</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>be7ac6e2-72f6-41e3-90fb-5236cc491788</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>3dea4bc5-d43f-4193-8967-3865a12cbf60</SupplierId>
<SupplierOrderHeadId>1</SupplierOrderHeadId>
<WaybillNumber>sample string 6</WaybillNumber>
</PostIndeliveryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Id and Branch Id of the created indelivery
PostIndeliveryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Errors | Collection of PostIndeliveryErrorResponse |
None. |
|
| Id | integer |
None. |
|
| BranchId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Errors": [
{
"ErrorMessage": "sample string 1",
"ErrorCode": 0
},
{
"ErrorMessage": "sample string 1",
"ErrorCode": 0
}
],
"Id": 1,
"BranchId": 1
}
application/xml, text/xml
Sample:
<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>