NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Other Charge Purchase Item → Update record

AI-generated

Summary

Update an existing Other Charge Purchase Item record in NetSuite by specifying its internal ID and setting various optional fields to modify the item's properties.

Inputs

  • Id (required) — Internal identifier of the Other Charge Purchase Item to update.
  • Authentication Method — Choose between OAuth1 or OAuth2 authentication methods to authorize the API request.
  • Additional Fields — Optional collection of fields to update on the Other Charge Purchase Item, such as Allocation Price, Amortization Period, Bill Price Variance Account, Class, Currency, Description, Display Name, Expense Account, External ID, Inactive status, Purchase Price, Subsidiary, Vendor, and many other customizable properties relevant to the NetSuite record.
  • Custom Fields — Optional list of custom fields to include in the update, supporting various data types like boolean, dateTime, multiSelect, number, select, and string with corresponding values.
  • Debug Mode — Boolean flag to include full request and response information in the output for debugging purposes.
  • Prefer — Request preference header to indicate server behavior, such as executing the request asynchronously (respond-async).
  • X - NetSuite - Idempotency - Key — Optional user-defined unique idempotency key for asynchronous requests to ensure the request executes only once.
  • X - NetSuite - Property Name Validation — Optional setting to control strictness of property name validation: Error, Warning, or Ignore.
  • X - NetSuite - Property Value Validation — Optional setting to control strictness of property value validation: Error, Warning, or Ignore.

Output shape

a JSON object representing the updated Other Charge Purchase Item record as returned by the NetSuite REST API

The output includes the updated record fields as acknowledged by NetSuite. If Debug Mode is enabled, additional request and response details will be included. The operation requires the Internal ID of the record to update. Custom fields, if included, must match the field names and types as defined in the NetSuite account. Asynchronous request support is offered via the Prefer header and idempotency key.

Examples

Example 1: Update an Other Charge Purchase Item's description and mark it inactive using OAuth1 authentication.

Set Id to the internal ID of the item to update, set Additional Fields to include new description and isInactive true, set Authentication Method to oauth1, and enable Debug Mode if full request details are needed in output.

Links

Discussion