POST api/PumpAndroid/SaveItem/{name}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
None. |
Body Parameters
Item| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| ItemNo | integer |
None. |
|
| ItemName | string |
None. |
|
| OpeningUnits | decimal number |
None. |
|
| UOM | string |
None. |
|
| Price | decimal number |
None. |
|
| PurchaseRate | decimal number |
None. |
|
| TaxMode | string |
None. |
|
| TaxPer | decimal number |
None. |
|
| TaxId | integer |
None. |
|
| HSNCode | string |
None. |
|
| EnteredDate | date |
None. |
|
| AlteredDate | date |
None. |
|
| EnteredBy | string |
None. |
|
| AlteredBy | string |
None. |
|
| ClosingStock | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"ItemNo": 2,
"ItemName": "sample string 3",
"OpeningUnits": 4.1,
"UOM": "sample string 5",
"Price": 6.1,
"PurchaseRate": 7.1,
"TaxMode": "sample string 8",
"TaxPer": 9.1,
"TaxId": 10,
"HSNCode": "sample string 11",
"EnteredDate": "2025-12-06T09:50:00.4339942+05:30",
"AlteredDate": "2025-12-06T09:50:00.4339942+05:30",
"EnteredBy": "sample string 14",
"AlteredBy": "sample string 15",
"ClosingStock": 16.1
}
application/xml, text/xml
Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PumpAndroid.Models"> <AlteredBy>sample string 15</AlteredBy> <AlteredDate>2025-12-06T09:50:00.4339942+05:30</AlteredDate> <ClosingStock>16.1</ClosingStock> <Code>sample string 1</Code> <EnteredBy>sample string 14</EnteredBy> <EnteredDate>2025-12-06T09:50:00.4339942+05:30</EnteredDate> <HSNCode>sample string 11</HSNCode> <ItemName>sample string 3</ItemName> <ItemNo>2</ItemNo> <OpeningUnits>4.1</OpeningUnits> <Price>6.1</Price> <PurchaseRate>7.1</PurchaseRate> <TaxId>10</TaxId> <TaxMode>sample string 8</TaxMode> <TaxPer>9.1</TaxPer> <UOM>sample string 5</UOM> </Item>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Status | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"Status": 2
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <Message>sample string 1</Message> <Status>2</Status> </Response>