NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Currency Rate → Insert or update record

AI-generated

Summary

PUT a currency rate record to NetSuite and return the created or updated record.

Inputs

  • Debug Mode — Include full request and response info in the output.
  • Id (required) — External identifier of the currency rate record.
  • Base Currency — Base currency for the exchange rate, identifiers can be provided as internal id or external externalId.
  • Effective Date — Date the exchange rate becomes effective.
  • Exchange Rate — Rate of foreign currency against the base currency.
  • External ID — External identifier for the rate record.
  • Internal ID — Internal identifier for the rate record.
  • Last Modified Date — Timestamp of the last modification.
  • FX Source Method — Method by which the exchange rate was obtained.
  • Prefer — Client preference; use "respond-async" to execute asynchronously.
  • Reference Name — Reference name for the record.
  • Replace — Comma‑separated list of sublists to replace.
  • Replace Selected Fields — When true all fields to delete must be in the replace list.
  • Transaction Currency — Currency used in transactions, identifiers via internal id or external externalId.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests.
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation (Error, Warning, Ignore).
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation (Error, Warning, Ignore).
  • Custom Fields — List of custom fields to set on the record, each field specifies name, type, and value.

Output shape

a single currency rate record with its fields

If Debug Mode is enabled, the output also contains the full HTTP request and response objects under debug.

Examples

Example 1: Insert a new currency rate

Resource: Currency Rate, Operation: Insert or update record, Debug Mode: false, Id: "", Base Currency ID: "100", Effective Date: "2024-01-01", Exchange Rate: 1.05, Custom Fields: [{fieldName: "Field1", fieldType: "string", value: "example"}]

Example 2: Update an existing currency rate

Resource: Currency Rate, Operation: Insert or update record, Debug Mode: false, Id: "12345", Exchange Rate: 1.10, Replace: "", Prefer: "respond-async"

Discussion