NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Category → Get list of records

AI-generated

Summary

Retrieve a list of all expense category records from NetSuite, optionally filtered, paginated, or including debug information.

Inputs

  • resource (required) — The NetSuite resource to query (fixed to Expense Category).
  • operation (required) — The operation to perform – Get list of records.
  • isDebugMode — Include request and response details in the output when true.
  • limit — Maximum number of records to return in a single page.
  • offset — Starting record offset for pagination.
  • Prefer — Server preference – set to 'respond-async' to execute asynchronously; indicates async execution via header Preference-applied.
  • q — Search query to filter expense categories.
  • X-NetSuite-Idempotency-Key — Unique key for idempotent asynchronous requests; ignored for synchronous calls.

Output shape

a list of expense category records (array of JSON objects)

The operation returns the NetSuite REST API response body containing an array of expense category records. If Debug Mode is enabled, a "debug" property will be added with the raw request and response. Pagination is controlled by the "limit" and "offset" parameters; only the requested page is returned.

Examples

Example 1: Retrieve all expense categories

Select 'Expense Category' resource, 'Get list of records' operation, leave additional fields empty, disable Debug Mode.

Example 2: Paginate expense categories

Set 'Limit' to 20 and 'Offset' to 0 in Additional Fields, leave other fields empty.

Example 3: Search for expense categories containing 'travel' and capture debugging data

Set 'q' to 'travel', enable Debug Mode, leave other fields empty.

Discussion