Show / Hide Table of Contents

    AddRow

    Command, Introduced in version 2.18

    POST https://localhost:8001/sv/001.1/api/v1/Sales/Quotes/AddRow
    

    Adds a row to a quote.

    Returns EntityCommandResponse

    The root entity id of the response is the business key identifier of the quote that the row was added to. References Quotes

    The entity id of the response is the business key identifier of the added quote row. References QuoteRows

    Required permission

    Modify quote
    

    Properties

    Name Type Summary Introduced in
    QuoteId Int64 The business key identifier of the quote to add a row to.

    References Quotes

    • Mandatory
    PartId Int64? The business key identifier of the part to set on the row. Only applies to part and
    additional rows.

    References Parts
    PartConfigurationSessionId Guid? The session id of the part configuration to apply for the quote row.
    Introduced in version 2.33
    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. Only applies for part and additional rows.

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

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

    • Mandatory
    Price Decimal? The price to set for the row in the quote currency.

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

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

    References Warehouses

    • Same warehouse as the quote by default
    OrderRowType Int32 The row type to set for the quote row.

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

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

    • Calculated by MONITOR by default
    SubRowContent String Creates a new free text sub row of this row with the specified content as text row
    data.

    • 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 QuoteRows.
    Introduced in version 2.22
    InsertRowAfterId Int64? The Id of the order row you want to insert after. If null the row will be added last.

    References QuoteRows.
    Introduced in version 2.22
    WeightPerUnit Decimal? The weight per unit of the row.
    Introduced in version 2.36
    RowsGoodsLabel String The goods label of the row
    Introduced in version 2.40
    AlternatePreparationCode String The alternate preparation code of the row
    Introduced in version 2.40
    UnitId Int64? The business key identifier of the unit to set for the row.

    • References Units
    • Defaults to the default unit usage for customer order on the part by default
    Introduced in version 2.48
    ShowFreeTextIn Int32? Specifies which documents the free text data of the row should be projected on.

    • None: 0
    • Quote: 1
    • Acknowledgement: 2
    • DeliveryNote: 4
    • Invoice: 8
    • ProFormaInvoice: 16

    • Calculated by MONITOR by default
    Introduced in version 2.55
    CodingRows SetProductGroupCodingRow[] Set coding rows on the quote row's coding.

    • Calculated by MONITOR by default
    • References SetProductGroupCodingRow
    Introduced in version 2.55
    PartConfigurationIdInRemoteCompany Int64? The business key identifier of the row's part configuration in the remote company.

    • References PartConfigurations
    Introduced in version 23.2
    RemotePartConfigurationRows SetRemotePartConfigurationRow[] The remote configuration result price definition rows that belong to the quote row. Should only be specified when PartConfigurationIdInRemoteCompany is provided.

    • References SetRemotePartConfigurationRow
    Introduced in version 24.8
    PriceLockedFromAutomaticChanges Boolean? If the rows price is locked from automatic changes.

    • Calculated by MONITOR 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
    SumRowDetail SumRowDetail The sum row details to set for the row.

    • Mandatory (If the row type is sum)
    Introduced in version 24.6
    StatisticalGoodsCodeId Int64? The business key identifier of the row's statistical goods code.

    References
    Introduced in version 25.1

    Example

    {
      "QuoteId": 0,
      "PartId": null,
      "PartConfigurationSessionId": 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,
      "WeightPerUnit": null,
      "RowsGoodsLabel": null,
      "AlternatePreparationCode": null,
      "UnitId": null,
      "ShowFreeTextIn": null,
      "CodingRows": null,
      "PartConfigurationIdInRemoteCompany": null,
      "RemotePartConfigurationRows": null,
      "PriceLockedFromAutomaticChanges": null,
      "RevisionId": null,
      "SumRowDetail": null,
      "StatisticalGoodsCodeId": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB