POST api/indelivery

Method for creating an indelivery

Request Information

URI Parameters

None.

Body Parameters

PostIndeliveryRequest
NameDescriptionTypeAdditional information
BranchId

Branch id

integer

Required

SupplierId

Id of the supplier
Use api/Supplier
to fetch all suppliers

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

Sample:
{
  "BranchId": 1,
  "SupplierId": "e9431217-6cc3-4277-945b-ca1d588d54bb",
  "SupplierOrderHeadId": 1,
  "GoodsReceivedDate": "12/21/2025 1:06:15 PM",
  "IndeliveryPerson": "sample string 3",
  "SupplierDeliveryNote": "sample string 4",
  "Comment": "sample string 5",
  "IndeliveryLines": [
    {
      "LineId": 1,
      "ArticleId": "cd0662c3-9447-493b-9f6a-9384cc467e33",
      "StockId": "b992def8-46cf-4d31-b89f-36affc6b5289",
      "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": "cd0662c3-9447-493b-9f6a-9384cc467e33",
      "StockId": "b992def8-46cf-4d31-b89f-36affc6b5289",
      "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>2025-12-21T13:06:15.2930236+00:00</GoodsReceivedDate>
  <IndeliveryLines>
    <IndeliveryLine>
      <Amount>10</Amount>
      <ArticleId>cd0662c3-9447-493b-9f6a-9384cc467e33</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>b992def8-46cf-4d31-b89f-36affc6b5289</StockId>
      <SupplierInvoiceId>sample string 12</SupplierInvoiceId>
      <SupplierOrderLineId>1</SupplierOrderLineId>
      <UnitId>1</UnitId>
    </IndeliveryLine>
    <IndeliveryLine>
      <Amount>10</Amount>
      <ArticleId>cd0662c3-9447-493b-9f6a-9384cc467e33</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>b992def8-46cf-4d31-b89f-36affc6b5289</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>e9431217-6cc3-4277-945b-ca1d588d54bb</SupplierId>
  <SupplierOrderHeadId>1</SupplierOrderHeadId>
  <WaybillNumber>sample string 6</WaybillNumber>
</PostIndeliveryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PostIndeliveryRequest'.

Response Information

Resource Description

Id and Branch Id of the created indelivery

PostIndeliveryResponse
NameDescriptionTypeAdditional 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

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>