POST api/farm-Animal-Sales/stockTransactionId/{stockTransactionId}/customerName/{customerName}/customerEmail/{customerEmail}/customerPhoneNo/{customerPhoneNo}/WorkerName/{WorkerName}/add

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stockTransactionId

integer

Required

customerName

string

Required

customerEmail

string

Required

customerPhoneNo

string

Required

WorkerName

string

Required

Body Parameters

Collection of SalesDTO
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.