NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Invoice → Get record

AI-generated

Summary

Retrieve a single Invoice record by its internal identifier from the NetSuite REST API.

Inputs

  • Id (required) — The internal identifier of the Invoice record to retrieve.
  • Debug Mode — Option to include full HTTP request and response details in the output for debugging purposes.
  • Authentication Method — Choose between OAuth1 or OAuth2 for authentication.
  • Additional Fields — Optional parameters including expanding all sub resources, selecting specific fields or sublists to return, setting asynchronous execution preference, returning enumeration values in simple format, and providing an idempotency key for asynchronous requests.

Output shape

a single Invoice record object including requested fields and sublists, optionally enriched with debug information if enabled.

If 'Expand Sub Resources' is true, all sublists, sublist lines, and subrecords of the Invoice will be included. The 'Fields' option filters the returned properties to the specified names. Using the 'Prefer' option with 'respond-async' executes the request asynchronously, requiring an idempotency key to guarantee single execution; otherwise, the key is ignored. Enumeration values can be returned in simplified ID-only format by enabling 'Simple Enum Format'. When 'Debug Mode' is enabled, the output includes HTTP request and response details for troubleshooting.

Examples

Example 1: Retrieve a single Invoice by ID with all sub resources expanded synchronously

Set 'Id' to the Invoice's internal ID, 'Expand Sub Resources' to true, default OAuth1 authentication, no debug.

Example 2: Retrieve specific fields from an Invoice asynchronously with debugging

Set 'Id' to the Invoice's internal ID, specify fields names in 'Fields' property, set 'Prefer' to 'respond-async', supply a UUID in 'X - Net Suite - Idempotency - Key', use OAuth2 authentication, and enable 'Debug Mode'.

Links

Discussion