NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Currency Rate → Get record

AI-generated

Summary

Retrieve a currency rate record from NetSuite using its internal ID.

Inputs

  • isDebugMode — Add full HTTP request and response information to the output.
  • id (required) — Internal identifier of the currency rate record.
  • expandSubResources — Return all sublists, sublist lines, and subrecords automatically.
  • fields — Comma‑separated list of field names to return. Only these fields are included in the response.
  • Prefer — Server preference. Set to "respond-async" to execute the request asynchronously.
  • simpleEnumFormat — Return enumeration values as the internal ID only.
  • X-NetSuite-Idempotency-Key — Unique key for asynchronous requests to enforce idempotency. Ignored for synchronous calls.

Output shape

A JSON object containing the requested currency rate record (including any expanded subresources and filtered fields). If debug mode is enabled, the output also includes a "debug" object with full request and response details. When executing asynchronously, the response may contain only the applied preference header and no record data.

If the "Prefer" header is set to "respond-async", NetSuite may respond with a 202 status and a location header pointing to the job status. In that case the node returns the partial response as provided by NetSuite. Validation of mandatory fields is performed before the request is sent.

Examples

Example 1: Basic fetch

Set "id" to 123, leave other options at default to get the complete record.

Example 2: Select specific fields

Set "id" to 456 and "fields" to "rate,sourceCurrency,targetCurrency" to retrieve only those three attributes.

Example 3: Asynchronous request with idempotency

Set "id" to 789, "Prefer" to "respond-async", and provide a UUID in "X-NetSuite-Idempotency-Key" to request the record asynchronously.

Discussion