POST api/PumpAndroid/SavePurchase
Request Information
URI Parameters
None.
Body Parameters
Purchases| Name | Description | Type | Additional information |
|---|---|---|---|
| GRNNo | string |
None. |
|
| GRNDate | date |
None. |
|
| GRNDate1 | date |
None. |
|
| Code | string |
None. |
|
| SupplierID | integer |
None. |
|
| Name | string |
None. |
|
| PartyDcNo | string |
None. |
|
| PartyDcDate | string |
None. |
|
| TotAmt | decimal number |
None. |
|
| TotQty | decimal number |
None. |
|
| AddAmt | decimal number |
None. |
|
| MinusAmt | decimal number |
None. |
|
| DEntryNo | integer |
None. |
|
| Mo | integer |
None. |
|
| Ye | integer |
None. |
|
| Da | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"GRNNo": "sample string 1",
"GRNDate": "2025-12-06T09:49:58.5207397+05:30",
"GRNDate1": "2025-12-06T09:49:58.5207397+05:30",
"Code": "sample string 4",
"SupplierID": 5,
"Name": "sample string 6",
"PartyDcNo": "sample string 7",
"PartyDcDate": "sample string 8",
"TotAmt": 9.1,
"TotQty": 10.1,
"AddAmt": 11.1,
"MinusAmt": 12.1,
"DEntryNo": 13,
"Mo": 14,
"Ye": 15,
"Da": 16
}
application/xml, text/xml
Sample:
<Purchases xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <AddAmt>11.1</AddAmt> <Code>sample string 4</Code> <DEntryNo>13</DEntryNo> <Da>16</Da> <GRNDate>2025-12-06T09:49:58.5207397+05:30</GRNDate> <GRNDate1>2025-12-06T09:49:58.5207397+05:30</GRNDate1> <GRNNo>sample string 1</GRNNo> <MinusAmt>12.1</MinusAmt> <Mo>14</Mo> <Name>sample string 6</Name> <PartyDcDate>sample string 8</PartyDcDate> <PartyDcNo>sample string 7</PartyDcNo> <SupplierID>5</SupplierID> <TotAmt>9.1</TotAmt> <TotQty>10.1</TotQty> <Ye>15</Ye> </Purchases>
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>