Show / Hide Table of Contents

    Create customer order

    In this example, we will create a simple customer order for a customer using the normal command API endpoint.

    See the reference documentation for more information about the commands used in this example:

    • Create

    Request

    POST /sv/004.1/api/v1/Sales/CustomerOrders/Create HTTP/1.1
    Host: localhost:8001
    Content-Type: application/json
    Cache-Control: no-cache
    Accept: application/json
    X-Monitor-SessionId: {sessionId}
    
    {
      "CustomerId": "42"
    }
    

    Response

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
      "CommandName": "CreateCustomerOrder",
      "RootEntityId": "15851239023",
      "EntityId": "15851239023",
      "Data": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB