POST api/v1/PostIndentStockReceiptData

Make the delivery for a indent. Book in the open connected purchase orders based on the amounts in the parameter. Then deliver all available amounts for the sales order (All on stock reservated and new booked in amounts). Fetch initial parameter from the GetIndentStockReceiptData method.

Request Information

URI Parameters

None.

Body Parameters

IndentStockReceiptData
NameDescriptionTypeAdditional information
Positions

Positions for the delivery

Collection of IndentStockReceiptDataPosition

None.

IndentId

For internal use. Change will cause errors in delivery

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Positions": [],
  "IndentId": 1
}

application/xml, text/xml

Sample:
<IndentStockReceiptData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Indent">
  <IndentId>1</IndentId>
  <Positions />
</IndentStockReceiptData>

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 'IndentStockReceiptData'.

Response Information

Resource Description

PostIndentStockReceiptDataResult
NameDescriptionTypeAdditional information
DeliveryNoteNumber

created delivery note number

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DeliveryNoteNumber": 1
}

application/xml, text/xml

Sample:
<PostIndentStockReceiptDataResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Indent">
  <DeliveryNoteNumber>1</DeliveryNoteNumber>
</PostIndentStockReceiptDataResult>