Create
Command, Introduced in version 2.18
POST https://localhost:8001/sv/001.1/api/v1/Sales/CustomerOrders/Create
Creates a new customer order.
Returns EntityCommandResponse
The root entity id of the response is the business key identifier of the created customer order. References CustomerOrders
The entity id of the response is the same as the root entity id.
Required permission
Create new customer order
Properties
Name | Type | Summary | Introduced in |
---|---|---|---|
CustomerId | Int64 | The business key identifier of the customer to create a customer order for. References Customers |
|
OrderNumber | String | The order number to set on the new customer order.
|
|
OrderTypeId | Int64? | The business key identifier of the order type to set for the new customer order. References CustomerOrderTypes
|
|
WarehouseId | Int64? | The business key identifier of the warehouse to create the customer order for. References Warehouses
|
|
ProjectId | Int64? | The business key identifier of the project to associate the customer order with. References Projects |
Introduced in version 2.40 |
Rows | AddRow[] | Specifies the customer order rows to add to the new customer order.
|
|
IsStockOrder | Boolean | Specifies if the customer order is a stock order. |
Introduced in version 2.41 |
Example
{
"CustomerId": 0,
"OrderNumber": null,
"OrderTypeId": null,
"WarehouseId": null,
"ProjectId": null,
"Rows": null,
"IsStockOrder": false
}