POST ManufactureInventory/PostManufactureInventory

Creates a manufacture inventory record.

Request Information

URI Parameters

Body Parameters

Manufacture Inventory object used to create manufacture inventory record.

ClsManufactureInventoryAdd
NameDescriptionTypeAdditional Information
manufactureDate

Manufacture Date

string

Required

Data type: DateTime

Format must be MM/dd/yyyy

departmentID

Existing department id to create the manufacture inventory for.

string

Required

Max length: 6

productID

Existing product id to create the manufacture inventory for.

string

Required

Max length: 10

Must not contain a space or a tic (')

quantity

The quantity amount of the product to be created.

decimal number

Required

Max of 3 decimal places

Must be numeric

lotNumber

The lot number to use for the product.

string

Max length: 30

Must not contain invalid characters

comments

Manufacture Inventory Comments

string

Max length: 250

ManufactureInventoryDetail

Collection of ClsManufactureInventoryDetail

List cannot be empty

Request Formats

application/json, text/json

Sample:
{
  "manufactureDate": "sample string 1",
  "departmentID": "sample string 2",
  "productID": "sample string 3",
  "quantity": 4.1,
  "lotNumber": "sample string 5",
  "comments": "sample string 6",
  "ManufactureInventoryDetail": [
    {
      "departmentID": "sample string 3",
      "productID": "sample string 4",
      "lotNumber": "sample string 5",
      "quantity": 6.1,
      "commodityUnitCostOverride": 1.1
    },
    {
      "departmentID": "sample string 3",
      "productID": "sample string 4",
      "lotNumber": "sample string 5",
      "quantity": 6.1,
      "commodityUnitCostOverride": 1.1
    }
  ]
}

application/xml, text/xml

Sample:
<ManufactureInventoryAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">
  <ManufactureInventoryDetail>
    <ManufactureInventoryDetail>
      <commodityUnitCostOverride>1.1</commodityUnitCostOverride>
      <departmentID>sample string 3</departmentID>
      <lotNumber>sample string 5</lotNumber>
      <productID>sample string 4</productID>
      <quantity>6.1</quantity>
    </ManufactureInventoryDetail>
    <ManufactureInventoryDetail>
      <commodityUnitCostOverride>1.1</commodityUnitCostOverride>
      <departmentID>sample string 3</departmentID>
      <lotNumber>sample string 5</lotNumber>
      <productID>sample string 4</productID>
      <quantity>6.1</quantity>
    </ManufactureInventoryDetail>
  </ManufactureInventoryDetail>
  <comments>sample string 6</comments>
  <departmentID>sample string 2</departmentID>
  <lotNumber>sample string 5</lotNumber>
  <manufactureDate>sample string 1</manufactureDate>
  <productID>sample string 3</productID>
  <quantity>4.1</quantity>
</ManufactureInventoryAdd>

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

Response Information

Resource Description

Creates a manufacture inventory record.

AgvManufactureInventory
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many Manufacture Inventory Records.

string
ManufactureInventoryRecords

JSON dictionary of ManufactureInventoryRecords.

Collection of ClsManufactureInventory

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "2",
  "ManufactureInventoryRecords": [
    {
      "manufactureDate": "sample string 2",
      "departmentID": "sample string 3",
      "productID": "sample string 4",
      "quantity": 5.1,
      "lotNumber": "sample string 6",
      "comments": "sample string 7",
      "ManufactureInventoryDetail": [
        {
          "departmentID": "sample string 3",
          "productID": "sample string 4",
          "lotNumber": "sample string 5",
          "quantity": 6.1,
          "commodityUnitCostOverride": 1.1
        },
        {
          "departmentID": "sample string 3",
          "productID": "sample string 4",
          "lotNumber": "sample string 5",
          "quantity": 6.1,
          "commodityUnitCostOverride": 1.1
        }
      ]
    },
    {
      "manufactureDate": "sample string 2",
      "departmentID": "sample string 3",
      "productID": "sample string 4",
      "quantity": 5.1,
      "lotNumber": "sample string 6",
      "comments": "sample string 7",
      "ManufactureInventoryDetail": [
        {
          "departmentID": "sample string 3",
          "productID": "sample string 4",
          "lotNumber": "sample string 5",
          "quantity": 6.1,
          "commodityUnitCostOverride": 1.1
        },
        {
          "departmentID": "sample string 3",
          "productID": "sample string 4",
          "lotNumber": "sample string 5",
          "quantity": 6.1,
          "commodityUnitCostOverride": 1.1
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<AgvManufactureInventory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Inventory.ManufactureInventory">
  <ManufactureInventoryRecords xmlns:d2p1="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory">
    <d2p1:ManufactureInventory>
      <d2p1:ManufactureInventoryDetail>
        <d2p1:ManufactureInventoryDetail>
          <d2p1:commodityUnitCostOverride>1.1</d2p1:commodityUnitCostOverride>
          <d2p1:departmentID>sample string 3</d2p1:departmentID>
          <d2p1:lotNumber>sample string 5</d2p1:lotNumber>
          <d2p1:productID>sample string 4</d2p1:productID>
          <d2p1:quantity>6.1</d2p1:quantity>
        </d2p1:ManufactureInventoryDetail>
        <d2p1:ManufactureInventoryDetail>
          <d2p1:commodityUnitCostOverride>1.1</d2p1:commodityUnitCostOverride>
          <d2p1:departmentID>sample string 3</d2p1:departmentID>
          <d2p1:lotNumber>sample string 5</d2p1:lotNumber>
          <d2p1:productID>sample string 4</d2p1:productID>
          <d2p1:quantity>6.1</d2p1:quantity>
        </d2p1:ManufactureInventoryDetail>
      </d2p1:ManufactureInventoryDetail>
      <d2p1:comments>sample string 7</d2p1:comments>
      <d2p1:departmentID>sample string 3</d2p1:departmentID>
      <d2p1:lotNumber>sample string 6</d2p1:lotNumber>
      <d2p1:manufactureDate>sample string 2</d2p1:manufactureDate>
      <d2p1:productID>sample string 4</d2p1:productID>
      <d2p1:quantity>5.1</d2p1:quantity>
    </d2p1:ManufactureInventory>
    <d2p1:ManufactureInventory>
      <d2p1:ManufactureInventoryDetail>
        <d2p1:ManufactureInventoryDetail>
          <d2p1:commodityUnitCostOverride>1.1</d2p1:commodityUnitCostOverride>
          <d2p1:departmentID>sample string 3</d2p1:departmentID>
          <d2p1:lotNumber>sample string 5</d2p1:lotNumber>
          <d2p1:productID>sample string 4</d2p1:productID>
          <d2p1:quantity>6.1</d2p1:quantity>
        </d2p1:ManufactureInventoryDetail>
        <d2p1:ManufactureInventoryDetail>
          <d2p1:commodityUnitCostOverride>1.1</d2p1:commodityUnitCostOverride>
          <d2p1:departmentID>sample string 3</d2p1:departmentID>
          <d2p1:lotNumber>sample string 5</d2p1:lotNumber>
          <d2p1:productID>sample string 4</d2p1:productID>
          <d2p1:quantity>6.1</d2p1:quantity>
        </d2p1:ManufactureInventoryDetail>
      </d2p1:ManufactureInventoryDetail>
      <d2p1:comments>sample string 7</d2p1:comments>
      <d2p1:departmentID>sample string 3</d2p1:departmentID>
      <d2p1:lotNumber>sample string 6</d2p1:lotNumber>
      <d2p1:manufactureDate>sample string 2</d2p1:manufactureDate>
      <d2p1:productID>sample string 4</d2p1:productID>
      <d2p1:quantity>5.1</d2p1:quantity>
    </d2p1:ManufactureInventory>
  </ManufactureInventoryRecords>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</AgvManufactureInventory>