NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Expense Category → Remove record

AI-generated

Summary

Delete an Expense Category record in NetSuite by its internal identifier.

Inputs

  • id (required) — Internal identifier of the Expense Category record to delete.
  • isDebugMode — Optionally include full request and response details in the output for debugging.
  • authMethod — Choose authentication method for the request, either OAuth1 or OAuth2.
  • additionalFields — Optional settings including 'Prefer' header for asynchronous execution and 'X-NetSuite-Idempotency-Key' for idempotency control in async requests.

Output shape

a JSON object representing the HTTP response status and optionally full request and response data if debug mode is enabled.

If 'Debug Mode' is enabled, the output includes detailed request and response information; otherwise, it contains minimal confirmation or error details. The operation performs a synchronous or asynchronous deletion depending on the 'Prefer' header in 'Additional Fields'. Errors are returned if the record ID is invalid or deletion fails.

Examples

Example 1: Delete an Expense Category record synchronously

Set 'Id' to the internal record number, leave 'Prefer' empty for synchronous deletion.

Example 2: Delete using asynchronous request with idempotency key

Set 'Id', set 'Prefer' to 'respond-async', and provide a unique 'X-NetSuite-Idempotency-Key' value to guarantee single execution.

Links

Discussion