Show / Hide Table of Contents

    AddRow

    Command, Introduced in version 2.30

    POST https://localhost:8001/sv/001.1/api/v1/Purchase/PurchaseOrders/AddRow
    

    Adds row to purchase order.

    Returns EntityCommandResponse

    The root entity id of the response is the business key identifier of the purchase order that the row was added to. References PurchaseOrders

    The entity id of the response is the business key identifier of the added purchase order row. References PurchaseOrderRows

    Required permission

    Modify purchase order
    

    Properties

    Name Type Summary Introduced in
    PurchaseOrderId Int64 The business key identifier of the purchase order to add a row to.

    References PurchaseOrders

    • Mandatory
    PartId Int64? The business key identifier of the part to set for the row.

    References Parts
    AdditionalPartCode String The additional part code to set for the row.

    • Max length is 20
    PartDescription String The part description to set for the row.

    • Max length is 80
    • The part description by default
    TextRowData String The text row data to set for the row.

    • Max length is 0
    OrderedQuantity Decimal The quantity to set for the row in the part's purchase order unit.

    • Mandatory
    Price Decimal? The unit price to set for the row.

    • Calculated by MONITOR by default
    SetupPrice Decimal? The setup price to set for the row.

    • Calculated by MONITOR by default
    WarehouseId Int64? The business key identifier of the warehouse to set for the row.

    References Warehouses

    • Same as purchase order by default
    OrderRowType Int32 The order row type to set for the row.

    • Part: 1
    • Additional: 2
    • Sum: 3
    • FreeText: 4

    • Mandatory
    DeliveryDate DateTimeOffset? The delivery date to set for the row.
    Discount Decimal? The discount to set for the row.

    • Calculated by MONITOR by default
    SubRowContent String Creates a free text row as a child of this row with the specified content if set.

    • Max length is 0
    InsertRowBeforeId Int64? The Id of the order row you want to insert before. If null the row will be added last.

    References PurchaseOrderRows.
    Introduced in version 2.30
    InsertRowAfterId Int64? The Id of the order row you want to insert after. If null the row will be added last.

    References PurchaseOrderRows.
    Introduced in version 2.30
    PartConfigurationSessionId Guid? The id of the part configuration session to apply to the purchase order row.

    This is currently not supported.
    Introduced in version 2.33
    WeightPerUnit Decimal? The weight per unit of the row.
    Introduced in version 2.36
    RowsGoodsLabel String The goods label to set for the purchase order row.

    • Max length is 80
    Introduced in version 2.46
    CodingRows SetProductGroupCodingRow[] Set coding rows on the purchase order row's coding.

    • Calculated by MONITOR by default
    • References SetProductGroupCodingRow
    Introduced in version 23.6
    PartialQuantities <xref:Monitor.API.Common.Commands.Shared.PartialQuantityValue>[] The partial quantities for the row.
    Introduced in version 22.9
    PriceLockedFromAutomaticChanges Boolean? If the rows price is locked from automatic changes.

    • false by default
    Introduced in version 24.2
    RevisionId Int64? The business key identifier of the revision to set for the row.

    • The active revision on the part by default
    Introduced in version 24.6
    RowNotes String The note of the purchase order row.

    • Max length is 100
    Introduced in version 24.9
    StatisticalGoodsCodeId Int64? The business key identifier of the row's statistical goods code.

    References
    Introduced in version 25.1

    Example

    {
      "PurchaseOrderId": 0,
      "PartId": null,
      "AdditionalPartCode": null,
      "PartDescription": null,
      "TextRowData": null,
      "OrderedQuantity": 0.0,
      "Price": null,
      "SetupPrice": null,
      "WarehouseId": null,
      "OrderRowType": 0,
      "DeliveryDate": null,
      "Discount": null,
      "SubRowContent": null,
      "InsertRowBeforeId": null,
      "InsertRowAfterId": null,
      "PartConfigurationSessionId": null,
      "WeightPerUnit": null,
      "RowsGoodsLabel": null,
      "CodingRows": null,
      "PartialQuantities": null,
      "PriceLockedFromAutomaticChanges": null,
      "RevisionId": null,
      "RowNotes": null,
      "StatisticalGoodsCodeId": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB