NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Item → Insert or update record

AI-generated

Summary

Create or modify an inventory item record by specifying its external identifier and optional fields.

Inputs

  • isDebugMode — If checked, the node returns full HTTP request and response details in the output.
  • id (required) — External identifier of the inventory item to create or update.
  • customFields — Set of custom fields to apply to the inventory item. Each entry specifies the field name, type, and value.
  • additionalFields — Optional standard fields for the inventory item such as price, cost, vendor information, and accounting details.

Output shape

a single record containing the updated inventory item, or a debug envelope when debug mode is enabled

Without debug mode, the node returns the JSON representation of the inventory item as stored in NetSuite. When debug mode is enabled, the output includes the full request that was sent to NetSuite and the raw response received.

Examples

Example 1: Create a new inventory item with basic pricing

isDebugMode: false, id: "ABC123", additionalFields: { price: 75, cost: 40 }

Example 2: Update an existing inventory item cost

id: "ABC123", additionalFields: { cost: 45 }

Example 3: Create/Update with custom field and debug mode

isDebugMode: true, id: "ABC123", customFields: [{ fieldName: "customMark", fieldType: "string", value: "premium" }], additionalFields: { price: 80 }

Discussion