POST api/PurchaseDetail
Request Information
URI Parameters
None.
Body Parameters
tblPurchaseDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| BDID | integer |
None. |
|
| BillNo | integer |
None. |
|
| ProductId | integer |
None. |
|
| Batch | string |
None. |
|
| Expiry | date |
None. |
|
| Qty | decimal number |
None. |
|
| Rate | decimal number |
None. |
|
| Tax | decimal number |
None. |
|
| TaxRs | decimal number |
None. |
|
| Surcharge | decimal number |
None. |
|
| Disc | decimal number |
None. |
|
| DiscRs | decimal number |
None. |
|
| Amount | decimal number |
None. |
|
| BestPrice | decimal number |
None. |
|
| Type | string |
None. |
|
| Description | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"BDID": 1,
"BillNo": 1,
"ProductId": 1,
"Batch": "sample string 2",
"Expiry": "2025-12-10T09:58:15.3610968+05:30",
"Qty": 1.0,
"Rate": 1.0,
"Tax": 1.0,
"TaxRs": 1.0,
"Surcharge": 1.0,
"Disc": 1.0,
"DiscRs": 1.0,
"Amount": 1.0,
"BestPrice": 1.0,
"Type": "sample string 3",
"Description": "sample string 4"
}
application/xml, text/xml
Sample:
<tblPurchaseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/handyman.Models"> <Amount>1</Amount> <BDID>1</BDID> <Batch>sample string 2</Batch> <BestPrice>1</BestPrice> <BillNo>1</BillNo> <Description>sample string 4</Description> <Disc>1</Disc> <DiscRs>1</DiscRs> <Expiry>2025-12-10T09:58:15.3610968+05:30</Expiry> <ProductId>1</ProductId> <Qty>1</Qty> <Rate>1</Rate> <Surcharge>1</Surcharge> <Tax>1</Tax> <TaxRs>1</TaxRs> <Type>sample string 3</Type> </tblPurchaseDetail>
application/x-www-form-urlencoded
Sample:
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. |