Sales Order

A sales order record exposes a sales order to REST web services. This record has one subrecord: salesOrderItem.

To access this record in NetSuite, go to Transactions > Sales > Enter Sales Order.

Note:

REST web services do not support legacy tax features. To work with taxation through REST web services, you must have the SuiteTax feature enabled. For more information about using SuiteTax, see SuiteTax.

The REST API Browser includes information about the field names and field types of the sales order record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s sales order reference page.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for a sales order REST record is salesorder.

Usage Notes

When you transform a sales order into an item fulfillment, you must include the inventoryLocation field in the request body. For more information, see Transforming Sales Orders with the Intercompany Cross-Subsidiary Feature

            POST /record/v1/salesOrder/<source Sales Order id>/!transform/itemFulfillment
{
        "inventoryLocation": {
                "id" : <location id>
        }
...
} 

          

You can create a sales order with an ItemGroup item but it is not possible to change or update the quantity, rate, and amount value of the member items using the create request. You can only update the quantity, rate, and amount values using the PATCH request.

Code Samples

These samples show common use cases for sales orders. The example ID is 1504.

A Basic GET Request of a Sales Order

              GET: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/salesorder/1504 

            

Updating a Sales Order

              PATCH: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/salesorder/1504
{"istaxable":false} 

            

Updating the Amount of a Line Item Within a Sales Order

              {
"item": {
"items": [{
"line": 1,
"item": {
"id": 328
},
"amount": 54.0
}]
}
} 

            

Related Topics

General Notices