NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Promotion Code → Get record

AI-generated

Summary

Retrieve a specific Promotion Code record from NetSuite by its internal identifier.

Inputs

  • Id (required) — Internal identifier of the Promotion Code to retrieve.
  • Debug Mode — Whether to include full request and response info in the output.
  • Additional Fields — Optional parameters to customize the retrieval, including expanding all sub-resources, specifying particular fields to return, requesting asynchronous response behavior, formatting enumeration values simply, and providing an idempotency key for async requests.

Output shape

a JSON object representing the requested Promotion Code record with fields based on the selection or expansion parameters; optionally includes full request and response info if Debug Mode is enabled.

The output includes only the requested fields or sublists if specified; if 'Expand Sub Resources' is true, all sublists and subrecords are expanded. If 'respond-async' is requested via the 'Prefer' option, the operation executes asynchronously and returns a preference-applied header. An idempotency key can be set for asynchronous requests to ensure one-time execution.

Examples

Example 1: Retrieve a Promotion Code by ID 123 with all sub-resources expanded.

Set 'Id' to 123, enable 'Expand Sub Resources' in Additional Fields.

Example 2: Fetch a Promotion Code by ID 456 with only specific fields returned and debug info enabled.

Set 'Id' to 456, specify 'Fields' in Additional Fields, and enable 'Debug Mode'.

Discussion