POST api/Items/SaveItem
Request Information
URI Parameters
None.
Body Parameters
ItemMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| ITEMNMBR | decimal number |
None. |
|
| ItemCode | decimal number |
None. |
|
| ITEMDESC | string |
None. |
|
| ITMGEDSC | string |
None. |
|
| ITMSHDSC | string |
None. |
|
| Item | Collection of Item |
None. |
|
| ItemTAXSet | Collection of ItemTAXSet |
None. |
Request Formats
application/json, text/json
Sample:
{
"ITEMNMBR": 1.0,
"ItemCode": 1.0,
"ITEMDESC": "sample string 1",
"ITMGEDSC": "sample string 2",
"ITMSHDSC": "sample string 3",
"Item": [
{
"CURRCOST": 1.0,
"STNDCOST": 1.0,
"UOM": "sample string 1",
"MINIMQTY": 1.0,
"TotalCOST": 1.0,
"UOCOST": 1.0,
"SaleCOST": 1.0,
"Wsprice": 1.0
},
{
"CURRCOST": 1.0,
"STNDCOST": 1.0,
"UOM": "sample string 1",
"MINIMQTY": 1.0,
"TotalCOST": 1.0,
"UOCOST": 1.0,
"SaleCOST": 1.0,
"Wsprice": 1.0
}
],
"ItemTAXSet": [
{
"ITEMNMBR": "sample string 1",
"itemCode": "sample string 2",
"taxType": "sample string 3",
"amount": 1.0,
"subType": "sample string 4",
"Taxrate": 1.0,
"Percentage": 1.0
},
{
"ITEMNMBR": "sample string 1",
"itemCode": "sample string 2",
"taxType": "sample string 3",
"amount": 1.0,
"subType": "sample string 4",
"Taxrate": 1.0,
"Percentage": 1.0
}
]
}
application/xml, text/xml
Sample:
<ItemMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZamzamAPI.Models">
<ITEMDESC>sample string 1</ITEMDESC>
<ITEMNMBR>1</ITEMNMBR>
<ITMGEDSC>sample string 2</ITMGEDSC>
<ITMSHDSC>sample string 3</ITMSHDSC>
<Item>
<Item>
<CURRCOST>1</CURRCOST>
<MINIMQTY>1</MINIMQTY>
<STNDCOST>1</STNDCOST>
<SaleCOST>1</SaleCOST>
<TotalCOST>1</TotalCOST>
<UOCOST>1</UOCOST>
<UOM>sample string 1</UOM>
<Wsprice>1</Wsprice>
</Item>
<Item>
<CURRCOST>1</CURRCOST>
<MINIMQTY>1</MINIMQTY>
<STNDCOST>1</STNDCOST>
<SaleCOST>1</SaleCOST>
<TotalCOST>1</TotalCOST>
<UOCOST>1</UOCOST>
<UOM>sample string 1</UOM>
<Wsprice>1</Wsprice>
</Item>
</Item>
<ItemCode>1</ItemCode>
<ItemTAXSet>
<ItemTAXSet>
<ITEMNMBR>sample string 1</ITEMNMBR>
<Percentage>1</Percentage>
<Taxrate>1</Taxrate>
<amount>1</amount>
<itemCode>sample string 2</itemCode>
<subType>sample string 4</subType>
<taxType>sample string 3</taxType>
</ItemTAXSet>
<ItemTAXSet>
<ITEMNMBR>sample string 1</ITEMNMBR>
<Percentage>1</Percentage>
<Taxrate>1</Taxrate>
<amount>1</amount>
<itemCode>sample string 2</itemCode>
<subType>sample string 4</subType>
<taxType>sample string 3</taxType>
</ItemTAXSet>
</ItemTAXSet>
</ItemMaster>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |