NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Adjustment → Insert or update record

AI-generated

Summary

Update or create an inventory adjustment record in NetSuite via a PUT request to /inventoryAdjustment/{id}.

Inputs

  • Id (required) — External identifier of the inventory adjustment to update.
  • Additional Fields — Optional inventory adjustment properties such as account, inventory items, date, memo, status, and other standard fields.
  • Custom Fields — Optional custom fields to attach to the record, specified by field name and type.
  • Debug Mode — If true, the node returns full HTTP request and response information in the output.

Output shape

A JSON object representing the created or updated inventory adjustment record returned by NetSuite, or a debug envelope containing request/response data if Debug Mode is enabled.

The returned record follows NetSuite's REST representation for inventory adjustments and includes fields such as id, tranId, status, tranDate, inventory, etc. Pagination is not applicable; the full record is returned in a single item. In debug mode, the output contains requestBody, responseBody, responseHeaders, and other raw request/response details.

Examples

Example 1: Update an existing inventory adjustment with a new memo and change the quantity of an item

Id: '12345' (external ID)\nAdditional Fields: memo: 'Adjusted for audit'\n inventory: items: [ {item: {id: '678'}, adjustQtyBy: 5} ]

Example 2: Create a new inventory adjustment and view the full request and response

Id: 'new-123'\nDebug Mode: true\nAdditional Fields: date: '2024-08-01', inventory: items: [ {item: {id: '101'}, adjustQtyBy: -3} ]

Example 3: Add a custom field to an inventory adjustment

Id: 'abc123'\nCustom Fields: [{fieldName: 'special_instructions', fieldType: 'string', value: 'Handle with care'}]\nAdditional Fields: memo: 'Custom field added'

Discussion