NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Coupon Code → Remove record

AI-generated

Summary

Delete a NetSuite coupon code by its internal ID.

Inputs

  • id (required) — Internal identifier of the coupon code to delete.
  • isDebugMode — Include full request and response info in the output.
  • Prefer — Client preference; set to 'respond-async' to perform the deletion asynchronously.
  • X-NetSuite-Idempotency-Key — Unique ID for idempotent asynchronous requests; ignored for synchronous deletes.

Output shape

no body — success/failure only

If Debug Mode is enabled, the node returns an object containing the raw request and response data. For asynchronous deletes, the operation returns a 202 status with the custom header 'Preference-applied: respond‑async' and no response body. The node signals failure through the workflow's error handling, not through the output body.

Examples

Example 1: Delete a coupon code synchronously

id = 12345

Example 2: Delete a coupon code asynchronously with idempotency key

id = 12345, Additional Fields → Prefer: 'respond‑async', X‑NetSuite‑Idempotency‑Key: '550e8400-e29b-41d4-a716-446655440000'

Example 3: Delete with debug information

id = 12345, Debug Mode = true

Discussion