NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Number → Remove record

AI-generated

Summary

Delete an Inventory Number record by its internal ID.

Inputs

  • isDebugMode — Include full HTTP request and response information in the output.
  • id (required) — Internal NetSuite identifier of the Inventory Number record to remove.
  • additionalFields — Additional optional HTTP headers.
  • Prefer: Use 'respond-async' to execute the delete asynchronously. In asynchronous mode, NetSuite returns the header 'Preference-applied: respond-async'.
  • X-NetSuite-Idempotency-Key: Supply a UUID to ensure the request is executed only once when using 'respond-async'. Ignored for synchronous deletes.

Output shape

no body — trigger success or failure only (unless debug mode is enabled to return request/response data).

When debug mode is on, the output item will contain fields request and response with the raw HTTP data. The operation itself performs an HTTP DELETE to /inventoryNumber/{id}. If Prefer: respond-async is provided, NetSuite processes the request asynchronously and returns a status code 202 with the Preference-applied header. If the delete is successful, the node completes with no data except the optional debug information.

Examples

Example 1: Standard synchronous delete

Set id to 12345, optional debug mode off. The node will perform a DELETE /inventoryNumber/12345 and return a 200/204 response with no body.

Example 2: Asynchronous delete with idempotency

Set id to 67890, enable Prefer: respond-async and provide a UUID under X-NetSuite-Idempotency-Key. The node will return a 202 status and the Preference-applied header, ensuring the request is performed only once.

Example 3: Debugging a delete operation

Set id to 54321 and tick Debug Mode. The output will contain the full HTTP request and response JSON, useful for troubleshooting.

Discussion