NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Purchase Requisition → Remove record

AI-generated

Summary

Delete a Purchase Requisition record in NetSuite by its internal Id.

Inputs

  • Id (required) — The internal identifier of the Purchase Requisition record to delete.
  • Debug Mode — Enable to include full request and response details in the operation output.
  • Additional Fields — Optional parameters to customize the delete request, including 'Prefer' header (e.g., 'respond-async' for asynchronous execution) and 'X-NetSuite-Idempotency-Key' to ensure idempotency of asynchronous requests.

Output shape

a single record containing the response from the NetSuite REST API about the delete action, optionally including debug information if enabled

If 'Debug Mode' is enabled, the output includes complete request and response details. Use the 'Prefer' field to make asynchronous delete requests, receiving a preference acknowledgment in the response. Errors are returned in the output if the deletion fails.

Examples

Example 1: Remove a Purchase Requisition synchronously by specifying its Id.

Set 'Id' to the Purchase Requisition's internal id, 'Debug Mode' off, and leave 'Additional Fields' empty to perform a straightforward deletion.

Example 2: Remove a Purchase Requisition asynchronously.

Set 'Id' to the Purchase Requisition's internal id, set 'Prefer' in 'Additional Fields' to 'respond-async', and optionally provide a UUID string in 'X-NetSuite-Idempotency-Key' for idempotency.

Discussion