POST api/farm-Animal-Sales-Stock/requestQty/{requestQty}/stockTransactionId/{stockTransactionId}/add

Request Information

URI Parameters

NameDescriptionTypeAdditional information
requestQty

integer

Required

stockTransactionId

integer

Required

Body Parameters

Farm_Pen_Room_Animals_Sale_Stock
NameDescriptionTypeAdditional information
Id

integer

None.

Farm_Stock_TransactionId

integer

Required

PenId

integer

Required

BusinessId

integer

None.

Farm_Business

Farm_Business

None.

CategoryId

integer

Required

QtyBefore

integer

None.

QtyAfter

integer

None.

CatQtyBefore

integer

None.

CatQtyAfter

integer

None.

PenToSalesQtyAfter

integer

None.

PenToSalesQtyBefore

integer

None.

CurrentCount

integer

None.

StockFlow

string

None.

StockFlowDescription

string

None.

Worker

string

None.

StockDate

date

None.

DateModified

date

None.

isDeleted

boolean

None.

DeletedId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Farm_Stock_TransactionId": 2,
  "PenId": 3,
  "BusinessId": 4,
  "Farm_Business": {
    "Id": 1,
    "Name": "sample string 2",
    "DateCreated": "2025-12-04T23:16:33.5457875+01:00",
    "DateModified": "2025-12-04T23:16:33.5457875+01:00"
  },
  "CategoryId": 5,
  "QtyBefore": 6,
  "QtyAfter": 7,
  "CatQtyBefore": 8,
  "CatQtyAfter": 9,
  "PenToSalesQtyAfter": 10,
  "PenToSalesQtyBefore": 11,
  "CurrentCount": 12,
  "StockFlow": "sample string 13",
  "StockFlowDescription": "sample string 14",
  "Worker": "sample string 15",
  "StockDate": "2025-12-04T23:16:33.5457875+01:00",
  "DateModified": "2025-12-04T23:16:33.5457875+01:00",
  "isDeleted": true,
  "DeletedId": 18
}

application/xml, text/xml

Sample:
<Farm_Pen_Room_Animals_Sale_Stock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
  <BusinessId>4</BusinessId>
  <CatQtyAfter>9</CatQtyAfter>
  <CatQtyBefore>8</CatQtyBefore>
  <CategoryId>5</CategoryId>
  <CurrentCount>12</CurrentCount>
  <DateModified>2025-12-04T23:16:33.5457875+01:00</DateModified>
  <DeletedId>18</DeletedId>
  <Farm_Business>
    <DateCreated>2025-12-04T23:16:33.5457875+01:00</DateCreated>
    <DateModified>2025-12-04T23:16:33.5457875+01:00</DateModified>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Farm_Business>
  <Farm_Stock_TransactionId>2</Farm_Stock_TransactionId>
  <Id>1</Id>
  <PenId>3</PenId>
  <PenToSalesQtyAfter>10</PenToSalesQtyAfter>
  <PenToSalesQtyBefore>11</PenToSalesQtyBefore>
  <QtyAfter>7</QtyAfter>
  <QtyBefore>6</QtyBefore>
  <StockDate>2025-12-04T23:16:33.5457875+01:00</StockDate>
  <StockFlow>sample string 13</StockFlow>
  <StockFlowDescription>sample string 14</StockFlowDescription>
  <Worker>sample string 15</Worker>
  <isDeleted>true</isDeleted>
</Farm_Pen_Room_Animals_Sale_Stock>

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 'Farm_Pen_Room_Animals_Sale_Stock'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.