Show / Hide Table of Contents

    UnplannedArrivalStockMovement

    Command, Introduced in version 2.18

    POST https://localhost:8001/sv/001.1/api/v1/Inventory/Parts/UnplannedArrivalStockMovement
    

    Performs an unplanned stock movement arrival, adding the specified quantity to the specified location.

    Returns EntityCommandResponse

    The root entity id of the response is the business key identifier of the the part that the movement was made for. References Parts

    The entity id of the response is the same as the root entity id.

    Required permission

    Report stock count
    

    Properties

    Name Type Summary Introduced in
    PartId Int64 The business key identifier of the part to create a stock movement for.

    References Parts

    • Mandatory
    PartLocationKey PartLocationInfoKey The composite part location key of the part location to create a stock movement for.

    • Mandatory
    Quantity Decimal The quantity to move.

    • Mandatory
    UnitId Int64? The business key identifier of the unit to use when performing the stock movement.

    References Units

    • The part unit that is used for stock balance by default
    WarehouseId Int64 The business key identifier of the warehouse to create the stock movement for.

    References Warehouses

    • Mandatory
    Reason SetReason The reason to set for the stock movement.

    • Mandatory (If reason is required)
    CodingRows SetProductGroupCodingRow[] The coding to set for the stock movement
    Introduced in version 2.36
    SerialNumberFromValue String The first serial number for the arrived quantity in the stock movement.
    Individual serial numbers will be generated starting from this value.
    If using a non-numeric value, only one serial number can be processed, consider using "SerialNumberPrefix"

    • Mandatory (When part is of traceability type serialnumber)
    Introduced in version 2.51
    SerialNumberPrefix String The prefix for the generated serial numbers.
    Introduced in version 2.51
    BatchNumber String The batch number for the part in the stock movement.
    A new batch number will created if the provided does not exist.

    • Mandatory (When part is of traceability type batch and ProductRecordId in PartLocationInfoKey is not set)
    Introduced in version 2.51
    BatchChargeNumber String The batch charge number for the part in the stock movement.
    Introduced in version 2.51
    ActualReportingDate DateTimeOffset? The actual reporting date to set for the stock movement.
    Introduced in version 23.3

    Example

    {
      "PartId": 0,
      "PartLocationKey": null,
      "Quantity": 0.0,
      "UnitId": null,
      "WarehouseId": 0,
      "Reason": null,
      "CodingRows": null,
      "SerialNumberFromValue": null,
      "SerialNumberPrefix": null,
      "BatchNumber": null,
      "BatchChargeNumber": null,
      "ActualReportingDate": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB