NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Count → Get record

AI-generated

Summary

Retrieve a single Inventory Count record from NetSuite by its internal ID, optionally expanding subresources, selecting specific fields, and capturing request/response details.

Inputs

  • isDebugMode — When true, includes the full HTTP request and response within the output.
  • id (required) — The internal NetSuite identifier of the Inventory Count record to fetch.
  • additionalFields — Collection of optional parameters controlling the request.
  • expandSubResources — If true, automatically expands all sublists, sublist lines, and subrecords on the record.
  • fields — Comma‑separated list of field and sublist names to include in the returned record; if omitted, all fields are returned.
  • Prefer — Sets server behavior; selecting "respond‑async" causes the request to be executed asynchronously and adds the header "Preference‑applied: respond‑async" to the response.
  • simpleEnumFormat — If true, enumeration values are returned only as their internal ID, rather than the full object.
  • X-NetSuite-Idempotency-Key — User‑defined unique UUID for asynchronous requests to ensure idempotency. Ignored for synchronous requests.

Output shape

a JSON object representing the Inventory Count record; if Debug Mode is enabled, the output also includes request and response payloads.

The record may contain nested subresources; they are expanded automatically only when "Expand Sub Resources" is true or when the API supports eager loading. Selecting "Prefer: respond‑async" makes the operation asynchronous; the API responds immediately with a 202 status and a Location header for polling. The idempotency key works only for asynchronous requests. When Debug Mode is off, only the record body is returned.

Examples

Example 1: Retrieve a single Inventory Count by ID

Set Id to 12345; leave other options at defaults.

Example 2: Retrieve an Inventory Count with debugging information

Set Id to 12345 and check "Debug Mode" to receive request/response data alongside the record.

Example 3: Retrieve selected fields only

Set Id to 12345, then in Additional Fields choose "Fields" as "item,location,quantityOnHand" and keep other options at defaults.

Discussion