NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Service Resale Item → Get record

AI-generated

Summary

Retrieve a Service Resale Item record from NetSuite by its internal identifier, optionally customizing the returned fields, expanding sub-resources, or specifying request preferences.

Inputs

  • id (required) — The internal identifier of the Service Resale Item record to retrieve.
  • isDebugMode — Enable to include full request and response details in the output for debugging purposes.
  • authMethod — Select the authentication method to use, either OAuth1 (default) or OAuth2.
  • additionalFields — Optional parameters allowing control over the response, including expansion of all sublists and subrecords, specifying exact fields and sublists to return, asynchronous request execution via 'Prefer' header, simplified enumeration format, and providing an idempotency key for async requests.

Output shape

A single Service Resale Item record object as returned from the NetSuite REST API corresponding to the given internal ID.

The returned record includes only the fields specified in 'Fields' if set; otherwise, the default fields are returned. Setting 'Expand Sub Resources' to true expands all sublists and subrecords on the record in the response. If 'Debug Mode' is enabled, additional request and response metadata is appended. Asynchronous request execution is supported via the 'Prefer' header option 'respond-async', in which case the response indicates acceptance rather than immediate data. Enumeration fields can be simplified to internal ID values if 'Simple Enum Format' is set to true. The idempotency key applies only to asynchronous requests.

Examples

Example 1: Get a Service Resale Item record by ID with default fields using OAuth1

Set 'Id' to the internal identifier and keep other options as default.

Example 2: Get a Service Resale Item record, expanding all sub-resources and returning only selected fields, with debug mode enabled

Set 'Id' to target record, 'Expand Sub Resources' to true, specify field names in 'Fields', and enable 'Debug Mode'.

Example 3: Execute the request asynchronously with an idempotency key

Set 'Prefer' to 'respond-async' and provide a unique 'X - Net Suite - Idempotency - Key' value.

Links

Discussion