POST api/Inventory/Save
Request Information
URI Parameters
None.
Body Parameters
SaveInventoryInputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Inventory_ID | globally unique identifier |
None. |
|
| Inventory_NO | string |
None. |
|
| InventoryType_ID | integer |
None. |
|
| PartNumber | string |
None. |
|
| Model | string |
None. |
|
| Description | string |
None. |
|
| Customer_ID | integer |
None. |
|
| ManufacturerType | string |
None. |
|
| ManufacturerID | integer |
None. |
|
| AmountPerPallet | decimal number |
None. |
|
| PackageType_ID | integer |
None. |
|
| LengthInches | decimal number |
None. |
|
| WidthInches | decimal number |
None. |
|
| HeightInches | decimal number |
None. |
|
| VolumeCubicFeet | decimal number |
None. |
|
| WeightPounds | decimal number |
None. |
|
| Unit | string |
None. |
|
| CommodityType_ID | integer |
None. |
|
| SKUs | Collection of SKUsInputModel |
None. |
|
| InventoryImage | InventoryImageInputModel |
None. |
|
| CustomFieldsWithValues | Collection of CustomFieldOutputModel |
None. |
|
| UpdatedCustomFields | Collection of CustomFields |
None. |
Request Formats
application/json, text/json
Sample:
{
"Inventory_ID": "a6744503-3034-44cd-adba-6dc86c4a7cc1",
"Inventory_NO": "sample string 2",
"InventoryType_ID": 3,
"PartNumber": "sample string 4",
"Model": "sample string 5",
"Description": "sample string 6",
"Customer_ID": 7,
"ManufacturerType": "sample string 8",
"ManufacturerID": 1,
"AmountPerPallet": 1.0,
"PackageType_ID": 1,
"LengthInches": 1.0,
"WidthInches": 1.0,
"HeightInches": 1.0,
"VolumeCubicFeet": 1.0,
"WeightPounds": 1.0,
"Unit": "sample string 9",
"CommodityType_ID": 1,
"SKUs": [
{
"SKU_NO": "sample string 1",
"Sequence_NO": 2
},
{
"SKU_NO": "sample string 1",
"Sequence_NO": 2
}
],
"InventoryImage": {
"ImagePath": "sample string 1",
"SmallImagePath": "sample string 2",
"MediumImagePath": "sample string 3",
"FileSize": 1
},
"CustomFieldsWithValues": [
{
"FormFieldId": 1,
"FormFieldName": "sample string 2",
"FormFieldDisplayName": "sample string 3",
"FormFieldTypeId": 4,
"FormFieldAttributeId": 1,
"FormFieldAttributeValue": "sample string 5"
},
{
"FormFieldId": 1,
"FormFieldName": "sample string 2",
"FormFieldDisplayName": "sample string 3",
"FormFieldTypeId": 4,
"FormFieldAttributeId": 1,
"FormFieldAttributeValue": "sample string 5"
}
],
"UpdatedCustomFields": [
{
"Id": 1,
"ChangedLocationTypes": [
"sample string 1",
"sample string 2"
]
},
{
"Id": 1,
"ChangedLocationTypes": [
"sample string 1",
"sample string 2"
]
}
]
}
application/xml, text/xml
Sample:
<SaveInventoryInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
<AmountPerPallet>1</AmountPerPallet>
<CommodityType_ID>1</CommodityType_ID>
<CustomFieldsWithValues>
<CustomFieldOutputModel>
<FormFieldAttributeId>1</FormFieldAttributeId>
<FormFieldAttributeValue>sample string 5</FormFieldAttributeValue>
<FormFieldDisplayName>sample string 3</FormFieldDisplayName>
<FormFieldId>1</FormFieldId>
<FormFieldName>sample string 2</FormFieldName>
<FormFieldTypeId>4</FormFieldTypeId>
</CustomFieldOutputModel>
<CustomFieldOutputModel>
<FormFieldAttributeId>1</FormFieldAttributeId>
<FormFieldAttributeValue>sample string 5</FormFieldAttributeValue>
<FormFieldDisplayName>sample string 3</FormFieldDisplayName>
<FormFieldId>1</FormFieldId>
<FormFieldName>sample string 2</FormFieldName>
<FormFieldTypeId>4</FormFieldTypeId>
</CustomFieldOutputModel>
</CustomFieldsWithValues>
<Customer_ID>7</Customer_ID>
<Description>sample string 6</Description>
<HeightInches>1</HeightInches>
<InventoryImage>
<FileSize>1</FileSize>
<ImagePath>sample string 1</ImagePath>
<MediumImagePath>sample string 3</MediumImagePath>
<SmallImagePath>sample string 2</SmallImagePath>
</InventoryImage>
<InventoryType_ID>3</InventoryType_ID>
<Inventory_ID>a6744503-3034-44cd-adba-6dc86c4a7cc1</Inventory_ID>
<Inventory_NO>sample string 2</Inventory_NO>
<LengthInches>1</LengthInches>
<ManufacturerID>1</ManufacturerID>
<ManufacturerType>sample string 8</ManufacturerType>
<Model>sample string 5</Model>
<PackageType_ID>1</PackageType_ID>
<PartNumber>sample string 4</PartNumber>
<SKUs>
<SKUsInputModel>
<SKU_NO>sample string 1</SKU_NO>
<Sequence_NO>2</Sequence_NO>
</SKUsInputModel>
<SKUsInputModel>
<SKU_NO>sample string 1</SKU_NO>
<Sequence_NO>2</Sequence_NO>
</SKUsInputModel>
</SKUs>
<Unit>sample string 9</Unit>
<UpdatedCustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS">
<d2p1:CustomFields>
<d2p1:ChangedLocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:ChangedLocationTypes>
<d2p1:Id>1</d2p1:Id>
</d2p1:CustomFields>
<d2p1:CustomFields>
<d2p1:ChangedLocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</d2p1:ChangedLocationTypes>
<d2p1:Id>1</d2p1:Id>
</d2p1:CustomFields>
</UpdatedCustomFields>
<VolumeCubicFeet>1</VolumeCubicFeet>
<WeightPounds>1</WeightPounds>
<WidthInches>1</WidthInches>
</SaveInventoryInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"Inventory_ID":"a6744503-3034-44cd-adba-6dc86c4a7cc1","Inventory_NO":"sample string 2","InventoryType_ID":3,"PartNumber":"sample string 4","Model":"sample string 5","Description":"sample string 6","Customer_ID":7,"ManufacturerType":"sample string 8","ManufacturerID":1,"AmountPerPallet":1.0,"PackageType_ID":1,"LengthInches":1.0,"WidthInches":1.0,"HeightInches":1.0,"VolumeCubicFeet":1.0,"WeightPounds":1.0,"Unit":"sample string 9","CommodityType_ID":1,"SKUs":[{"SKU_NO":"sample string 1","Sequence_NO":2},{"SKU_NO":"sample string 1","Sequence_NO":2}],"InventoryImage":{"ImagePath":"sample string 1","SmallImagePath":"sample string 2","MediumImagePath":"sample string 3","FileSize":1},"CustomFieldsWithValues":[{"FormFieldId":1,"FormFieldName":"sample string 2","FormFieldDisplayName":"sample string 3","FormFieldTypeId":4,"FormFieldAttributeId":1,"FormFieldAttributeValue":"sample string 5"},{"FormFieldId":1,"FormFieldName":"sample string 2","FormFieldDisplayName":"sample string 3","FormFieldTypeId":4,"FormFieldAttributeId":1,"FormFieldAttributeValue":"sample string 5"}],"UpdatedCustomFields":[{"Id":1,"ChangedLocationTypes":["sample string 1","sample string 2"]},{"Id":1,"ChangedLocationTypes":["sample string 1","sample string 2"]}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.