NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Adjustment → Remove record

AI-generated

Summary

Delete an inventory adjustment record by its internal ID, optionally requesting async handling and providing an idempotency key.

Inputs

  • isDebugMode — If true, the node returns the full HTTP request and response, useful for troubleshooting.
  • id (required) — The internal numeric identifier of the inventory adjustment to remove.
  • additionalFields.Prefer — Set to 'respond-async' to have NetSuite execute the delete asynchronously; otherwise the call is synchronous.
  • additionalFields.X-NetSuite-Idempotency-Key — A UUID used for idempotent asynchronous requests; ignored for synchronous deletes.

Output shape

If debug mode is disabled, returns an empty object or a simple status object indicating success. When debug mode is enabled, returns the complete request and response data.

The node captures NetSuite’s HTTP status code. For synchronous deletes, the response typically has no body (204 No Content). For asynchronous deletes, the response contains a 202 status with a 'Preference-applied: respond-async' header and may include a URL to follow for status.

Examples

Example 1: Delete a single inventory adjustment

isDebugMode=false, id=12345

Example 2: Request asynchronous deletion

isDebugMode=false, id=12345, additionalFields.Prefer=respond-async

Example 3: Delete with idempotency key

isDebugMode=false, id=12345, additionalFields.X-NetSuite-Idempotency-Key=550e8400-e29b-41d4-a716-446655440000

Discussion