POST api/StockAdjustment/SaveAdjustment
Api to save Stock Adjustment
Request Information
URI Parameters
None.
Body Parameters
InsertUpdateStockAdjustmentRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StockAdjustmentID | integer |
None. |
|
| StockAdjustmentSerialNo | string |
None. |
|
| StockAdjustmentDate | date |
None. |
|
| OperatorID | integer |
None. |
|
| FacilityID | integer |
Required |
|
| SubFacilityID | integer |
None. |
|
| StockAdjustmentNote | string |
None. |
|
| AdjustmentDetailsList | Collection of AdjustmentDetailsRequestModel |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{
"stockAdjustmentID": 1,
"stockAdjustmentSerialNo": "sample string 1",
"stockAdjustmentDate": "2026-02-25T15:52:09.7655052-05:00",
"operatorID": 1,
"facilityID": 3,
"subFacilityID": 1,
"stockAdjustmentNote": "sample string 4",
"adjustmentDetailsList": [
{
"partsID": 1,
"stockOnHand": 2.0,
"adjustedQuantity": 3.0,
"partsCostRate": 4.0,
"partsTotalAmount": 5.0,
"partsTotalAmountLocal": 6.0,
"exchangeRate": 7.0,
"currencyID": 8,
"unitID": 9
},
{
"partsID": 1,
"stockOnHand": 2.0,
"adjustedQuantity": 3.0,
"partsCostRate": 4.0,
"partsTotalAmount": 5.0,
"partsTotalAmountLocal": 6.0,
"exchangeRate": 7.0,
"currencyID": 8,
"unitID": 9
}
]
}
application/xml, text/xml
Sample:
<InsertUpdateStockAdjustmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.StockAdjustment">
<AdjustmentDetailsList>
<AdjustmentDetailsRequestModel>
<AdjustedQuantity>3</AdjustedQuantity>
<CurrencyID>8</CurrencyID>
<ExchangeRate>7</ExchangeRate>
<PartsCostRate>4</PartsCostRate>
<PartsID>1</PartsID>
<PartsTotalAmount>5</PartsTotalAmount>
<PartsTotalAmountLocal>6</PartsTotalAmountLocal>
<StockOnHand>2</StockOnHand>
<UnitID>9</UnitID>
</AdjustmentDetailsRequestModel>
<AdjustmentDetailsRequestModel>
<AdjustedQuantity>3</AdjustedQuantity>
<CurrencyID>8</CurrencyID>
<ExchangeRate>7</ExchangeRate>
<PartsCostRate>4</PartsCostRate>
<PartsID>1</PartsID>
<PartsTotalAmount>5</PartsTotalAmount>
<PartsTotalAmountLocal>6</PartsTotalAmountLocal>
<StockOnHand>2</StockOnHand>
<UnitID>9</UnitID>
</AdjustmentDetailsRequestModel>
</AdjustmentDetailsList>
<FacilityID>3</FacilityID>
<OperatorID>1</OperatorID>
<StockAdjustmentDate>2026-02-25T15:52:09.7655052-05:00</StockAdjustmentDate>
<StockAdjustmentID>1</StockAdjustmentID>
<StockAdjustmentNote>sample string 4</StockAdjustmentNote>
<StockAdjustmentSerialNo>sample string 1</StockAdjustmentSerialNo>
<SubFacilityID>1</SubFacilityID>
</InsertUpdateStockAdjustmentRequestModel>
multipart/form-data
Sample:
<InsertUpdateStockAdjustmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.StockAdjustment"><AdjustmentDetailsList><AdjustmentDetailsRequestModel><AdjustedQuantity>3</AdjustedQuantity><CurrencyID>8</CurrencyID><ExchangeRate>7</ExchangeRate><PartsCostRate>4</PartsCostRate><PartsID>1</PartsID><PartsTotalAmount>5</PartsTotalAmount><PartsTotalAmountLocal>6</PartsTotalAmountLocal><StockOnHand>2</StockOnHand><UnitID>9</UnitID></AdjustmentDetailsRequestModel><AdjustmentDetailsRequestModel><AdjustedQuantity>3</AdjustedQuantity><CurrencyID>8</CurrencyID><ExchangeRate>7</ExchangeRate><PartsCostRate>4</PartsCostRate><PartsID>1</PartsID><PartsTotalAmount>5</PartsTotalAmount><PartsTotalAmountLocal>6</PartsTotalAmountLocal><StockOnHand>2</StockOnHand><UnitID>9</UnitID></AdjustmentDetailsRequestModel></AdjustmentDetailsList><FacilityID>3</FacilityID><OperatorID>1</OperatorID><StockAdjustmentDate>2026-02-25T15:52:09.7655052-05:00</StockAdjustmentDate><StockAdjustmentID>1</StockAdjustmentID><StockAdjustmentNote>sample string 4</StockAdjustmentNote><StockAdjustmentSerialNo>sample string 1</StockAdjustmentSerialNo><SubFacilityID>1</SubFacilityID></InsertUpdateStockAdjustmentRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ReturnID | integer |
Required |
|
| Message | string |
Required |
|
| Successful | boolean |
Required |
|
| Code | integer |
None. |
|
| TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{
"returnID": 1,
"message": "sample string 2",
"successful": true,
"code": 4,
"totalRecord": 5
}
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>