NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Category → Update record

AI-generated

Summary

Update an existing expense category by sending a PATCH request to NetSuite’s expense category endpoint, optionally updating any attribute or custom field.

Inputs

  • id (required) — The internal numeric identifier of the expense category to update.
  • isDebugMode — Include the raw HTTP request and response data in the node output.
  • additionalFields — Key/value pairs defining standard fields to modify:
  • defaultrate (number)
  • description (string)
  • expenseacct (collection with id and/or externalId)
  • externalId (string)
  • isinactive (boolean)
  • name (string)
  • personalcorporatecardexpense (boolean)
  • Prefer (options, e.g., respond-async)
  • raterequired (boolean)
  • rates (collection of rate items with currency, defaultrate, refName, subsidiary)
  • refName (string)
  • replace (comma‑separated list of sub‑list names to replace)
  • replaceSelectedFields (boolean)
  • subsidiary (collection with id and/or externalId)
  • translations (collection of translation items with description, name, language, locale)
  • customFields — A list of custom fields where each entry specifies:
  • fieldName (required option)
  • fieldType (options: boolean, dateTime, multiSelect, number, select, string)
  • value (type‑dependent value, e.g., boolean, ISO string, array of ids, number, or string).
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests to prevent duplicate execution.
  • X-NetSuite-PropertyNameValidation — Set strictness for property name validation: Error, Warning, or Ignore.
  • X-NetSuite-PropertyValueValidation — Set strictness for property value validation: Error, Warning, or Ignore.

Output shape

a single expense category record, including any modified fields or the raw response when Debug Mode is enabled

If the request is processed asynchronously, the response contains a status link; otherwise it returns the updated record data. No pagination is involved.

Examples

Example 1: Change the name and default rate of an expense category

Set id to the category’s internal ID. In additionalFields, set name to "Travel & Meals" and defaultrate to 100. Leave other fields blank. Debug Mode optional.

Example 2: Mark a category as inactive and set a corporate card expense flag

Provide id of the category. In additionalFields, set isinactive to true and personalcorporatecardexpense to true.

Example 3: Update a custom field on the category

Select id. Add a custom field entry in customFields with fieldName set to the custom field’s name, fieldType to the appropriate type, and value to the new value (e.g., a string or number).

Discussion