POST api/Unleashed/CreateStockAdjustment?APIKey={APIKey}&UserID={UserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
APIKey

string

Required

UserID

integer

Required

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-17T04:35:50.4913903+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-17T04:35:50.4913903+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-17T04:35:50.4913903+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

string

Response Formats

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

Sample:
"sample string 1"

application/xml, text/xml, multipart/form-data

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>