NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Location → Get record

AI-generated

Summary

Retrieve detailed information about a specific Location record in NetSuite by its internal identifier.

Inputs

  • Authentication Method — Choose the authentication method to use, either OAuth1 or OAuth2. Defaults to OAuth1.
  • Id (required) — The internal identifier of the Location record to retrieve.
  • Expand Sub Resources — Option to expand all sublists, sublist lines, and subrecords of the Location record.
  • Fields — Specify the names of fields and sublists to include in the response; only these will be returned.
  • Prefer — Set server behavior preference, such as 'respond-async' for asynchronous execution of the request.
  • Simple Enum Format — Return enumeration values showing only their internal ID format if set to true.
  • X - Net Suite - Idempotency - Key — Unique idempotency key used for asynchronous requests to ensure single execution, ignored for synchronous requests.
  • Debug Mode — Include full request and response information in the output for debugging if set to true.

Output shape

A single JSON object representing the Location record's data fields, including optionally expanded sub-resources and selected fields.

The output includes the Location record matching the given ID. If 'Expand Sub Resources' is enabled, nested data such as sublists are fully included. If 'Debug Mode' is enabled, the output will also contain the complete HTTP request and response details under a debug property. Asynchronous requests can be triggered via the 'Prefer' option, with idempotency ensured by the provided key if set.

Examples

Example 1: Basic retrieval

Provide the internal ID of the Location to retrieve its details with default OAuth1 authentication.

Example 2: Selective fields and debugging

Specify desired fields, enable debug mode, and use OAuth2 authentication to get precise data and debugging information.

Links

Discussion