POST api/farm-Animal-Sales/stockTransactionId/{stockTransactionId}/customerName/{customerName}/customerEmail/{customerEmail}/customerPhoneNo/{customerPhoneNo}/WorkerName/{WorkerName}/add
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stockTransactionId | integer |
Required |
|
| customerName | string |
Required |
|
| customerEmail | string |
Required |
|
| customerPhoneNo | string |
Required |
|
| WorkerName | string |
Required |
Body Parameters
Collection of SalesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| SalesTypeName | string |
None. |
|
| BusinessId | integer |
None. |
|
| FeedTypeId | integer |
None. |
|
| CatName | string |
None. |
|
| Quantity | integer |
None. |
|
| Weight | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| ReceiptNo | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"SalesTypeName": "sample string 2",
"BusinessId": 3,
"FeedTypeId": 4,
"CatName": "sample string 5",
"Quantity": 6,
"Weight": 7.1,
"Price": 8.1,
"Discount": 9.1,
"ReceiptNo": "sample string 10"
},
{
"Id": 1,
"SalesTypeName": "sample string 2",
"BusinessId": 3,
"FeedTypeId": 4,
"CatName": "sample string 5",
"Quantity": 6,
"Weight": 7.1,
"Price": 8.1,
"Discount": 9.1,
"ReceiptNo": "sample string 10"
}
]
application/xml, text/xml
Sample:
<ArrayOfSalesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.FarmAnimalDTO">
<SalesDTO>
<BusinessId>3</BusinessId>
<CatName>sample string 5</CatName>
<Discount>9.1</Discount>
<FeedTypeId>4</FeedTypeId>
<Id>1</Id>
<Price>8.1</Price>
<Quantity>6</Quantity>
<ReceiptNo>sample string 10</ReceiptNo>
<SalesTypeName>sample string 2</SalesTypeName>
<Weight>7.1</Weight>
</SalesDTO>
<SalesDTO>
<BusinessId>3</BusinessId>
<CatName>sample string 5</CatName>
<Discount>9.1</Discount>
<FeedTypeId>4</FeedTypeId>
<Id>1</Id>
<Price>8.1</Price>
<Quantity>6</Quantity>
<ReceiptNo>sample string 10</ReceiptNo>
<SalesTypeName>sample string 2</SalesTypeName>
<Weight>7.1</Weight>
</SalesDTO>
</ArrayOfSalesDTO>
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.