Create a sales order using REST Web Services

In the Basic Sales Order example, you can create a sales order without filling in the details of the other fields.

The system automatically calculates many fields in the sales order based on the value of the entity field.

The transaction Date (or tranDate in REST) is the creation date of the sales order. If you leave the field blank, it defaults to the current date.

        POST {{REST_SERVICES}}/record/v1/salesOrder 

A basic sample code for creating sales order has been added below:

        {
"entity": {
    "id": "110"
},
"item": {
    "items": [
        {
            "item": {
                "id": 98
            },
            "quantity": 1
        }
    ]
}

}

Leave a comment

Your email address will not be published. Required fields are marked *