NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Vendor Subsidiary Relationship → Get record

AI-generated

Summary

Retrieve a Vendor Subsidiary Relationship record in NetSuite by its internal Id, optionally customizing the response with field selection and expansion of sub-resources.

Inputs

  • Id (required) — The internal identifier of the Vendor Subsidiary Relationship record to retrieve.
  • Debug Mode — Enable to include full request and response details in the operation output.
  • Expand Sub Resources — Set to true to automatically expand all sublists, sublist lines, and subrecords related to the record.
  • Fields — Specify a comma-separated list of field names and sublists to limit the response to these elements only.
  • Prefer — Set request preference, e.g., 'respond-async' to execute the request asynchronously.
  • Simple Enum Format — Set to true to return enumeration values as their internal ID only.
  • X - Net Suite - Idempotency - Key — Unique idempotency key (UUID string) for ensuring asynchronous request execution occurs only once; ignored if synchronous.

Output shape

a JSON object representing the retrieved Vendor Subsidiary Relationship record, including requested fields and optionally expanded sub-resources, or an asynchronous response acknowledgment if 'respond-async' is used.

If 'Debug Mode' is enabled, the output includes detailed request and response information. Using 'Prefer'="respond-async" returns a preference-applied header in the response indicating asynchronous execution. The 'Fields' parameter restricts the returned data to specified fields, while 'Expand Sub Resources' returns all related sublists and subrecords expanded.

Examples

Example 1: Retrieve a vendor subsidiary relationship record with ID 123, including only specific fields and expanded sub-resources, with debug information enabled.

Id=123, Expand Sub Resources=true, Fields='field1,field2', Debug Mode=true

Discussion