NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Cost Category → Get record

AI-generated

Summary

Retrieve a Cost Category record by its internal ID, optionally expanding subresources and selecting specific fields, with support for asynchronous processing and debugging.

Inputs

  • Debug Mode — Whether to include full request and response info in the output.
  • Id (required) — Internal identifier.
  • Expand Sub Resources — Set to 'true' to automatically expand all sublists, sublist lines, and subrecords on this record.
  • Fields — The names of the fields and sublists on the record. Only the selected fields and sublists will be returned in the response.
  • Prefer — The server behavior requested by the client. Use 'respond-async' to execute the request asynchronously.
  • Simple Enum Format — Set to true to return enumeration values in a format that only shows the internal ID value.
  • X - Net Suite - Idempotency - Key — A user-defined unique idempotency key that is applied to every asynchronous requests to ensure that the request is executed only once.

Output shape

a single Cost Category record (JSON)

If Debug Mode is enabled, the output also contains the raw request and response objects. Specifying 'Prefer: respond-async' triggers asynchronous execution; the operation then returns an immediate acknowledgment with a Preference-applied header and the idempotency key is respected only for async calls.

Examples

Example 1: Retrieve a Cost Category by ID

Id: 123, Debug Mode: false, all other options omitted.

Example 2: Retrieve only selected fields

Id: 123, Fields: name,description, Debug Mode: false

Example 3: Retrieve with expanded subresources asynchronously

Id: 123, Expand Sub Resources:true, Prefer:respond-async, Debug Mode:false

Discussion