POST api/farm-Animal-Sales/requestQty/{requestQty}/stockTransactionId/{stockTransactionId}/penId/{penId}/customerName/{customerName}/update
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| requestQty | integer |
Required |
|
| stockTransactionId | integer |
Required |
|
| penId | integer |
Required |
|
| customerName | string |
Required |
Body Parameters
Farm_Pen_Room_Animals_Sale| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CategoryId | integer |
None. |
|
| FeedTypeId | integer |
None. |
|
| PenId | integer |
Required |
|
| BusinessId | integer |
None. |
|
| Farm_Business | Farm_Business |
None. |
|
| SalesTypeId | integer |
Required |
|
| ReceiptNo | string |
None. |
|
| CustomerName | string |
None. |
|
| CustomerPhoneNo | string |
None. |
|
| CustomerEmail | string |
None. |
|
| Weight | decimal number |
None. |
|
| Quantity | integer |
None. |
|
| Price | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| TotalPrice | decimal number |
None. |
|
| Description | string |
None. |
|
| DateSold | date |
None. |
|
| DateModified | date |
None. |
|
| StockId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CategoryId": 2,
"FeedTypeId": 3,
"PenId": 4,
"BusinessId": 5,
"Farm_Business": {
"Id": 1,
"Name": "sample string 2",
"DateCreated": "2025-12-04T23:16:32.9704391+01:00",
"DateModified": "2025-12-04T23:16:32.9704391+01:00"
},
"SalesTypeId": 6,
"ReceiptNo": "sample string 7",
"CustomerName": "sample string 8",
"CustomerPhoneNo": "sample string 9",
"CustomerEmail": "sample string 10",
"Weight": 11.1,
"Quantity": 12,
"Price": 1.1,
"Discount": 1.1,
"TotalPrice": 1.1,
"Description": "sample string 13",
"DateSold": "2025-12-04T23:16:32.9704391+01:00",
"DateModified": "2025-12-04T23:16:32.9704391+01:00",
"StockId": 15
}
application/xml, text/xml
Sample:
<Farm_Pen_Room_Animals_Sale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
<BusinessId>5</BusinessId>
<CategoryId>2</CategoryId>
<CustomerEmail>sample string 10</CustomerEmail>
<CustomerName>sample string 8</CustomerName>
<CustomerPhoneNo>sample string 9</CustomerPhoneNo>
<DateModified>2025-12-04T23:16:32.9704391+01:00</DateModified>
<DateSold>2025-12-04T23:16:32.9704391+01:00</DateSold>
<Description>sample string 13</Description>
<Discount>1.1</Discount>
<Farm_Business>
<DateCreated>2025-12-04T23:16:32.9704391+01:00</DateCreated>
<DateModified>2025-12-04T23:16:32.9704391+01:00</DateModified>
<Id>1</Id>
<Name>sample string 2</Name>
</Farm_Business>
<FeedTypeId>3</FeedTypeId>
<Id>1</Id>
<PenId>4</PenId>
<Price>1.1</Price>
<Quantity>12</Quantity>
<ReceiptNo>sample string 7</ReceiptNo>
<SalesTypeId>6</SalesTypeId>
<StockId>15</StockId>
<TotalPrice>1.1</TotalPrice>
<Weight>11.1</Weight>
</Farm_Pen_Room_Animals_Sale>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.