POST InventoryReceived/PostInventoryReceived

Creates inventory received records

Request Information

URI Parameters

Body Parameters

InventoryReceived object used to create inventory received records

clsInventoryReceivedAdd
NameDescriptionTypeAdditional Information
vendorID

ID assigned to the vendor

string

Required

Max length: 10

ticketNumber

Ticket number

string

Required

Max length: 15

receivedDate

Ticket date

string

Data type: DateTime

Format must be MM/dd/yyyy

comments

Ticket comments

string

Max length: 255

status

If "I" then it has been processed into purchase receipt

string

Max length: 1

ReceivedDetailAdd

List of products associated with this ticket

Collection of clsReceivedDetailAdd

List cannot be empty

Request Formats

application/json, text/json

Sample:
{
  "vendorID": "sample string 1",
  "ticketNumber": "sample string 2",
  "receivedDate": "sample string 3",
  "comments": "sample string 4",
  "status": "sample string 5",
  "ReceivedDetailAdd": [
    {
      "barCode": "sample string 1",
      "departmentID": "sample string 2",
      "productID": "sample string 3",
      "productName": "sample string 4",
      "quantity": 5.1,
      "unitOfMeasure": "sample string 6",
      "lotNumber": "sample string 7",
      "ednYN": true,
      "containerID": 9,
      "ContainerIdString": "sample string 10",
      "listPrice": 11.1,
      "replacementCost": 12.1,
      "totalDollars": 13.1,
      "PurOrdGuid": "b83ac6bb-452f-4a23-9a91-81d45d005c3c"
    },
    {
      "barCode": "sample string 1",
      "departmentID": "sample string 2",
      "productID": "sample string 3",
      "productName": "sample string 4",
      "quantity": 5.1,
      "unitOfMeasure": "sample string 6",
      "lotNumber": "sample string 7",
      "ednYN": true,
      "containerID": 9,
      "ContainerIdString": "sample string 10",
      "listPrice": 11.1,
      "replacementCost": 12.1,
      "totalDollars": 13.1,
      "PurOrdGuid": "b83ac6bb-452f-4a23-9a91-81d45d005c3c"
    }
  ]
}

application/xml, text/xml

Sample:
<InventoryReceivedAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.Inv">
  <ReceivedDetailAdd>
    <ReceivedDetailAdd>
      <ContainerIdString>sample string 10</ContainerIdString>
      <PurOrdGuid>b83ac6bb-452f-4a23-9a91-81d45d005c3c</PurOrdGuid>
      <barCode>sample string 1</barCode>
      <containerID>9</containerID>
      <departmentID>sample string 2</departmentID>
      <ednYN>true</ednYN>
      <listPrice>11.1</listPrice>
      <lotNumber>sample string 7</lotNumber>
      <productID>sample string 3</productID>
      <productName>sample string 4</productName>
      <quantity>5.1</quantity>
      <replacementCost>12.1</replacementCost>
      <totalDollars>13.1</totalDollars>
      <unitOfMeasure>sample string 6</unitOfMeasure>
    </ReceivedDetailAdd>
    <ReceivedDetailAdd>
      <ContainerIdString>sample string 10</ContainerIdString>
      <PurOrdGuid>b83ac6bb-452f-4a23-9a91-81d45d005c3c</PurOrdGuid>
      <barCode>sample string 1</barCode>
      <containerID>9</containerID>
      <departmentID>sample string 2</departmentID>
      <ednYN>true</ednYN>
      <listPrice>11.1</listPrice>
      <lotNumber>sample string 7</lotNumber>
      <productID>sample string 3</productID>
      <productName>sample string 4</productName>
      <quantity>5.1</quantity>
      <replacementCost>12.1</replacementCost>
      <totalDollars>13.1</totalDollars>
      <unitOfMeasure>sample string 6</unitOfMeasure>
    </ReceivedDetailAdd>
  </ReceivedDetailAdd>
  <comments>sample string 4</comments>
  <receivedDate>sample string 3</receivedDate>
  <status>sample string 5</status>
  <ticketNumber>sample string 2</ticketNumber>
  <vendorID>sample string 1</vendorID>
</InventoryReceivedAdd>

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

Response Information

Resource Description

Creates inventory received records

AgvInventoryReceived
NameDescriptionTypeAdditional Information
Status

0 - Success; 1 - An error occurred; 2 - An error occurred; 3 - Descriptive message, process was successful

string
Message

Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know

string
Count

Number of results returned

string
InventoryReceivedRecords

List of properties and values returned for each record that matches the request

Collection of clsInventoryReceived

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "2",
  "InventoryReceivedRecords": [
    {
      "vendorID": "sample string 1",
      "vendorName": "sample string 2",
      "ticketNumber": "sample string 3",
      "receivedDate": "sample string 4",
      "comments": "sample string 5",
      "status": "sample string 6",
      "ReceivedDetail": [
        {
          "UniqueKey": 3,
          "lineItem": 4,
          "barCode": "sample string 5",
          "departmentID": "sample string 6",
          "productID": "sample string 7",
          "productName": "sample string 8",
          "quantity": 9.1,
          "unitOfMeasure": "sample string 10",
          "lotNumber": "sample string 11",
          "ednYN": true,
          "containerKey": 13,
          "containerID": 14,
          "ContainerIdString": "sample string 15",
          "listPrice": 16.1,
          "replacementCost": 17.1,
          "totalDollars": 18.1,
          "userID": "sample string 19",
          "userFirstName": "sample string 20",
          "userLastName": "sample string 21",
          "dateStamp": "sample string 22",
          "timeStamp": "sample string 23",
          "PurOrdGuid": "48e99561-f17a-4f02-8826-88a404eef4a7",
          "deleteYN": true
        },
        {
          "UniqueKey": 3,
          "lineItem": 4,
          "barCode": "sample string 5",
          "departmentID": "sample string 6",
          "productID": "sample string 7",
          "productName": "sample string 8",
          "quantity": 9.1,
          "unitOfMeasure": "sample string 10",
          "lotNumber": "sample string 11",
          "ednYN": true,
          "containerKey": 13,
          "containerID": 14,
          "ContainerIdString": "sample string 15",
          "listPrice": 16.1,
          "replacementCost": 17.1,
          "totalDollars": 18.1,
          "userID": "sample string 19",
          "userFirstName": "sample string 20",
          "userLastName": "sample string 21",
          "dateStamp": "sample string 22",
          "timeStamp": "sample string 23",
          "PurOrdGuid": "48e99561-f17a-4f02-8826-88a404eef4a7",
          "deleteYN": true
        }
      ]
    },
    {
      "vendorID": "sample string 1",
      "vendorName": "sample string 2",
      "ticketNumber": "sample string 3",
      "receivedDate": "sample string 4",
      "comments": "sample string 5",
      "status": "sample string 6",
      "ReceivedDetail": [
        {
          "UniqueKey": 3,
          "lineItem": 4,
          "barCode": "sample string 5",
          "departmentID": "sample string 6",
          "productID": "sample string 7",
          "productName": "sample string 8",
          "quantity": 9.1,
          "unitOfMeasure": "sample string 10",
          "lotNumber": "sample string 11",
          "ednYN": true,
          "containerKey": 13,
          "containerID": 14,
          "ContainerIdString": "sample string 15",
          "listPrice": 16.1,
          "replacementCost": 17.1,
          "totalDollars": 18.1,
          "userID": "sample string 19",
          "userFirstName": "sample string 20",
          "userLastName": "sample string 21",
          "dateStamp": "sample string 22",
          "timeStamp": "sample string 23",
          "PurOrdGuid": "48e99561-f17a-4f02-8826-88a404eef4a7",
          "deleteYN": true
        },
        {
          "UniqueKey": 3,
          "lineItem": 4,
          "barCode": "sample string 5",
          "departmentID": "sample string 6",
          "productID": "sample string 7",
          "productName": "sample string 8",
          "quantity": 9.1,
          "unitOfMeasure": "sample string 10",
          "lotNumber": "sample string 11",
          "ednYN": true,
          "containerKey": 13,
          "containerID": 14,
          "ContainerIdString": "sample string 15",
          "listPrice": 16.1,
          "replacementCost": 17.1,
          "totalDollars": 18.1,
          "userID": "sample string 19",
          "userFirstName": "sample string 20",
          "userLastName": "sample string 21",
          "dateStamp": "sample string 22",
          "timeStamp": "sample string 23",
          "PurOrdGuid": "48e99561-f17a-4f02-8826-88a404eef4a7",
          "deleteYN": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<AgvInventoryReceived xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Inventory.InventoryReceived">
  <InventoryReceivedRecords xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.Inv">
    <d2p1:InventoryReceived>
      <d2p1:ReceivedDetail>
        <d2p1:ReceivedDetail>
          <d2p1:ContainerIdString>sample string 15</d2p1:ContainerIdString>
          <d2p1:PurOrdGuid>48e99561-f17a-4f02-8826-88a404eef4a7</d2p1:PurOrdGuid>
          <d2p1:UniqueKey>3</d2p1:UniqueKey>
          <d2p1:barCode>sample string 5</d2p1:barCode>
          <d2p1:containerID>14</d2p1:containerID>
          <d2p1:containerKey>13</d2p1:containerKey>
          <d2p1:dateStamp>sample string 22</d2p1:dateStamp>
          <d2p1:deleteYN>true</d2p1:deleteYN>
          <d2p1:departmentID>sample string 6</d2p1:departmentID>
          <d2p1:ednYN>true</d2p1:ednYN>
          <d2p1:lineItem>4</d2p1:lineItem>
          <d2p1:listPrice>16.1</d2p1:listPrice>
          <d2p1:lotNumber>sample string 11</d2p1:lotNumber>
          <d2p1:productID>sample string 7</d2p1:productID>
          <d2p1:productName>sample string 8</d2p1:productName>
          <d2p1:quantity>9.1</d2p1:quantity>
          <d2p1:replacementCost>17.1</d2p1:replacementCost>
          <d2p1:timeStamp>sample string 23</d2p1:timeStamp>
          <d2p1:totalDollars>18.1</d2p1:totalDollars>
          <d2p1:unitOfMeasure>sample string 10</d2p1:unitOfMeasure>
          <d2p1:userFirstName>sample string 20</d2p1:userFirstName>
          <d2p1:userID>sample string 19</d2p1:userID>
          <d2p1:userLastName>sample string 21</d2p1:userLastName>
        </d2p1:ReceivedDetail>
        <d2p1:ReceivedDetail>
          <d2p1:ContainerIdString>sample string 15</d2p1:ContainerIdString>
          <d2p1:PurOrdGuid>48e99561-f17a-4f02-8826-88a404eef4a7</d2p1:PurOrdGuid>
          <d2p1:UniqueKey>3</d2p1:UniqueKey>
          <d2p1:barCode>sample string 5</d2p1:barCode>
          <d2p1:containerID>14</d2p1:containerID>
          <d2p1:containerKey>13</d2p1:containerKey>
          <d2p1:dateStamp>sample string 22</d2p1:dateStamp>
          <d2p1:deleteYN>true</d2p1:deleteYN>
          <d2p1:departmentID>sample string 6</d2p1:departmentID>
          <d2p1:ednYN>true</d2p1:ednYN>
          <d2p1:lineItem>4</d2p1:lineItem>
          <d2p1:listPrice>16.1</d2p1:listPrice>
          <d2p1:lotNumber>sample string 11</d2p1:lotNumber>
          <d2p1:productID>sample string 7</d2p1:productID>
          <d2p1:productName>sample string 8</d2p1:productName>
          <d2p1:quantity>9.1</d2p1:quantity>
          <d2p1:replacementCost>17.1</d2p1:replacementCost>
          <d2p1:timeStamp>sample string 23</d2p1:timeStamp>
          <d2p1:totalDollars>18.1</d2p1:totalDollars>
          <d2p1:unitOfMeasure>sample string 10</d2p1:unitOfMeasure>
          <d2p1:userFirstName>sample string 20</d2p1:userFirstName>
          <d2p1:userID>sample string 19</d2p1:userID>
          <d2p1:userLastName>sample string 21</d2p1:userLastName>
        </d2p1:ReceivedDetail>
      </d2p1:ReceivedDetail>
      <d2p1:comments>sample string 5</d2p1:comments>
      <d2p1:receivedDate>sample string 4</d2p1:receivedDate>
      <d2p1:status>sample string 6</d2p1:status>
      <d2p1:ticketNumber>sample string 3</d2p1:ticketNumber>
      <d2p1:vendorID>sample string 1</d2p1:vendorID>
      <d2p1:vendorName>sample string 2</d2p1:vendorName>
    </d2p1:InventoryReceived>
    <d2p1:InventoryReceived>
      <d2p1:ReceivedDetail>
        <d2p1:ReceivedDetail>
          <d2p1:ContainerIdString>sample string 15</d2p1:ContainerIdString>
          <d2p1:PurOrdGuid>48e99561-f17a-4f02-8826-88a404eef4a7</d2p1:PurOrdGuid>
          <d2p1:UniqueKey>3</d2p1:UniqueKey>
          <d2p1:barCode>sample string 5</d2p1:barCode>
          <d2p1:containerID>14</d2p1:containerID>
          <d2p1:containerKey>13</d2p1:containerKey>
          <d2p1:dateStamp>sample string 22</d2p1:dateStamp>
          <d2p1:deleteYN>true</d2p1:deleteYN>
          <d2p1:departmentID>sample string 6</d2p1:departmentID>
          <d2p1:ednYN>true</d2p1:ednYN>
          <d2p1:lineItem>4</d2p1:lineItem>
          <d2p1:listPrice>16.1</d2p1:listPrice>
          <d2p1:lotNumber>sample string 11</d2p1:lotNumber>
          <d2p1:productID>sample string 7</d2p1:productID>
          <d2p1:productName>sample string 8</d2p1:productName>
          <d2p1:quantity>9.1</d2p1:quantity>
          <d2p1:replacementCost>17.1</d2p1:replacementCost>
          <d2p1:timeStamp>sample string 23</d2p1:timeStamp>
          <d2p1:totalDollars>18.1</d2p1:totalDollars>
          <d2p1:unitOfMeasure>sample string 10</d2p1:unitOfMeasure>
          <d2p1:userFirstName>sample string 20</d2p1:userFirstName>
          <d2p1:userID>sample string 19</d2p1:userID>
          <d2p1:userLastName>sample string 21</d2p1:userLastName>
        </d2p1:ReceivedDetail>
        <d2p1:ReceivedDetail>
          <d2p1:ContainerIdString>sample string 15</d2p1:ContainerIdString>
          <d2p1:PurOrdGuid>48e99561-f17a-4f02-8826-88a404eef4a7</d2p1:PurOrdGuid>
          <d2p1:UniqueKey>3</d2p1:UniqueKey>
          <d2p1:barCode>sample string 5</d2p1:barCode>
          <d2p1:containerID>14</d2p1:containerID>
          <d2p1:containerKey>13</d2p1:containerKey>
          <d2p1:dateStamp>sample string 22</d2p1:dateStamp>
          <d2p1:deleteYN>true</d2p1:deleteYN>
          <d2p1:departmentID>sample string 6</d2p1:departmentID>
          <d2p1:ednYN>true</d2p1:ednYN>
          <d2p1:lineItem>4</d2p1:lineItem>
          <d2p1:listPrice>16.1</d2p1:listPrice>
          <d2p1:lotNumber>sample string 11</d2p1:lotNumber>
          <d2p1:productID>sample string 7</d2p1:productID>
          <d2p1:productName>sample string 8</d2p1:productName>
          <d2p1:quantity>9.1</d2p1:quantity>
          <d2p1:replacementCost>17.1</d2p1:replacementCost>
          <d2p1:timeStamp>sample string 23</d2p1:timeStamp>
          <d2p1:totalDollars>18.1</d2p1:totalDollars>
          <d2p1:unitOfMeasure>sample string 10</d2p1:unitOfMeasure>
          <d2p1:userFirstName>sample string 20</d2p1:userFirstName>
          <d2p1:userID>sample string 19</d2p1:userID>
          <d2p1:userLastName>sample string 21</d2p1:userLastName>
        </d2p1:ReceivedDetail>
      </d2p1:ReceivedDetail>
      <d2p1:comments>sample string 5</d2p1:comments>
      <d2p1:receivedDate>sample string 4</d2p1:receivedDate>
      <d2p1:status>sample string 6</d2p1:status>
      <d2p1:ticketNumber>sample string 3</d2p1:ticketNumber>
      <d2p1:vendorID>sample string 1</d2p1:vendorID>
      <d2p1:vendorName>sample string 2</d2p1:vendorName>
    </d2p1:InventoryReceived>
  </InventoryReceivedRecords>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</AgvInventoryReceived>