POST api/StockAdjustment/InsertOrUpdate
Request Information
URI Parameters
None.
Body Parameters
StockAdjustment| Name | Description | Type | Additional information |
|---|---|---|---|
| IntNewStock | integer |
None. |
|
| Id_StockAdjustment | integer |
None. |
|
| PLUNumber | integer |
None. |
|
| dtStockAdjustDate | date |
None. |
|
| intWeekNo | integer |
None. |
|
| intAdjustment | integer |
None. |
|
| strReason | string |
None. |
|
| strComment | string |
None. |
|
| strCreatedBy | string |
None. |
|
| DtCreatedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"IntNewStock": 1,
"Id_StockAdjustment": 2,
"PLUNumber": 3,
"dtStockAdjustDate": "2025-12-06T05:49:07.3847764+00:00",
"intWeekNo": 1,
"intAdjustment": 1,
"strReason": "sample string 4",
"strComment": "sample string 5",
"strCreatedBy": "sample string 6",
"DtCreatedDate": "2025-12-06T05:49:07.3847764+00:00"
}
text/html
Sample:
{"IntNewStock":1,"Id_StockAdjustment":2,"PLUNumber":3,"dtStockAdjustDate":"2025-12-06T05:49:07.3847764+00:00","intWeekNo":1,"intAdjustment":1,"strReason":"sample string 4","strComment":"sample string 5","strCreatedBy":"sample string 6","DtCreatedDate":"2025-12-06T05:49:07.3847764+00:00"}
application/xml, text/xml
Sample:
<StockAdjustment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Sql.MposMain"> <DtCreatedDate xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">2025-12-06T05:49:07.3847764+00:00</DtCreatedDate> <Id_StockAdjustment xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">2</Id_StockAdjustment> <PLUNumber xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">3</PLUNumber> <dtStockAdjustDate xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">2025-12-06T05:49:07.3847764+00:00</dtStockAdjustDate> <intAdjustment xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">1</intAdjustment> <intWeekNo xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">1</intWeekNo> <strComment xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">sample string 5</strComment> <strCreatedBy xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">sample string 6</strCreatedBy> <strReason xmlns="http://schemas.datacontract.org/2004/07/HeadOfficeApi.DataAccess.Entities">sample string 4</strReason> <IntNewStock>1</IntNewStock> </StockAdjustment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |