NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Subscription → Get record

AI-generated

Summary

Retrieve a Subscription record from NetSuite by its internal identifier, optionally customizing the returned fields and request behavior.

Inputs

  • Id (required) — The internal identifier of the Subscription record to retrieve.
  • Debug Mode — Enable to include full request and response details in the output for debugging purposes.
  • Additional Fields — Optional parameters to customize the response, including expanding sub-resources, selecting specific fields, asynchronous request preference, enumeration format, and idempotency key for async requests.

Output shape

a single Subscription record object with the requested fields.

The output shape varies based on Additional Fields options. Enabling Debug Mode adds full HTTP request and response details. The 'Prefer' option supports asynchronous execution with idempotency key for request uniqueness.

Examples

Example 1: Retrieve a Subscription record by Id with default fields

Provide 'Id' only; returns the full record as provided by NetSuite's REST API.

Example 2: Retrieve a Subscription with expanded sub-resources and selected fields

Set 'Expand Sub Resources' to true and specify 'Fields' to limit returned data for performance or specificity.

Example 3: Retrieve asynchronously with idempotency

Set 'Prefer' to 'respond-async' and supply a unique 'X-NetSuite-Idempotency-Key' UUID to execute the request asynchronously and ensure one-time execution.

Discussion