POST register/AddItem
Request Information
URI Parameters
None.
Body Parameters
ItemUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemID | string |
None. |
|
| Name | string |
None. |
|
| DepartmentID | string |
None. |
|
| CategoryID | string |
None. |
|
| Price | decimal number |
None. |
|
| UsedPrice | decimal number |
None. |
|
| UsedPrice2 | decimal number |
None. |
|
| TradeInPrice | decimal number |
None. |
|
| TradeInPrice2 | decimal number |
None. |
|
| TradeInPriceCash | decimal number |
None. |
|
| TradeInPriceCash2 | decimal number |
None. |
|
| RetailPrice | decimal number |
None. |
|
| Cost | decimal number |
None. |
|
| UsedCost | decimal number |
None. |
|
| QuantityNew | decimal number |
None. |
|
| QuantityUsed | decimal number |
None. |
|
| Taxable1 | boolean |
None. |
|
| Taxable2 | boolean |
None. |
|
| Taxable3 | boolean |
None. |
|
| Description | string |
None. |
|
| Description2 | string |
None. |
|
| Manufacturer | string |
None. |
|
| Location | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemID": "sample string 1",
"Name": "sample string 2",
"DepartmentID": "sample string 3",
"CategoryID": "sample string 4",
"Price": 1.0,
"UsedPrice": 1.0,
"UsedPrice2": 1.0,
"TradeInPrice": 1.0,
"TradeInPrice2": 1.0,
"TradeInPriceCash": 1.0,
"TradeInPriceCash2": 1.0,
"RetailPrice": 1.0,
"Cost": 1.0,
"UsedCost": 1.0,
"QuantityNew": 1.0,
"QuantityUsed": 1.0,
"Taxable1": true,
"Taxable2": true,
"Taxable3": true,
"Description": "sample string 8",
"Description2": "sample string 9",
"Manufacturer": "sample string 10",
"Location": "sample string 11"
}
application/xml, text/xml
Sample:
<ItemUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RegisterService.Models"> <CategoryID>sample string 4</CategoryID> <Cost>1</Cost> <DepartmentID>sample string 3</DepartmentID> <Description>sample string 8</Description> <Description2>sample string 9</Description2> <ItemID>sample string 1</ItemID> <Location>sample string 11</Location> <Manufacturer>sample string 10</Manufacturer> <Name>sample string 2</Name> <Price>1</Price> <QuantityNew>1</QuantityNew> <QuantityUsed>1</QuantityUsed> <RetailPrice>1</RetailPrice> <Taxable1>true</Taxable1> <Taxable2>true</Taxable2> <Taxable3>true</Taxable3> <TradeInPrice>1</TradeInPrice> <TradeInPrice2>1</TradeInPrice2> <TradeInPriceCash>1</TradeInPriceCash> <TradeInPriceCash2>1</TradeInPriceCash2> <UsedCost>1</UsedCost> <UsedPrice>1</UsedPrice> <UsedPrice2>1</UsedPrice2> </ItemUpdate>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
JsonResultOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | string |
None. |
|
| SerializerSettings | JsonSerializerSettings |
None. |
|
| Encoding | Encoding |
None. |
|
| Request | HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.