NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Invoice → Get record

AI-generated

Summary

Retrieve an Invoice record by its internal ID from NetSuite.

Inputs

  • id (required) — The internal identifier of the Invoice to get.
  • isDebugMode — When enabled, the output contains full request and response metadata.
  • expandSubResources — If true, automatically expands all sublists, sublist lines, and subrecords on the Invoice.
  • fields — Comma‑separated list of fields or sublists to include in the response. Only these are returned.
  • Prefer — Set to 'respond-async' to execute the request asynchronously.
  • simpleEnumFormat — When true, enumeration values are returned as their internal ID values.
  • X-NetSuite-Idempotency-Key — Unique UUID used for idempotence on asynchronous requests.

Output shape

a single Invoice record (JSON) with optional subresources and selected fields

  • If Expand Sub Resources is enabled, nested sublists and subrecords are included.
  • If Fields is specified, only those properties are returned.
  • If Prefer = ‘respond-async’, the request is processed asynchronously; the node still returns a single record once available, but the HTTP status may be 202.
  • When Debug Mode is enabled, the item will additionally contain the request and response details.

Examples

Example 1: Simple record lookup

Set Invoice ID to 12345; leave other options at defaults.

Example 2: Fetch only selected fields

Set Invoice ID to 12345, Fields to "entity, total, status", expandSubResources to false.

Example 3: Async request with idempotency

Set Invoice ID to 12345, Prefer to ‘respond-async’, X-NetSuite-Idempotency-Key to a UUID.

Discussion