POST api/StockAdjustment

Adjust stock

Request Information

URI Parameters

None.

Body Parameters

Message with stock items to change

ChangeStockMessageRequest
NameDescriptionTypeAdditional information
Header

MessageHeader

None.

Stock

Collection of StockAdjustmentItem

None.

Footer

MessageFooter

None.

Request Formats

application/json, text/json

Sample:
{
  "Header": {
    "Version": "string 1",
    "Identification": "string 2",
    "Sender": "string 3"
  },
  "Stock": [
    {
      "CompanyIdentifier": "string 1",
      "ProductIdentifier": "string 2",
      "WarehouseIdentifier": "string 3",
      "StockLocationIdentifier": "string 4",
      "URNIdentifier": "string 5",
      "URNTypeIdentifier": "string 6",
      "Quantity": 7,
      "Lot": {
        "CompanyIdentifier": "string 1",
        "BatchNumber": "string 2",
        "LotNumber": "string 3",
        "MinimalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MinimalExpirationDateSpecified": true,
        "MaximalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MaximalExpirationDateSpecified": true,
        "LotDate": "2025-12-06T04:00:27.0862637+01:00",
        "LotDateSpecified": true
      }
    },
    {
      "CompanyIdentifier": "string 1",
      "ProductIdentifier": "string 2",
      "WarehouseIdentifier": "string 3",
      "StockLocationIdentifier": "string 4",
      "URNIdentifier": "string 5",
      "URNTypeIdentifier": "string 6",
      "Quantity": 7,
      "Lot": {
        "CompanyIdentifier": "string 1",
        "BatchNumber": "string 2",
        "LotNumber": "string 3",
        "MinimalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MinimalExpirationDateSpecified": true,
        "MaximalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MaximalExpirationDateSpecified": true,
        "LotDate": "2025-12-06T04:00:27.0862637+01:00",
        "LotDateSpecified": true
      }
    }
  ],
  "Footer": {
    "TotalRecords": 1,
    "Records": 2
  }
}

application/xml, text/xml

Sample:
<ChangeStockMessageRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Header>
    <Version>string 1</Version>
    <Identification>string 2</Identification>
    <Sender>string 3</Sender>
  </Header>
  <Stock>
    <StockAdjustmentItem>
      <CompanyIdentifier>string 1</CompanyIdentifier>
      <ProductIdentifier>string 2</ProductIdentifier>
      <WarehouseIdentifier>string 3</WarehouseIdentifier>
      <StockLocationIdentifier>string 4</StockLocationIdentifier>
      <URNIdentifier>string 5</URNIdentifier>
      <URNTypeIdentifier>string 6</URNTypeIdentifier>
      <Quantity>7</Quantity>
      <Lot>
        <CompanyIdentifier>string 1</CompanyIdentifier>
        <BatchNumber>string 2</BatchNumber>
        <LotNumber>string 3</LotNumber>
        <MinimalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MinimalExpirationDate>
        <MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
        <MaximalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MaximalExpirationDate>
        <MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
        <LotDate>2025-12-06T04:00:27.0862637+01:00</LotDate>
        <LotDateSpecified>true</LotDateSpecified>
      </Lot>
    </StockAdjustmentItem>
    <StockAdjustmentItem>
      <CompanyIdentifier>string 1</CompanyIdentifier>
      <ProductIdentifier>string 2</ProductIdentifier>
      <WarehouseIdentifier>string 3</WarehouseIdentifier>
      <StockLocationIdentifier>string 4</StockLocationIdentifier>
      <URNIdentifier>string 5</URNIdentifier>
      <URNTypeIdentifier>string 6</URNTypeIdentifier>
      <Quantity>7</Quantity>
      <Lot>
        <CompanyIdentifier>string 1</CompanyIdentifier>
        <BatchNumber>string 2</BatchNumber>
        <LotNumber>string 3</LotNumber>
        <MinimalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MinimalExpirationDate>
        <MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
        <MaximalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MaximalExpirationDate>
        <MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
        <LotDate>2025-12-06T04:00:27.0862637+01:00</LotDate>
        <LotDateSpecified>true</LotDateSpecified>
      </Lot>
    </StockAdjustmentItem>
  </Stock>
  <Footer>
    <TotalRecords>1</TotalRecords>
    <Records>2</Records>
  </Footer>
</ChangeStockMessageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Ok: Message with result. Invalid APIKey: HttpStatusCode.Conflict

ChangeStockMessageResponse
NameDescriptionTypeAdditional information
Header

MessageHeader

None.

Stock

Collection of StockAdjustmentResult

None.

Footer

MessageFooter

None.

Response Formats

application/json, text/json

Sample:
{
  "Header": {
    "Version": "string 1",
    "Identification": "string 2",
    "Sender": "string 3"
  },
  "Stock": [
    {
      "ProcessingStatus": "P",
      "StockImportResult": "string 1",
      "StockQuantity": 1,
      "CompanyIdentifier": "string 2",
      "ProductIdentifier": "string 3",
      "WarehouseIdentifier": "string 4",
      "StockLocationIdentifier": "string 5",
      "URNIdentifier": "string 6",
      "URNTypeIdentifier": "string 7",
      "Quantity": 8,
      "Lot": {
        "CompanyIdentifier": "string 1",
        "BatchNumber": "string 2",
        "LotNumber": "string 3",
        "MinimalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MinimalExpirationDateSpecified": true,
        "MaximalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MaximalExpirationDateSpecified": true,
        "LotDate": "2025-12-06T04:00:27.0862637+01:00",
        "LotDateSpecified": true
      }
    },
    {
      "ProcessingStatus": "P",
      "StockImportResult": "string 1",
      "StockQuantity": 1,
      "CompanyIdentifier": "string 2",
      "ProductIdentifier": "string 3",
      "WarehouseIdentifier": "string 4",
      "StockLocationIdentifier": "string 5",
      "URNIdentifier": "string 6",
      "URNTypeIdentifier": "string 7",
      "Quantity": 8,
      "Lot": {
        "CompanyIdentifier": "string 1",
        "BatchNumber": "string 2",
        "LotNumber": "string 3",
        "MinimalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MinimalExpirationDateSpecified": true,
        "MaximalExpirationDate": "2025-12-06T04:00:27.0862637+01:00",
        "MaximalExpirationDateSpecified": true,
        "LotDate": "2025-12-06T04:00:27.0862637+01:00",
        "LotDateSpecified": true
      }
    }
  ],
  "Footer": {
    "TotalRecords": 1,
    "Records": 2
  }
}

application/xml, text/xml

Sample:
<ChangeStockMessageResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Header>
    <Version>string 1</Version>
    <Identification>string 2</Identification>
    <Sender>string 3</Sender>
  </Header>
  <Stock>
    <StockAdjustmentResult>
      <CompanyIdentifier>string 2</CompanyIdentifier>
      <ProductIdentifier>string 3</ProductIdentifier>
      <WarehouseIdentifier>string 4</WarehouseIdentifier>
      <StockLocationIdentifier>string 5</StockLocationIdentifier>
      <URNIdentifier>string 6</URNIdentifier>
      <URNTypeIdentifier>string 7</URNTypeIdentifier>
      <Quantity>8</Quantity>
      <Lot>
        <CompanyIdentifier>string 1</CompanyIdentifier>
        <BatchNumber>string 2</BatchNumber>
        <LotNumber>string 3</LotNumber>
        <MinimalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MinimalExpirationDate>
        <MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
        <MaximalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MaximalExpirationDate>
        <MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
        <LotDate>2025-12-06T04:00:27.0862637+01:00</LotDate>
        <LotDateSpecified>true</LotDateSpecified>
      </Lot>
      <ProcessingStatus>P</ProcessingStatus>
      <StockImportResult>string 1</StockImportResult>
      <StockQuantity>1</StockQuantity>
    </StockAdjustmentResult>
    <StockAdjustmentResult>
      <CompanyIdentifier>string 2</CompanyIdentifier>
      <ProductIdentifier>string 3</ProductIdentifier>
      <WarehouseIdentifier>string 4</WarehouseIdentifier>
      <StockLocationIdentifier>string 5</StockLocationIdentifier>
      <URNIdentifier>string 6</URNIdentifier>
      <URNTypeIdentifier>string 7</URNTypeIdentifier>
      <Quantity>8</Quantity>
      <Lot>
        <CompanyIdentifier>string 1</CompanyIdentifier>
        <BatchNumber>string 2</BatchNumber>
        <LotNumber>string 3</LotNumber>
        <MinimalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MinimalExpirationDate>
        <MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
        <MaximalExpirationDate>2025-12-06T04:00:27.0862637+01:00</MaximalExpirationDate>
        <MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
        <LotDate>2025-12-06T04:00:27.0862637+01:00</LotDate>
        <LotDateSpecified>true</LotDateSpecified>
      </Lot>
      <ProcessingStatus>P</ProcessingStatus>
      <StockImportResult>string 1</StockImportResult>
      <StockQuantity>1</StockQuantity>
    </StockAdjustmentResult>
  </Stock>
  <Footer>
    <TotalRecords>1</TotalRecords>
    <Records>2</Records>
  </Footer>
</ChangeStockMessageResponse>