NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Cost Category → Get list of records

AI-generated

Summary

Retrieve a list of Cost Category records, optionally filtered, paginated, and debugged.

Inputs

  • isDebugMode — Include full HTTP request and response details in the output
  • limit — Maximum number of records returned on a single page
  • offset — Position in the result set to start returning records
  • Prefer — Set to respond-async to ask the server to process the request asynchronously
  • q — Search query string to filter Cost Category records
  • X-NetSuite-Idempotency-Key — Unique key used only when the request is async to guarantee a single execution

Output shape

a list of Cost Category records (JSON objects)

The response contains only the records for the current page defined by limit and offset. If Prefer: respond-async is set, the HTTP response includes the header Preference-applied: respond-async and the payload may contain a minimal acknowledgement; the actual records will be returned by the standard synchronous call. Debug mode optionally adds a debugData object with raw request/response headers and bodies.

Examples

Example 1: Retrieve the first 10 Cost Categories with debugging enabled

isDebugMode: true
additionalFields.limit: 10
additionalFields.offset: 0

Example 2: Search Cost Categories that contain the word "Construction"

additionalFields.q: Construction
additionalFields.limit: 20

Example 3: Make an asynchronous request to avoid timeout

additionalFields.Prefer: respond-async
additionalFields.X-NetSuite-Idempotency-Key:

Discussion