NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Category → Insert record

AI-generated

Summary

Create a new expense category in NetSuite via a POST request.

Inputs

  • name (required) — Name of the expense category. Required field for creation.
  • defaultrate — Default rate applied to expense reports for this category. Optional.
  • description — Optional description of the expense category.
  • expenseacct — Account to associate with the category. Provide internal or external identifier.
  • externalId — Custom external identifier for the category.
  • isinactive — Set to true to create the category as inactive.
  • prefer — Client preference; currently supports 'respond-async' to execute asynchronously.
  • raterequired — Require quantity and rate when this category is used on expense reports.
  • rates — Collection of rate details per currency and subsidiary.
  • replace — Comma‑separated list of sublist names to replace with new lines.
  • subsidiary — Subsidiary association via internal or external identifier.
  • translations — Localized translations for name and description.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests.
  • X-NetSuite-PropertyNameValidation — Validation strictness for property names (Error/Warning/Ignore).
  • X-NetSuite-PropertyValueValidation — Validation strictness for property values (Error/Warning/Ignore).
  • customFields — Optional collection of custom field name/value pairs for the new record.
  • isDebugMode — When true, the output includes the raw HTTP request and response for debugging.

Output shape

a NetSuite expense category record in JSON – the response body returned by the NetSuite REST API. If debug mode is enabled, the output also contains full request and response metadata.

The shape may vary with the specific NetSuite account and returned fields. The response includes system-generated fields such as internalId and lastModifiedDate. Errors are surfaced as n8n node errors.

Examples

Example 1: Create a simple expense category

Name "Travel", Default Rate 1.2, Description "Travel expenses", Active status.

Example 2: Create a corporate card expense category with custom fields

Name "Corporate Card", personalcorporatecardexpense true, Custom Field 'policy' set to "Corporate".

Discussion