NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Report → Remove record

AI-generated

Summary

Delete an Expense Report identified by its internal ID via NetSuite REST.

Inputs

  • id (required) — Internal identifier of the expense report to delete.
  • isDebugMode — Include full request and response information in the output when set to true.
  • Prefer — Set to ‘respond-async’ to execute the request asynchronously; ignored for synchronous requests.
  • X-NetSuite-Idempotency-Key — A unique idempotency key for asynchronous requests, ensuring the request runs only once; ignored for synchronous requests.

Output shape

A single record containing the NetSuite REST API response (normally empty body for DELETE). If Debug Mode is enabled, the output also includes the full request and response objects.

When the API returns no body, the record will contain only status code and headers or an empty object. Errors are surfaced as workflow errors, not in the output.

Examples

Example 1: Delete a specific expense report by ID

Resource: Expense Report; Operation: Remove record; Debug Mode: off; Id: 12345.

Example 2: Delete expense report asynchronously with idempotency

Resource: Expense Report; Operation: Remove record; Debug Mode: on; Id: 67890; Additional Fields → Prefer: respond-async; X-NetSuite-Idempotency-Key: '550e8400-e29b-41d4-a716-446655440000'.

Example 3: Delete expense report without debug, using defaults

Resource: Expense Report; Operation: Remove record; Debug Mode: off; Id: 11111.

Discussion