POST api/IngredientsItem

Request Information

URI Parameters

None.

Body Parameters

InventoryItemInsertUpdateRequestModel
NameDescriptionTypeAdditional information
IngrediantID

integer

None.

CategoryID

integer

None.

IngrediantCode

string

None.

ItemName

string

None.

ItemDescription

string

None.

BarCode

string

None.

CurrencyID

integer

None.

PurchaseUnitID

integer

None.

IsStockCheck

boolean

None.

Cost

decimal number

None.

SubCategory

integer

None.

SubCategory2

integer

None.

SubCategory3

integer

None.

PortionUnitID

integer

None.

Yield

decimal number

None.

PortionCost

decimal number

None.

UserID

integer

None.

RFID

string

None.

APIKey

string

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "ingrediantID": 1,
  "categoryID": 1,
  "ingrediantCode": "sample string 1",
  "itemName": "sample string 2",
  "itemDescription": "sample string 3",
  "barCode": "sample string 4",
  "currencyID": 1,
  "purchaseUnitID": 1,
  "isStockCheck": true,
  "cost": 1.0,
  "subCategory": 1,
  "subCategory2": 1,
  "subCategory3": 1,
  "portionUnitID": 1,
  "yield": 1.0,
  "portionCost": 1.0,
  "userID": 5,
  "rfid": "sample string 6",
  "apiKey": "sample string 7"
}

application/xml, text/xml

Sample:
<InventoryItemInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <APIKey>sample string 7</APIKey>
  <BarCode>sample string 4</BarCode>
  <CategoryID>1</CategoryID>
  <Cost>1</Cost>
  <CurrencyID>1</CurrencyID>
  <IngrediantCode>sample string 1</IngrediantCode>
  <IngrediantID>1</IngrediantID>
  <IsStockCheck>true</IsStockCheck>
  <ItemDescription>sample string 3</ItemDescription>
  <ItemName>sample string 2</ItemName>
  <PortionCost>1</PortionCost>
  <PortionUnitID>1</PortionUnitID>
  <PurchaseUnitID>1</PurchaseUnitID>
  <RFID>sample string 6</RFID>
  <SubCategory>1</SubCategory>
  <SubCategory2>1</SubCategory2>
  <SubCategory3>1</SubCategory3>
  <UserID>5</UserID>
  <Yield>1</Yield>
</InventoryItemInsertUpdateRequestModel>

multipart/form-data

Sample:
<InventoryItemInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><APIKey>sample string 7</APIKey><BarCode>sample string 4</BarCode><CategoryID>1</CategoryID><Cost>1</Cost><CurrencyID>1</CurrencyID><IngrediantCode>sample string 1</IngrediantCode><IngrediantID>1</IngrediantID><IsStockCheck>true</IsStockCheck><ItemDescription>sample string 3</ItemDescription><ItemName>sample string 2</ItemName><PortionCost>1</PortionCost><PortionUnitID>1</PortionUnitID><PurchaseUnitID>1</PurchaseUnitID><RFID>sample string 6</RFID><SubCategory>1</SubCategory><SubCategory2>1</SubCategory2><SubCategory3>1</SubCategory3><UserID>5</UserID><Yield>1</Yield></InventoryItemInsertUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>