BOM

A Bill of Materials, or BOM, record exposes a Bill of Materials, or BOM, to REST web services.

This record:

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

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

Record IDs

The record ID for a BOM REST record is bom.

Prerequisites

You must enable the Advanced Bill of Materials feature before you can use this record through REST web services.

Code Samples

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

Creating a BOM Using a POST Request

              POST  
https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/bom
{
   "name": "bom rest 1",
   "availableForAllAssemblies": true,
   "availableForAllLocations": true,
   "subsidiary": {
       "items": [
           {
               "id": "5"
           }
       ]
   }
} 

            

Retrieving a BOM Using a GET Request

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

            

Updating a BOM Using a PATCH Request

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/bom/4
{
   "assembly": {
       "items": [
           {
              "assembly": {"id": 115},
              "masterDefault": true
           },
           {
                "assembly": {"id": 67},
                "defaultforlocation":  {
                    "items": [
                        {
                            "id": "5"
                        },
                        {
                            "id": 8
                        }
                    ]
                }
           }
       ]
   }
} 

            

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