POST api/stockadjustment/insert

Request Information

URI Parameters

None.

Body Parameters

InsertStockAdjustmentRequestModel
NameDescriptionTypeAdditional information
StockAdjustmentID

integer

None.

FinancialYearID

integer

None.

Date

date

None.

StockType

string

None.

StockTypeValue

integer

None.

AdjustmentType

boolean

None.

Quantity

decimal number

None.

Remarks

string

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StockAdjustmentID": 1,
  "FinancialYearID": 2,
  "Date": "2026-10-15T11:12:19.071568-07:00",
  "StockType": "sample string 4",
  "StockTypeValue": 5,
  "AdjustmentType": true,
  "Quantity": 7.0,
  "Remarks": "sample string 8",
  "UserID": 9
}

application/xml, text/xml

Sample:
<InsertStockAdjustmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <AdjustmentType>true</AdjustmentType>
  <Date>2026-10-15T11:12:19.071568-07:00</Date>
  <FinancialYearID>2</FinancialYearID>
  <Quantity>7</Quantity>
  <Remarks>sample string 8</Remarks>
  <StockAdjustmentID>1</StockAdjustmentID>
  <StockType>sample string 4</StockType>
  <StockTypeValue>5</StockTypeValue>
  <UserID>9</UserID>
</InsertStockAdjustmentRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.