PUT api/Purchase/Edit/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
PurchaseDetailsEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| PDate | date |
None. |
|
| PENo | integer |
None. |
|
| PlantID | integer |
None. |
|
| VID | integer |
None. |
|
| PTime | string |
None. |
|
| Details | string |
None. |
|
| Tons | decimal number |
None. |
|
| Freight | decimal number |
None. |
|
| Bags | decimal number |
None. |
|
| Status | string |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedDate | date |
None. |
|
| CompanyID | integer |
None. |
|
| WBSlipNo | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"PDate": "2026-06-04T15:20:11.4731323+05:30",
"PENo": 1,
"PlantID": 1,
"VID": 1,
"PTime": "sample string 2",
"Details": "sample string 3",
"Tons": 1.1,
"Freight": 1.1,
"Bags": 1.1,
"Status": "sample string 4",
"CreatedDate": "2026-06-04T15:20:11.4731323+05:30",
"UpdatedDate": "2026-06-04T15:20:11.4731323+05:30",
"CompanyID": 5,
"WBSlipNo": "sample string 6"
}
application/xml, text/xml
Sample:
<PurchaseDetailsEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities"> <Bags>1.1</Bags> <CompanyID>5</CompanyID> <CreatedDate>2026-06-04T15:20:11.4731323+05:30</CreatedDate> <Details>sample string 3</Details> <Freight>1.1</Freight> <PDate>2026-06-04T15:20:11.4731323+05:30</PDate> <PENo>1</PENo> <PTime>sample string 2</PTime> <PlantID>1</PlantID> <Status>sample string 4</Status> <Tons>1.1</Tons> <UpdatedDate>2026-06-04T15:20:11.4731323+05:30</UpdatedDate> <VID>1</VID> <WBSlipNo>sample string 6</WBSlipNo> <id>1</id> </PurchaseDetailsEntity>
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. |