Show / Hide Table of Contents

    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.

    • Generated from number series and order type by default
    OrderTypeId Int64? The business key identifier of the order type to set for the new
    customer order.

    References CustomerOrderTypes

    • Last used order type by default
    WarehouseId Int64? The business key identifier of the warehouse to create the customer
    order for.

    References Warehouses

    • Current warehouse by default
    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.

    • None by default
    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
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB