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
|
|
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.
|
|
PartDescription | String | The part description to set for the row.
|
|
TextRowData | String | The text row data to set for the row.
|
|
OrderedQuantity | Decimal | The quantity to set for the row in the part's purchase order unit.
|
|
Price | Decimal? | The unit price to set for the row.
|
|
SetupPrice | Decimal? | The setup price to set for the row.
|
|
WarehouseId | Int64? | The business key identifier of the warehouse to set for the row. References Warehouses
|
|
OrderRowType | Int32 | The order row type to set for the row.
|
|
DeliveryDate | DateTimeOffset? | The delivery date to set for the row. |
|
Discount | Decimal? | The discount to set for the row.
|
|
SubRowContent | String | Creates a free text row as a child of this row with the specified content if set.
|
|
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.
|
Introduced in version 2.46 |
CodingRows | SetProductGroupCodingRow[] | Set coding rows on the purchase order row's coding.
|
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.
|
Introduced in version 24.2 |
RevisionId | Int64? | The business key identifier of the revision to set for the row.
|
Introduced in version 24.6 |
RowNotes | String | The note of the purchase order row.
|
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
}