NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Service Purchase Item → Get record

AI-generated

Summary

Retrieve a Service Purchase Item record by its internal numeric ID from NetSuite REST API, optionally customizing the response with field selection, subresource expansion, and asynchronous request preferences.

Inputs

  • Id (required) — The internal identifier of the Service Purchase Item record to retrieve.
  • Debug Mode — Enable to include full HTTP request and response details in the output for troubleshooting.
  • Authentication Method — Choose between OAuth1 and OAuth2 for authenticating the request.
  • Additional Fields — Optional parameters to customize the response, including selecting specific fields or sublists, expanding all subresources, requesting asynchronous execution, formatting enums simply, and applying an idempotency key.

Output shape

a single JSON object representing the Service Purchase Item record retrieved from NetSuite, augmented with optional debug information if enabled.

Response includes only the requested fields and sublists if specified; if 'Expand Sub Resources' is set to true, all sublists, lines, and subrecords will be included. When 'respond-async' preference is used, the response indicates asynchronous execution. Enums can be returned in a simplified format if selected. Debug Mode adds HTTP request and response metadata to the output.

Examples

Example 1: Retrieve a Service Purchase Item with ID 12345 including all subresources expanded and debug information enabled.

Set Id to 12345, enable 'Expand Sub Resources' and 'Debug Mode', use OAuth1 authentication.

Links

Discussion