NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Purchase Order → Get record

AI-generated

Summary

Retrieve a single Purchase Order record from NetSuite by its internal identifier, optionally customizing returned fields and response behavior.

Inputs

  • Id (required) — The internal identifier number of the Purchase Order record to retrieve.
  • Debug Mode — Include detailed request and response information in the output if enabled.
  • Additional Fields — Optional parameters to control retrieval behavior, including expanding sub-resources, selecting specific fields or sublists to return, requesting asynchronous response, formatting enumeration values simply, and providing an idempotency key for async requests.

Output shape

a single JSON object representing the requested Purchase Order record, with fields and sublists as specified by input parameters

If Debug Mode is enabled, the output includes full request and response details. Using 'respond-async' in Prefer header returns an asynchronous response indication. The shape of the output depends on selected fields or expansion options in Additional Fields.

Examples

Example 1: Retrieve a Purchase Order with internal ID 12345, including all default fields without debug info.

Set Id to 12345; leave Additional Fields and Debug Mode at defaults.

Example 2: Retrieve Purchase Order with internal ID 67890, expand all sublists and subrecords, and output debug information.

Set Id to 67890; set Additional Fields > Expand Sub Resources to true; set Debug Mode to true.

Discussion