NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Invoice → Remove record

AI-generated

Summary

Deletes a NetSuite Invoice by its internal ID, optionally invoking the request asynchronously.

Inputs

  • id (required) — The internal numeric identifier of the Invoice to delete.
  • isDebugMode — When true, the node returns the full HTTP request and response data for troubleshooting.
  • Prefer — If set to "respond-async", the operation is processed asynchronously (the NetSuite server returns a 202 status and a Preference-applied: respond-async header).
  • X-NetSuite-Idempotency-Key — A UUID that identifies the asynchronous request, ensuring it is executed only once. Ignored if the request is synchronous.

Output shape

raw NetSuite response (typically an empty body on success or an object with error details). When Debug Mode is enabled, the output contains the full request data and the raw response.

The API returns a 204 No Content on successful synchronous deletes. Asynchronous deletes return a 202 status; the server may provide a location header for status polling. Errors are returned as standard HTTP error responses.

Examples

Example 1: Delete Invoice with ID 12345

Set Id: 12345. Leave all optional fields empty.

Example 2: Delete Invoice asynchronously with idempotency key

Set Id: 98765. In Additional Fields, select Prefer = "respond-async" and enter X-NetSuite-Idempotency-Key: "123e4567-e89b-12d3-a456-426614174000".

Example 3: Delete Invoice with debug output

Set Id: 11111. Enable Debug Mode. No preference headers.

Discussion