Manufacturing Routing

A manufacturing routing record exposes a manufacturing routing to REST web services.

This record:

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

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

Record IDs

The record ID for a manufacturing routing REST record is manufacturingRouting.

Prerequisites

You must enable the Manufacturing Routing and Work Center features before you can use this record through REST web services.

Additional Details

When you use a POST request to create a Manufacturing Routing, the routingComponent machine is indexed by the "lineNumber" fieldID. When you update the fieldID, the routingComponent machine is indexed by the "component" fieldID.

Code Samples

The following samples show common use cases for manufacturing routings. The example ID is 4.

Creating a Manufacturing Routing Using a POST Request

The following code sample shows how to create a manufacturing routing with routing steps and set a value for the operation on components using the operation sublist.

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRouting
{ "name": "routing via rest", "billOfMaterials": {"id": 12}, "subsidiary": {"id": 5}, "location": { "items": [ {"id": 5} ] }, "routingstep": { "items": [ { "operationsequence": 10, "operationName": "10", "manufacturingWorkCenter": {"id": 40}, "manufacturingCostTemplate": {"id": 4}, "setupTime": 5, "runRate": 10 }, { "operationsequence": 20, "operationName": "20", "manufacturingWorkCenter": {"id": 40}, "manufacturingCostTemplate": {"id": 4}, "setupTime": 5, "runRate": 10, "lagType": {"id": "time"}, "lagAmount": 9 } ]}, "routingComponent": { "items": [ { "lineNumber": 1, "operationSequenceNumber": 10 }, { "lineNumber": 2, "operationSequenceNumber": 20 } ] } }
{ "itemId": " Other Charge for Purchase", "displayName": "displayName", "upcCode": "code" } 

            

Retrieving a Manufacturing Routing Using a GET Request

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRouting/4 

            

Updating a Manufacturing Routing Using a PATCH Request

The following code sample shows how to edit a component line using the operation sublist. The component line ID is 7.

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRouting/4/routingComponent/7
{ "operationsequenceNumber": 10
} 

            

The following code sample shows how to edit the setup time on the routing step sublist.

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRouting/4/routingStep/10
{ "setupTime": 25
} 

            

Deleting a Manufacturing Routing Using a DELETE Request

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRouting/4 

            

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices