Inventory Item

Inventory item records are used to track information about items for which you maintain a stock.

For more information, see Items.

This record is not a subrecord.

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

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

Record ID

The record ID for the inventory item REST record is inventoryItem.

Prerequisites

There are no prerequisites for using this record in REST.

Limitations

An inventory item REST record does not show Quantity Pricing Discount/Levels (quantitypricingdiscount, quantitypricinglevel) or the Item Translations subtab (translations).

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.

Code Sample

The following example shows how to get record metadata for an inventory item.

Get Record Metadata:

            GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog/inventoryItemHeader: Accept: application/swagger+json 

          

Get Record:

            GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryItem/<ID>?expandSubResources=true 

          

Update Record:

            PATCH https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryItem/<ID>
Header: Content-Type: application/json
Body:
{
   "itemId": "Updated item name",
   "upcCode: "123456"
} 

          

Update Item Price When Related Features are Enabled:

            PATCH
https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryItem/<ID>/price/currencypage=1,pricelevel=1,quantity=10
Header: Content-Type: application/json
Body:
{
   "price": 10
} 

          

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