NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Payment Item → Remove record

AI-generated

Summary

Delete a Payment Item record by its internal identifier from NetSuite using the REST API, optionally requesting asynchronous execution and including idempotency key for asynchronous requests.

Inputs

  • Id (required) — The internal identifier of the Payment Item record to delete.
  • Debug Mode — Whether to include the full request and response information in the output for debugging purposes.
  • Authentication Method — The authentication method to use for the request; options are OAuth1 (default) or OAuth2.
  • Additional Fields — Optional parameters such as 'Prefer' to request asynchronous processing ('respond-async'), and 'X-NetSuite-Idempotency-Key' to ensure request idempotency for asynchronous calls.

Output shape

An object representing the deletion response information from NetSuite, which may include status or debug details depending on configuration.

If 'Debug Mode' is enabled, the output includes full HTTP request and response data. Using the 'Prefer' header with value 'respond-async' triggers asynchronous operation processing and returns confirmation headers. The 'X-NetSuite-Idempotency-Key' is only effective with asynchronous requests to prevent repeated processing.

Examples

Example 1: Remove a Payment Item synchronously using OAuth1 authentication, specifying the record Id.

Set 'Id' to the target Payment Item internal id; keep default authentication method OAuth1; do not enable debug mode or additional fields.

Example 2: Remove a Payment Item asynchronously with idempotency key and OAuth2 authentication.

Set 'Id' for the Payment Item, select 'OAuth2' as authentication, set 'Prefer' to 'respond-async', provide a UUID string in 'X-NetSuite-Idempotency-Key' under Additional Fields; optionally enable debug mode to capture request/response details.

Links

Discussion