POST api/PO/Items/CreateNew

Request Information

URI Parameters

None.

Body Parameters

PurchaseOrderCreateInventoryInputModel
NameDescriptionTypeAdditional information
PurchaseOrder_ID

globally unique identifier

None.

PartNumber

string

None.

Model

string

None.

Customer_ID

integer

None.

Description

string

None.

Pieces

integer

None.

InventoryImage

InventoryImageInputModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseOrder_ID": "a9e0df5e-9ca4-4b73-982f-2f45c6e0ba95",
  "PartNumber": "sample string 2",
  "Model": "sample string 3",
  "Customer_ID": 4,
  "Description": "sample string 5",
  "Pieces": 6,
  "InventoryImage": {
    "ImagePath": "sample string 1",
    "SmallImagePath": "sample string 2",
    "MediumImagePath": "sample string 3",
    "FileSize": 1
  }
}

application/xml, text/xml

Sample:
<PurchaseOrderCreateInventoryInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
  <Customer_ID>4</Customer_ID>
  <Description>sample string 5</Description>
  <InventoryImage>
    <FileSize>1</FileSize>
    <ImagePath>sample string 1</ImagePath>
    <MediumImagePath>sample string 3</MediumImagePath>
    <SmallImagePath>sample string 2</SmallImagePath>
  </InventoryImage>
  <Model>sample string 3</Model>
  <PartNumber>sample string 2</PartNumber>
  <Pieces>6</Pieces>
  <PurchaseOrder_ID>a9e0df5e-9ca4-4b73-982f-2f45c6e0ba95</PurchaseOrder_ID>
</PurchaseOrderCreateInventoryInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"PurchaseOrder_ID":"a9e0df5e-9ca4-4b73-982f-2f45c6e0ba95","PartNumber":"sample string 2","Model":"sample string 3","Customer_ID":4,"Description":"sample string 5","Pieces":6,"InventoryImage":{"ImagePath":"sample string 1","SmallImagePath":"sample string 2","MediumImagePath":"sample string 3","FileSize":1}}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.