NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Category → Remove record

AI-generated

Summary

Delete a specific Expense Category record by its internal id, optionally performing the request asynchronously and optionally including idempotency protection.

Inputs

  • id (required) — Internal identifier of the Expense Category to remove.
  • Prefer — Optional header to request asynchronous processing by setting the value to "respond-async".
  • X-NetSuite-Idempotency-Key — Optional unique idempotency key (UUID format) used when the request is processed asynchronously to guarantee single execution.
  • Debug Mode — When enabled, the node outputs the full request and response data for troubleshooting.

Output shape

no body — success/failure only (in non‑debug mode)

If the operation succeeds, the node returns an empty JSON object. In debug mode, the output contains detailed request and response information. The request may return standard HTTP status codes; an asynchronous delete will return a 202 status with a "Preference‑applied: respond-async" header and an Execution ID in the response body.

Examples

Example 1: Synchronously delete a single expense category

Set "Id" to the desired internal identifier, leave "Prefer" empty and disable Debug Mode.

Example 2: Delete asynchronously with idempotency

Set "Id" to the target category id, set "Prefer" to "respond-async", add a UUID in "X-NetSuite-Idempotency-Key", enable Debug Mode to see execution metadata.

Example 3: Use Debug Mode to inspect headers and payload

Enable Debug Mode, perform a delete, then review the output for the exact HTTP request sent and the server’s response.

Discussion