NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Currency Rate → Insert or update record

AI-generated

Summary

Updates or inserts a currency exchange rate record in NetSuite identified by an external identifier.

Inputs

  • id (required) — External identifier. Required to identify the currency rate record to update or insert.
  • isDebugMode — Whether to include full request and response info in the output. Default: false.
  • authMethod — Authentication method for the request. Options: OAuth1 or OAuth2. Default: oauth1. No data expression support.
  • additionalFields — Collection of additional fields for the currency rate, including exchange rate, effective date, currency references, and sublist management. Default: {}.
  • customFields — Fixed collection of custom fields to apply to the currency rate record. Multiple values allowed. Default: {}.
  • Prefer — Server behavior hint. Use 'respond-async' to execute the request asynchronously. Default: empty (synchronous).
  • replace — Comma-delimited names of sublists on the record. All sublist lines will be replaced with lines specified in the request. Default: empty.
  • replaceSelectedFields — If true, all fields to be deleted in the update request must be included in the 'replace' query parameter. Default: false.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key (RFC 4122 UUID format) ensuring the request executes only once. Ignored for synchronous requests. Default: empty.
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation. Options: empty, Error, Warning, Ignore. Default: empty.
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation. Options: empty, Error, Warning, Ignore. Default: empty.
  • transactionCurrency — Currency reference for the transaction currency, specified by internal identifier or external identifier. Default: {}.

Output shape

The updated Currency Rate record object as returned by the NetSuite API.

The operation performs a PUT to /currencyRate/{id}, updating the record if it exists or inserting it based on NetSuite's upsert behavior.

Examples

Example 1: Update an existing currency exchange rate for USD against the company's base currency.

Set id to the currency's external identifier, exchangeRate to the desired rate (e.g., 1.02), and effectiveDate to the date the rate takes effect.

Links

Discussion