NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Usage → Get record

AI-generated

Summary

Retrieve a specific Usage record from NetSuite by its internal identifier, optionally customizing the response with additional parameters like field selection, subresource expansion, and async request preferences.

Inputs

  • Id (required) — The internal identifier of the Usage record to retrieve.
  • Debug Mode — Include full request and response details in the output to aid troubleshooting.
  • Additional Fields — Optional parameters for controlling returned data, including: selecting specific fields and sublists, expanding all subresources, requesting asynchronous processing, returning enumeration values as internal IDs only, and providing an idempotency key for async requests.

Output shape

a single Usage record object, optionally augmented with debug information if enabled

If 'Debug Mode' is enabled, the output includes detailed request and response information. The 'Additional Fields' allow controlling the depth and format of returned data. Using 'Prefer' with 'respond-async' may cause asynchronous execution; in this case, the response will acknowledge async processing. The idempotency key affects only asynchronous requests.

Examples

Example 1: Retrieve Usage record #123 with debug info and expanded subresources

Set Id=123, Debug Mode=true, Additional Fields > Expand Sub Resources=true

Example 2: Retrieve Usage record #456 returning only specific fields asynchronously with idempotency key

Set Id=456, Additional Fields > Fields='field1,field2', Prefer='respond-async', X-NetSuite-Idempotency-Key='uuid-string'

Discussion