POST api/ProductStorageHistories

Request Information

URI Parameters

None.

Body Parameters

ProductStorageHistory
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

BatchInfoId

integer

None.

BuyHistoryId

integer

None.

DateAt

date

None.

TotalQuantity

decimal number

None.

BalanceQuantity

decimal number

None.

FarmId

integer

None.

OwnerId

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

Price

decimal number

None.

IsRetail

boolean

None.

IsWholesale

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 2,
  "BatchInfoId": 3,
  "BuyHistoryId": 4,
  "DateAt": "2025-12-06T10:21:47.1153104+06:00",
  "TotalQuantity": 6.0,
  "BalanceQuantity": 7.0,
  "FarmId": 8,
  "OwnerId": 9,
  "CreatedAt": "2025-12-06T10:21:47.1153104+06:00",
  "UpdatedAt": "2025-12-06T10:21:47.1153104+06:00",
  "DeletedAt": "2025-12-06T10:21:47.1153104+06:00",
  "DeletedBy": 12,
  "CreatedBy": 13,
  "UpdatedBy": 14,
  "DeletedStatus": true,
  "Price": 16.0,
  "IsRetail": true,
  "IsWholesale": true
}

application/xml, text/xml

Sample:
<ProductStorageHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <BalanceQuantity>7</BalanceQuantity>
  <BatchInfoId>3</BatchInfoId>
  <BuyHistoryId>4</BuyHistoryId>
  <CreatedAt>2025-12-06T10:21:47.1153104+06:00</CreatedAt>
  <CreatedBy>13</CreatedBy>
  <DateAt>2025-12-06T10:21:47.1153104+06:00</DateAt>
  <DeletedAt>2025-12-06T10:21:47.1153104+06:00</DeletedAt>
  <DeletedBy>12</DeletedBy>
  <DeletedStatus>true</DeletedStatus>
  <FarmId>8</FarmId>
  <Id>1</Id>
  <IsRetail>true</IsRetail>
  <IsWholesale>true</IsWholesale>
  <OwnerId>9</OwnerId>
  <Price>16</Price>
  <ProductId>2</ProductId>
  <TotalQuantity>6</TotalQuantity>
  <UpdatedAt>2025-12-06T10:21:47.1153104+06:00</UpdatedAt>
  <UpdatedBy>14</UpdatedBy>
</ProductStorageHistory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.