Assembly Item

An assembly item is an inventory item made up of several components but identified as a single item. Assemblies are manufactured by combining raw materials that you stock.

For more information, see Assembly Items.

This record is not a subrecord.

The REST API Browser includes information about the field names and field types of the assembly item record, and about the HTTP methods, request parameters, and operations available to this record.

For details, see the REST API Browser’s assembly item reference page.

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

Record ID

The record ID for the assembly item REST record is assemblyItem.

Prerequisites

You must enable the Assemblies feature before you can use this record through REST web services.

Inaccessible Elements

The following sublists are not accessible through REST web services:

  • Quantity Pricing Discount/Levels (quantitypricingdiscount, quantitypricinglevel)

  • Item Translations subtab (translations)

Elements with Different Functionality

The following sublists have different functionality through REST web services:

Manufacturing > Bills of Materials > Master Default field is not controllable through REST.

Code Samples

Get Record Metadata

              GET https://<HOST>/services/rest/record/v1/metadata-catalog/assemblyItemHeader: Accept: application/swagger+json 

            

Get Record

              GET https://<HOST>/services/rest/record/v1/assemblyItem/<ID>?expandSubResources=true 

            

Update Record

              PATCH 
https://<HOST>/services/rest/record/v1/assemblyItem/<ID>
Header: Content-Type: application/json
Body:
 {
       "itemId": "Updated item name", 
      "upcCode: "123456"
} 

            

Update Item Price when all Related Features are Enabled

              PATCH https://<HOST>/services/rest/record/v1/assemblyItem/<ID>/price/currencypage=1,pricelevel=1,quantity=10
Header: Content-Type: application/json
Body:
{
    "price": 10
} 

            

Update Bill of Materials/Default for Location

              PATCH https://<HOST>/services/rest/record/v1/assemblyItem/<ID>
Header: Content-Type: application/json
Body:
{ "billOfMaterials": { "items": [ { "billOfMaterials": { "id": 14 } "defaultForLocation": { "items": [ { "id": 5 }, { "id": 6 } ] ] ] ] ] ] 

            

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