POST api/StockAdjustment

Api to Save Stock Adjustment

Request Information

URI Parameters

None.

Body Parameters

StockAdjustmentInsertRequestModel
NameDescriptionTypeAdditional information
ApiToken

string

None.

StockAdjustmentID

integer

None.

StockAdjustmentCode

string

Required

StockAdjustmentDate

date

Required

LocationID

integer

Required

Remarks

string

None.

ConsignmentNo

string

None.

PurchaseOrderNo

string

None.

UserID

integer

None.

_lstItems

Collection of StockAdjustmentItemDataModel

None.

TransactionTypeID

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "apiToken": "sample string 1",
  "stockAdjustmentID": 2,
  "stockAdjustmentCode": "sample string 3",
  "stockAdjustmentDate": "2025-07-17T05:25:30.5442172+00:00",
  "locationID": 5,
  "remarks": "sample string 6",
  "consignmentNo": "sample string 7",
  "purchaseOrderNo": "sample string 8",
  "userID": 1,
  "_lstItems": [
    {
      "productItemName": "sample string 1",
      "productItemCode": "sample string 2",
      "productItemID": 3,
      "productTypeID": 4,
      "description": "sample string 5",
      "inQty": 6.0,
      "outQty": 7.0,
      "inRate": 8.0,
      "outRate": 9.0,
      "minQty": 1.0,
      "aisle": "sample string 10",
      "row": "sample string 11",
      "bin": "sample string 12"
    },
    {
      "productItemName": "sample string 1",
      "productItemCode": "sample string 2",
      "productItemID": 3,
      "productTypeID": 4,
      "description": "sample string 5",
      "inQty": 6.0,
      "outQty": 7.0,
      "inRate": 8.0,
      "outRate": 9.0,
      "minQty": 1.0,
      "aisle": "sample string 10",
      "row": "sample string 11",
      "bin": "sample string 12"
    }
  ],
  "transactionTypeID": 1
}

application/xml, text/xml

Sample:
<StockAdjustmentInsertRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <ApiToken>sample string 1</ApiToken>
  <ConsignmentNo>sample string 7</ConsignmentNo>
  <LocationID>5</LocationID>
  <PurchaseOrderNo>sample string 8</PurchaseOrderNo>
  <Remarks>sample string 6</Remarks>
  <StockAdjustmentCode>sample string 3</StockAdjustmentCode>
  <StockAdjustmentDate>2025-07-17T05:25:30.5442172+00:00</StockAdjustmentDate>
  <StockAdjustmentID>2</StockAdjustmentID>
  <TransactionTypeID>1</TransactionTypeID>
  <UserID>1</UserID>
  <_lstItems>
    <StockAdjustmentItemDataModel>
      <Aisle>sample string 10</Aisle>
      <Bin>sample string 12</Bin>
      <Description>sample string 5</Description>
      <InQty>6</InQty>
      <InRate>8</InRate>
      <MinQty>1</MinQty>
      <OutQty>7</OutQty>
      <OutRate>9</OutRate>
      <ProductItemCode>sample string 2</ProductItemCode>
      <ProductItemID>3</ProductItemID>
      <ProductItemName>sample string 1</ProductItemName>
      <ProductTypeID>4</ProductTypeID>
      <Row>sample string 11</Row>
    </StockAdjustmentItemDataModel>
    <StockAdjustmentItemDataModel>
      <Aisle>sample string 10</Aisle>
      <Bin>sample string 12</Bin>
      <Description>sample string 5</Description>
      <InQty>6</InQty>
      <InRate>8</InRate>
      <MinQty>1</MinQty>
      <OutQty>7</OutQty>
      <OutRate>9</OutRate>
      <ProductItemCode>sample string 2</ProductItemCode>
      <ProductItemID>3</ProductItemID>
      <ProductItemName>sample string 1</ProductItemName>
      <ProductTypeID>4</ProductTypeID>
      <Row>sample string 11</Row>
    </StockAdjustmentItemDataModel>
  </_lstItems>
</StockAdjustmentInsertRequestModel>

multipart/form-data

Sample:
<StockAdjustmentInsertRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><ApiToken>sample string 1</ApiToken><ConsignmentNo>sample string 7</ConsignmentNo><LocationID>5</LocationID><PurchaseOrderNo>sample string 8</PurchaseOrderNo><Remarks>sample string 6</Remarks><StockAdjustmentCode>sample string 3</StockAdjustmentCode><StockAdjustmentDate>2025-07-17T05:25:30.5442172+00:00</StockAdjustmentDate><StockAdjustmentID>2</StockAdjustmentID><TransactionTypeID>1</TransactionTypeID><UserID>1</UserID><_lstItems><StockAdjustmentItemDataModel><Aisle>sample string 10</Aisle><Bin>sample string 12</Bin><Description>sample string 5</Description><InQty>6</InQty><InRate>8</InRate><MinQty>1</MinQty><OutQty>7</OutQty><OutRate>9</OutRate><ProductItemCode>sample string 2</ProductItemCode><ProductItemID>3</ProductItemID><ProductItemName>sample string 1</ProductItemName><ProductTypeID>4</ProductTypeID><Row>sample string 11</Row></StockAdjustmentItemDataModel><StockAdjustmentItemDataModel><Aisle>sample string 10</Aisle><Bin>sample string 12</Bin><Description>sample string 5</Description><InQty>6</InQty><InRate>8</InRate><MinQty>1</MinQty><OutQty>7</OutQty><OutRate>9</OutRate><ProductItemCode>sample string 2</ProductItemCode><ProductItemID>3</ProductItemID><ProductItemName>sample string 1</ProductItemName><ProductTypeID>4</ProductTypeID><Row>sample string 11</Row></StockAdjustmentItemDataModel></_lstItems></StockAdjustmentInsertRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional 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/ATMP.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/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>