NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Number → Update record

AI-generated

Summary

Update an Inventory Number record in NetSuite by PATCHing /inventoryNumber/{id} with selected fields, optionally including custom fields and debug output.

Inputs

  • Id (required) — Internal NetSuite identifier of the inventory number to update.
  • Debug Mode — If true, the node returns the full API request and response payload in the output for debugging.
  • Additional Fields — Fields of the Inventory Number resource to update (e.g., quantityOnHand, status, expirationDate, etc.). Only fields supplied will be sent.
  • Custom Fields — Optional custom field values to override on the record. Specify field name, type, and value.

Output shape

a single record object representing the updated Inventory Number, including any fields returned by NetSuite. If Debug Mode is true, the output also contains wrapped request and response data.

The node only patches the supplied fields; unspecified fields are left unchanged. If the update fails, an error is thrown. When debug mode is active, the debug information is added as a child object of the main output so other nodes can route it separately.

Examples

Example 1: Increase quantity on hand for an existing inventory number

Id: 12345 ; Additional Fields: quantityOnHand: 200 ; Debug Mode: false

Example 2: Change the status of a serial number to ‘used’

Id: 98765 ; Additional Fields: status: "used" ; Debug Mode: false

Example 3: Set a custom field after update

Id: 55555 ; Additional Fields: quantityOnHand: 50 ; Custom Fields: { fieldName: "custField1", fieldType: "string", value: "Example" } }

Discussion