POST api/PumpAndroid/SavePurchaseDet/{code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
None. |
Body Parameters
PurchaseDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| GRNNo | string |
None. |
|
| GRNDate | date |
None. |
|
| Code | string |
None. |
|
| SupplierID | integer |
None. |
|
| ItemId | integer |
None. |
|
| ItemName | string |
None. |
|
| NoOfPcs | decimal number |
None. |
|
| Rate | decimal number |
None. |
|
| Amt | decimal number |
None. |
|
| TaxPer | decimal number |
None. |
|
| TaxId | integer |
None. |
|
| DEntryNo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"GRNNo": "sample string 1",
"GRNDate": "2025-12-06T09:48:06.9890864+05:30",
"Code": "sample string 3",
"SupplierID": 4,
"ItemId": 5,
"ItemName": "sample string 6",
"NoOfPcs": 7.1,
"Rate": 8.1,
"Amt": 9.1,
"TaxPer": 10.1,
"TaxId": 11,
"DEntryNo": 12
}
application/xml, text/xml
Sample:
<PurchaseDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <Amt>9.1</Amt> <Code>sample string 3</Code> <DEntryNo>12</DEntryNo> <GRNDate>2025-12-06T09:48:06.9890864+05:30</GRNDate> <GRNNo>sample string 1</GRNNo> <ItemId>5</ItemId> <ItemName>sample string 6</ItemName> <NoOfPcs>7.1</NoOfPcs> <Rate>8.1</Rate> <SupplierID>4</SupplierID> <TaxId>11</TaxId> <TaxPer>10.1</TaxPer> </PurchaseDetails>
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>