PUT api/LedgerPurchase/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
LedgerPurchase| Name | Description | Type | Additional information |
|---|---|---|---|
| LedgerId | decimal number |
None. |
|
| PurchaseId | decimal number |
None. |
|
| LedgerDate | date |
None. |
|
| InvoiceNumber | string |
None. |
|
| LinkCode | string |
None. |
|
| ClientName | string |
None. |
|
| WorkshopName | string |
None. |
|
| SparePartsCategoryName | string |
None. |
|
| SparePartsSubCategoryName | string |
None. |
|
| SparePartsName | string |
None. |
|
| ItemName | string |
None. |
|
| ItemCode | string |
None. |
|
| TransactionTypeName | string |
None. |
|
| SupplierPersonName | string |
None. |
|
| SupplierMobileNo1 | string |
None. |
|
| SupplierMobileNo2 | string |
None. |
|
| SupplierAddress | string |
None. |
|
| Qty | decimal number |
None. |
|
| PurchasePricePerUnit | decimal number |
None. |
|
| SalesPricePerUnit | decimal number |
None. |
|
| GSTRate | decimal number |
None. |
|
| StatusName | string |
None. |
|
| Remarks | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"LedgerId": 1.1,
"PurchaseId": 2.1,
"LedgerDate": "2026-03-07T17:13:28.4130621+00:00",
"InvoiceNumber": "sample string 4",
"LinkCode": "sample string 5",
"ClientName": "sample string 6",
"WorkshopName": "sample string 7",
"SparePartsCategoryName": "sample string 8",
"SparePartsSubCategoryName": "sample string 9",
"SparePartsName": "sample string 10",
"ItemName": "sample string 11",
"ItemCode": "sample string 12",
"TransactionTypeName": "sample string 13",
"SupplierPersonName": "sample string 14",
"SupplierMobileNo1": "sample string 15",
"SupplierMobileNo2": "sample string 16",
"SupplierAddress": "sample string 17",
"Qty": 18.1,
"PurchasePricePerUnit": 19.1,
"SalesPricePerUnit": 20.1,
"GSTRate": 21.1,
"StatusName": "sample string 22",
"Remarks": "sample string 23"
}
application/xml, text/xml
Sample:
<LedgerPurchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GMSClass.ClientData.Plain"> <ClientName>sample string 6</ClientName> <GSTRate>21.1</GSTRate> <InvoiceNumber>sample string 4</InvoiceNumber> <ItemCode>sample string 12</ItemCode> <ItemName>sample string 11</ItemName> <LedgerDate>2026-03-07T17:13:28.4130621+00:00</LedgerDate> <LedgerId>1.1</LedgerId> <LinkCode>sample string 5</LinkCode> <PurchaseId>2.1</PurchaseId> <PurchasePricePerUnit>19.1</PurchasePricePerUnit> <Qty>18.1</Qty> <Remarks>sample string 23</Remarks> <SalesPricePerUnit>20.1</SalesPricePerUnit> <SparePartsCategoryName>sample string 8</SparePartsCategoryName> <SparePartsName>sample string 10</SparePartsName> <SparePartsSubCategoryName>sample string 9</SparePartsSubCategoryName> <StatusName>sample string 22</StatusName> <SupplierAddress>sample string 17</SupplierAddress> <SupplierMobileNo1>sample string 15</SupplierMobileNo1> <SupplierMobileNo2>sample string 16</SupplierMobileNo2> <SupplierPersonName>sample string 14</SupplierPersonName> <TransactionTypeName>sample string 13</TransactionTypeName> <WorkshopName>sample string 7</WorkshopName> </LedgerPurchase>
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. |