NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Number → Insert record

AI-generated

Summary

Insert a new Inventory Number record in NetSuite via a POST request, optionally adding standard or custom fields.

Inputs

  • Debug Mode — Include full HTTP request and response data in the output.
  • additionalFields — Optional standard fields for the inventory number such as quantityOnHand, expirationDate, units, status, stock unit, and sub‑collections for inventory balance, available quantities, and custom identifiers. All sub‑values are optional.
  • customFields — Optional custom fields to add to the record. Provide the field name, type, and value. Multiple entries can be added.

Output shape

a single record containing the fields returned by NetSuite for the newly created Inventory Number, including system-generated identifiers such as id, externalId, and any other populated fields.

When Debug Mode is true, the output includes an additional object with the raw HTTP request and response. The operation does not return a list; it returns the created record as a single item. Errors are propagated as workflow errors.

Examples

Example 1: Create a simple inventory number with quantity on hand

Debug Mode: off; additionalFields: inventoryNumber='ABC123', quantityOnHand=100; no custom fields.

Example 2: Create an inventory number with expiration date and units

Debug Mode: off; additionalFields: inventoryNumber='ABC123', quantityOnHand=50, expirationDate='2025-12-31', units='EA'; no custom fields.

Example 3: Create an inventory number with a custom field 'Location Code'

Debug Mode: off; additionalFields: inventoryNumber='ABC123', quantityOnHand=20; customFields: [{fieldName:'Location Code', fieldType:'String', value:'LOC001'}].

Discussion