NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Number → Get record

AI-generated

Summary

Retrieve an Inventory Number record by its internal ID.

Inputs

  • id (required) — Internal identifier of the inventory number record.
  • expandSubResources — Set to true to automatically expand all sublists, sublist lines, and subrecords on this record.
  • fields — Comma‑separated list of field and sublist names to include; only the specified fields are returned.
  • Prefer — Use 'respond-async' to request asynchronous execution of the operation.
  • simpleEnumFormat — Return enumeration values as their internal ID only.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests; ignored for synchronous calls.
  • isDebugMode — When true, includes complete request and response data in the node's output.

Output shape

a single record (JSON) representing the requested inventory number; if debug mode is enabled, the output also contains fields with full request and response information

If the Prefer option is set to 'respond-async', the response indicates asynchronous processing and includes a status; otherwise a standard 200 response with the record is returned.

Examples

Example 1: Simple record fetch

id: 12345; isDebugMode: false; all other options left at default.

Example 2: Fetch specific fields and expand subresources

id: 12345; fields: 'item,location'; expandSubResources: true; isDebugMode: false.

Example 3: Async request with idempotency

id: 12345; Prefer: 'respond-async'; X-NetSuite-Idempotency-Key: '550e8400-e29b-41d4-a716-446655440000'; isDebugMode: false.

Discussion