AddRow
Command, Introduced in version 2.18
POST https://localhost:8001/sv/001.1/api/v1/Sales/CustomerOrders/AddRow
Adds row to customer order.
Returns EntityCommandResponse
The root entity id of the response is the business key identifier of the customer order that the row was added to. References CustomerOrders
The entity id of the response is the business key identifier of the added customer order row. References CustomerOrderRows
Required permission
Modify customer order
Properties
Name | Type | Summary | Introduced in |
---|---|---|---|
CustomerOrderId | Int64 | The business key identifier of the customer order to add a row to. References CustomerOrders
|
|
PartId | Int64? | The business key identifier of the part to set for the row. References Parts |
|
PartConfigurationSessionId | Guid? | The session id of the part configuration to apply for the customer order row. |
Introduced in version 2.33 |
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 either in the unit specified by UnitId or the part's customer 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. |
|
DesiredDeliveryDate | DateTimeOffset? | The desired 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 CustomerOrderRows. |
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 CustomerOrderRows. |
Introduced in version 2.22 |
Dock | String | The dock to set for the row.
|
Introduced in version 2.31 |
DockName | String | The dock name to set for the row.
|
Introduced in version 2.31 |
Storage | String | The storage to set for the row.
|
Introduced in version 2.31 |
KanbanNumber | String | The kanban number to set for the row.
|
Introduced in version 2.31 |
WeightPerUnit | Decimal? | The weight per unit of the row. |
Introduced in version 2.36 |
ShowFreeTextIn | Int32? | The text type to set for the row.
|
Introduced in version 2.35.3 |
CustomerCommitmentLevel | Int32? | The customer commitment level of the row.
|
Introduced in version 2.37 |
SubRows | AddRow[] | Specifies the sub rows of type free text to add to this row.
|
Introduced in version 2.37 |
UnitId | Int64? | The business key identifier of the unit to set for the row. References Units
|
Introduced in version 2.39 |
StandardPrice | NotNullDecimalInput | The standard price for the customer order row.
|
Introduced in version 2.40 |
RowsGoodsLabel | String | The goods label to set for the customer order row.
|
Introduced in version 2.45 |
ReferenceNumberDelivery | String | The delivery reference number to set for the customer order row.
|
Introduced in version 2.45 |
ReferenceNumberManufacturing | String | The manufacturing reference number to set for the customer order row.
|
Introduced in version 2.45 |
AlternatePreparationCode | String | The alternate preparation code to set for the row.
|
Introduced in version 2.46 |
IsIncludedInPaymentPlan | Boolean? | If the customer order row is to be included in payment plan.
|
Introduced in version 2.48 |
CodingRows | SetProductGroupCodingRow[] | Set coding rows on the customer order row's coding.
|
Introduced in version 2.51 |
VatRateId | Int64? | The business key identifier of the row's VAT rate.
|
Introduced in version 2.51 |
SumRowDetail | SumRowDetail | The sum row details to set for the row.
|
Introduced in version 22.4 |
CustomerOrderRowPosition | String | The customer's order row position for the row.
|
Introduced in version 22.6 |
CustomerOrderNumber | String | The customer's order number of the order.
|
Introduced in version 22.6 |
PartConfigurationIdInRemoteCompany | Int64? | The business key identifier of the row's part configuration in the remote company.
|
Introduced in version 23.2 |
RemotePartConfigurationRows | SetRemotePartConfigurationRow[] | The remote configuration result price definition rows that belong to the order row. Should only be specified when PartConfigurationIdInRemoteCompany is provided.
|
Introduced in version 24.8 |
CreateManufacturingOrder | Boolean? | If a manufacturing order linked to this row should be created.
|
Introduced in version 23.6 |
PriceLockedFromAutomaticChanges | Boolean? | If the rows price is locked from automatic changes.
|
Introduced in version 24.2 |
UpdateLinkedOrders | Boolean? | If the orders linked to this customer order should be updated. This have no fuction when used in a create command.
|
Introduced in version 24.4 |
RevisionId | Int64? | The business key identifier of the revision to set for the row.
|
Introduced in version 24.6 |
CreatePurchaseOrder | Boolean? | If a purchase order linked to this row should be created.
|
Introduced in version 24.7 |
StatisticalGoodsCodeId | Int64? | The business key identifier of the row's statistical goods code. References |
Introduced in version 25.1 |
Example
{
"CustomerOrderId": 0,
"PartId": null,
"PartConfigurationSessionId": null,
"AdditionalPartCode": null,
"PartDescription": null,
"TextRowData": null,
"OrderedQuantity": 0.0,
"Price": null,
"SetupPrice": null,
"WarehouseId": null,
"OrderRowType": 0,
"DeliveryDate": null,
"DesiredDeliveryDate": null,
"Discount": null,
"SubRowContent": null,
"InsertRowBeforeId": null,
"InsertRowAfterId": null,
"Dock": null,
"DockName": null,
"Storage": null,
"KanbanNumber": null,
"WeightPerUnit": null,
"ShowFreeTextIn": null,
"CustomerCommitmentLevel": null,
"SubRows": null,
"UnitId": null,
"StandardPrice": null,
"RowsGoodsLabel": null,
"ReferenceNumberDelivery": null,
"ReferenceNumberManufacturing": null,
"AlternatePreparationCode": null,
"IsIncludedInPaymentPlan": null,
"CodingRows": null,
"VatRateId": null,
"SumRowDetail": null,
"CustomerOrderRowPosition": null,
"CustomerOrderNumber": null,
"PartConfigurationIdInRemoteCompany": null,
"RemotePartConfigurationRows": null,
"CreateManufacturingOrder": null,
"PriceLockedFromAutomaticChanges": null,
"UpdateLinkedOrders": null,
"RevisionId": null,
"CreatePurchaseOrder": null,
"StatisticalGoodsCodeId": null
}