NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Customer Category → Insert or update record

AI-generated

Summary

Updates or creates a NetSuite customer category record. Required: external identifier. Method: PUT /customerCategory/{id}.

Inputs

  • id (required) — External identifier for the customer category record.
  • name — Name of the customer category. Appears in lists that include this record.
  • externalId — External ID for the record.
  • isInactive — Check to remove all references to this record from your account; can be reactivated at any time.
  • lastModifiedDate — Last modified date for the record.
  • Prefer — Server behavior request. Use 'respond-async' to execute the request asynchronously.
  • replace — Sublist names on this record. All sublist lines will be replaced with lines specified in the request, delimited by comma.
  • replaceSelectedFields — If true, all fields to be deleted in the update request must be included in the 'replace' query parameter.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key per RFC 4122; ensures the request is executed only once.
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation. Options: Error, Warning, Ignore.
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation. Options: Error, Warning, Ignore.
  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method. Options: OAuth1, OAuth2. Default: OAuth1.
  • customFields — List of custom fields to set on the record. Each entry requires a fieldName (loaded via loadCustomFields) and fieldType (boolean, dateTime, multiSelect, number, select, string), with value typed accordingly.

Output shape

NetSuite API response for the customer category record.

If isDebugMode is enabled, includes full request and response details.

Examples

Example 1: Update a customer category name and mark as inactive.

Set id to the target category's external ID, name to the new name, and isInactive to true.

Links

Discussion