POST api/ManufacturerOrder

Request Information

URI Parameters

None.

Body Parameters

WarehousePOModels
NameDescriptionTypeAdditional information
PurchaseOrders

Collection of PurchaseOrdersForWarehouseModels

Required

PurchaseOrdersDetails

Collection of PurchaseOrdersDetailsForWarehouseModels

Required

shipToAddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseOrders": [
    {
      "POR_Id": 1,
      "OrderType": "sample string 2"
    },
    {
      "POR_Id": 1,
      "OrderType": "sample string 2"
    }
  ],
  "PurchaseOrdersDetails": [
    {
      "POD_PA_Id_FK": 1,
      "POD_P_Id_FK": 2,
      "POD_P_ProductCode_FK": "sample string 3",
      "POD_P_ProductName_FK": "sample string 4",
      "POD_P_PackSize": "sample string 5",
      "POD_P_UOM_FK": "sample string 6",
      "POD_P_PackType": "sample string 7",
      "POD_P_Quantity": "sample string 8",
      "POD_VGSL_BUY_PRICE": "sample string 9",
      "ProductManufacturerId": 10,
      "PA_Manufacturer_MMOQ": 1,
      "PA_Convertion_Factor": 1.0,
      "PA_MMOQ_UOM": "sample string 11",
      "ExtraQty": 12
    },
    {
      "POD_PA_Id_FK": 1,
      "POD_P_Id_FK": 2,
      "POD_P_ProductCode_FK": "sample string 3",
      "POD_P_ProductName_FK": "sample string 4",
      "POD_P_PackSize": "sample string 5",
      "POD_P_UOM_FK": "sample string 6",
      "POD_P_PackType": "sample string 7",
      "POD_P_Quantity": "sample string 8",
      "POD_VGSL_BUY_PRICE": "sample string 9",
      "ProductManufacturerId": 10,
      "PA_Manufacturer_MMOQ": 1,
      "PA_Convertion_Factor": 1.0,
      "PA_MMOQ_UOM": "sample string 11",
      "ExtraQty": 12
    }
  ],
  "shipToAddress": "sample string 1"
}

application/xml, text/xml

Sample:
<WarehousePOModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <PurchaseOrders>
    <PurchaseOrdersForWarehouseModels>
      <OrderType>sample string 2</OrderType>
      <POR_Id>1</POR_Id>
    </PurchaseOrdersForWarehouseModels>
    <PurchaseOrdersForWarehouseModels>
      <OrderType>sample string 2</OrderType>
      <POR_Id>1</POR_Id>
    </PurchaseOrdersForWarehouseModels>
  </PurchaseOrders>
  <PurchaseOrdersDetails>
    <PurchaseOrdersDetailsForWarehouseModels>
      <ExtraQty>12</ExtraQty>
      <PA_Convertion_Factor>1</PA_Convertion_Factor>
      <PA_MMOQ_UOM>sample string 11</PA_MMOQ_UOM>
      <PA_Manufacturer_MMOQ>1</PA_Manufacturer_MMOQ>
      <POD_PA_Id_FK>1</POD_PA_Id_FK>
      <POD_P_Id_FK>2</POD_P_Id_FK>
      <POD_P_PackSize>sample string 5</POD_P_PackSize>
      <POD_P_PackType>sample string 7</POD_P_PackType>
      <POD_P_ProductCode_FK>sample string 3</POD_P_ProductCode_FK>
      <POD_P_ProductName_FK>sample string 4</POD_P_ProductName_FK>
      <POD_P_Quantity>sample string 8</POD_P_Quantity>
      <POD_P_UOM_FK>sample string 6</POD_P_UOM_FK>
      <POD_VGSL_BUY_PRICE>sample string 9</POD_VGSL_BUY_PRICE>
      <ProductManufacturerId>10</ProductManufacturerId>
    </PurchaseOrdersDetailsForWarehouseModels>
    <PurchaseOrdersDetailsForWarehouseModels>
      <ExtraQty>12</ExtraQty>
      <PA_Convertion_Factor>1</PA_Convertion_Factor>
      <PA_MMOQ_UOM>sample string 11</PA_MMOQ_UOM>
      <PA_Manufacturer_MMOQ>1</PA_Manufacturer_MMOQ>
      <POD_PA_Id_FK>1</POD_PA_Id_FK>
      <POD_P_Id_FK>2</POD_P_Id_FK>
      <POD_P_PackSize>sample string 5</POD_P_PackSize>
      <POD_P_PackType>sample string 7</POD_P_PackType>
      <POD_P_ProductCode_FK>sample string 3</POD_P_ProductCode_FK>
      <POD_P_ProductName_FK>sample string 4</POD_P_ProductName_FK>
      <POD_P_Quantity>sample string 8</POD_P_Quantity>
      <POD_P_UOM_FK>sample string 6</POD_P_UOM_FK>
      <POD_VGSL_BUY_PRICE>sample string 9</POD_VGSL_BUY_PRICE>
      <ProductManufacturerId>10</ProductManufacturerId>
    </PurchaseOrdersDetailsForWarehouseModels>
  </PurchaseOrdersDetails>
  <shipToAddress>sample string 1</shipToAddress>
</WarehousePOModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.