NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Payment Item → Insert or update record

AI-generated

Summary

Insert or update a Payment Item record in NetSuite by specifying its external identifier and various optional fields including accounts, class, custom form, dates, descriptions, and custom fields, with support for asynchronous execution and validation settings.

Inputs

  • Id (required) — The external identifier of the Payment Item record to insert or update.
  • Additional Fields — Optional fields to specify on the Payment Item such as account, class, custom form, department, description, display name, external ID, inactive flag, subsidiaries, payment method, translations, and related settings.
  • Custom Fields — List of custom fields to set on the Payment Item, including field names, types, and values.
  • Debug Mode — Whether to include full request and response information in the operation output.

Output shape

a single JSON object representing the inserted or updated Payment Item record.

The operation uses the HTTP PUT method on the endpoint /paymentItem/{id} where {id} is the external ID provided. Optional headers allow setting asynchronous execution and validation strictness. If Debug Mode is enabled, the output includes full request and response details.

Examples

Example 1: Insert a Payment Item with required Id and description

Set 'Id' to the external identifier and provide an optional 'description' in Additional Fields.

Example 2: Update a Payment Item with custom fields and asynchronous execution

Set 'Id' to the external identifier, configure custom fields as needed, and enable asynchronous execution using the 'Prefer' option with value 'respond-async'.

Discussion