Currency Rate

A currency rate record exposes a currency exchange rate to REST web services.

Currency exchange rates are used to convert foreign currencies to base currencies, providing default rates for transactions in currencies other than the base currency. Exchange rates are expressed in terms of base currency units per foreign currency (source) unit.

To access this record in NetSuite, go to Lists > Accounting > Currency Exchange Rates > New.

For more information about currency exchange rates in NetSuite, see Currency Exchange Rates.

The REST API Browser includes information about the field names and field types of the currency exchange rate record and about the HTTP methods, request parameters, and operations available to this record. For details, see the Rest API Browser's currency rate reference page.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for a currency rate REST record is currencyrate.

Prerequisites

You must enable the Multiple Currencies feature before you can use this record through REST web services. For more information about this feature, see Enabling the Multiple Currencies Feature.

Accessible Elements

The following fields are not accessible through REST web services:

  • Previous Effective Date

  • Previous Exchange Rate

Code Sample

The following code sample shows how to create a currency exchange rate record:

            POST: {{COMPANY_URL}}/services/rest/record/v1/currencyrate
{
    "baseCurrency": "1",
    "transactionCurrency": "3",
    "exchangeRate": 1.9,
    "effectiveDate": "2023-11-26",
    "externalId": "1"
} 

          

Related Topics

General Notices