POST BuyOrderDeliveries/CreateBuyOrderDeliveryAndOrderMovement

Maak een inkooplevering + uitlevering aan.

Request Information

URI Parameters

None.

Body Parameters

BuyOrderDeliveryAndOrderMovementCreate
NameDescriptionTypeAdditional information
BuyOrderDeliveryId

Inkoopleveringsnummer (alleen van toepassing bij het ophalen).

integer

None.

SupplierId

Leverancier (Crediteur)

integer

None.

BuyOrderId

Inkooporder id

integer

None.

Remarks

Opmerkingen

string

None.

Description

Omschrijving

string

None.

BranchId

Filiaal

integer

None.

Rows

Inkooporder-levering regels

Collection of BuyOrderDeliveryRow

Required

Status

Status van de inkooplevering te verkrijgen bij het eindpunt 'BuyOrderDeliveries/GetBuyOrderDeliveryStatusses'

BuyOrderDeliveryStatus

None.

PickingListNumber

Pakbon nummer

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BuyOrderDeliveryId": 1,
  "SupplierId": 1,
  "BuyOrderId": 1,
  "Remarks": "sample string 2",
  "Description": "sample string 3",
  "BranchId": 1,
  "Rows": [
    {
      "BuyOrderRowId": 1,
      "BuyPrice": 1.0,
      "DebtorName": "sample string 1",
      "OrderId": 1,
      "ProductId": 2,
      "Qty_Delivered": 3.0,
      "Remarks": "sample string 4",
      "StockLocationId": 5,
      "AmountOfLabelsToPrint": 6
    },
    {
      "BuyOrderRowId": 1,
      "BuyPrice": 1.0,
      "DebtorName": "sample string 1",
      "OrderId": 1,
      "ProductId": 2,
      "Qty_Delivered": 3.0,
      "Remarks": "sample string 4",
      "StockLocationId": 5,
      "AmountOfLabelsToPrint": 6
    }
  ],
  "Status": "BusyWithInput",
  "PickingListNumber": "sample string 4"
}

application/xml, text/xml

Sample:
<BuyOrderDeliveryAndOrderMovementCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <BranchId>1</BranchId>
  <BuyOrderDeliveryId>1</BuyOrderDeliveryId>
  <BuyOrderId>1</BuyOrderId>
  <Description>sample string 3</Description>
  <PickingListNumber>sample string 4</PickingListNumber>
  <Remarks>sample string 2</Remarks>
  <Rows>
    <BuyOrderDeliveryRow>
      <AmountOfLabelsToPrint>6</AmountOfLabelsToPrint>
      <BuyOrderRowId>1</BuyOrderRowId>
      <BuyPrice>1</BuyPrice>
      <DebtorName>sample string 1</DebtorName>
      <OrderId>1</OrderId>
      <ProductId>2</ProductId>
      <Qty_Delivered>3</Qty_Delivered>
      <Remarks>sample string 4</Remarks>
      <StockLocationId>5</StockLocationId>
    </BuyOrderDeliveryRow>
    <BuyOrderDeliveryRow>
      <AmountOfLabelsToPrint>6</AmountOfLabelsToPrint>
      <BuyOrderRowId>1</BuyOrderRowId>
      <BuyPrice>1</BuyPrice>
      <DebtorName>sample string 1</DebtorName>
      <OrderId>1</OrderId>
      <ProductId>2</ProductId>
      <Qty_Delivered>3</Qty_Delivered>
      <Remarks>sample string 4</Remarks>
      <StockLocationId>5</StockLocationId>
    </BuyOrderDeliveryRow>
  </Rows>
  <Status>BusyWithInput</Status>
  <SupplierId>1</SupplierId>
</BuyOrderDeliveryAndOrderMovementCreate>

Response Information

Resource Description

Logic4ResponseOfBuyOrderDeliveryAndOrderMovement
NameDescriptionTypeAdditional information
Value

BuyOrderDeliveryAndOrderMovement

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": {
    "BuyOrderDeliveryId": 1,
    "OrderMovementId": 2
  },
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfBuyOrderDeliveryAndOrderMovementLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:BuyOrderDeliveryId>1</d2p1:BuyOrderDeliveryId>
    <d2p1:OrderMovementId>2</d2p1:OrderMovementId>
  </Value>
</Logic4ResponseOfBuyOrderDeliveryAndOrderMovementLnN1pw8Y>