NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Adjustment → Insert record

AI-generated

Summary

Create a new NetSuite inventory adjustment via the REST API.

Inputs

  • isDebugMode — Include full request and response details in the output for troubleshooting.
  • tranDate — Transaction date for the adjustment; defaults to today if omitted.
  • memo — Optional memo that appears on registers or reports.
  • location — Location against which the adjustment is made (provides internal or external identifier).
  • inventory.items — List of inventory line items. Each item supports fields such as item ID, quantity changes, unit cost, custom class, department, subsidiary, etc.
  • location — Location for the adjustment.
  • customFields — Optional custom field entries; each field must have a name and a value matching its type.
  • other optional InventoryAdjustment fields — Additional fields like postingPeriod, customer, department, account, etc., can be supplied similarly using internal or external identifiers.

Output shape

JSON object representing the created inventory adjustment record (or, if debug mode is enabled, an object containing the full HTTP request and response).

If the request fails, NetSuite returns an error object; the node will propagate that as a workflow error unless debug mode captures it.

Examples

Example 1: Create a simple inventory adjustment of 5 units for item ‘Pencil’ at location ‘Warehouse A’.

Set tranDate to today, memo to "Stock correction", location ID="123", inventory.items[0].item.id="456", inventory.items[0].adjustQtyBy=5.

Example 2: Add a custom field to the adjustment.

Provide a custom field with fieldName="warrantyPeriod", fieldType="number", value=24 alongside the normal inventory fields.

Example 3: Enable debugging to inspect API calls.

Check Debug Mode; the node will output request URL, headers, body, and the full response.

Discussion