NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Category → Get record

AI-generated

Summary

Retrieve a single expense category record by its internal ID

Inputs

  • isDebugMode — Include full request and response data in the output.
  • id (required) — Internal identifier of the expense category to fetch.
  • expandSubResources — Expand all sublists, sublist lines, and subrecords on the record.
  • fields — Comma‑separated list of field and sublist names to return.
  • Prefer — Request asynchronous execution with 'respond-async'.
  • simpleEnumFormat — Return enumeration values as internal ID values only.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests; ignored for synchronous calls.

Output shape

a single JSON record of the expense category (or, if Debug Mode is active, a JSON array containing the record alongside request/response debugging information)

The node returns the expense category data reshaped to match the requested fields. If Debug Mode is turned on, the result includes the raw HTTP request and response objects, enabling inspection of headers, status codes, and raw payloads. When the Prefer option is set to 'respond-async', the request is processed asynchronously and the node may return a location header or status indicating that the record is pending; the exact handling follows NetSuite's asynchronous REST semantics.

Examples

Example 1: Basic record fetch

id=12345

Example 2: Fetch with sublists expanded

id=12345, expandSubResources=true

Example 3: Fetch only selected fields

id=12345, fields=name,description

Discussion