NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Pricing Group → Insert or update record

AI-generated

Summary

Insert or update a Pricing Group record in NetSuite by sending a PUT request to /pricingGroup/{id} with specified fields and optionally custom fields.

Inputs

  • Id (required) — The external identifier of the Pricing Group record to insert or update.
  • Additional Fields — Optional parameters to specify additional properties of the Pricing Group such as External ID, Inactive status, Internal ID, Last Modified Date, name, reference name, preferences for request behavior (e.g., asynchronous execution), idempotency key, and validation strictness settings.
  • Custom Fields — A list of custom fields to include in the request, each specifying the field name, type (Boolean, Date Time, Multi Select, Number, Select, or String), and corresponding value.
  • Debug Mode — Whether to include the full request and response details in the output for debugging purposes.

Output shape

a JSON object representing the inserted or updated Pricing Group record, or detailed request/response info if Debug Mode is enabled

If Debug Mode is enabled, output includes complete request and response information. The operation performs a UPSERT (insert or update) by ID; required Id parameter identifies the record. Custom field values must match the selected field type. Additional fields control metadata and request preferences such as asynchronous execution and property validation strictness.

Examples

Example 1: Update a Pricing Group's name and mark it as inactive.

Set the 'Id' to the target record's external ID, specify 'name' and 'isInactive' in Additional Fields, and enable Debug Mode if detailed output is needed.

Discussion