Foreign Exchange Module
  • 03 May 2022
  • 1 Minute to read
  • Dark
    Light

Foreign Exchange Module

  • Dark
    Light

Article Summary

Overview

Module Details

Last Modified11/30/2021
Installation LocationCore, Github (v7.9+)
Restart Required?No
Step Location INTEGRATION > Foreign Exchange
Settings Location System > Settings > Foreign Exchange Settings
PrerequistesAccount with CurrencyLayer.com and CurrencyLayer API

The Foreign Exchange Module offers users the ability to integrate with the Currency Layer JSON REST API to provide access to 168 world currencies and precious metals foreign currency exchange data through the use of pre-built Flow steps. 

By using this module, users are able to obtain foreign exchange rates and convert rates to assist with their business needs and applications.



Example

This example will demonstrate how to configure the Foreign Exchange Module settings and show how to use the module to convert $100.00 USD ;(US Dollars) to EUR (Euro).

  1. Navigate to System > Settings. Right-click Foreign Exchange Settings and select Edit.
  2. In the Edit Foreign Exchange Settings window, enter the CurrencyLayer.com API Key. Click SAVE.
  3. Navigate to a Designer Project, click CREATE FLOW, select Flow and click CREATE.
  4. Click the Done path on the Start step. Navigate to All Steps [Catalog] > Integration > Foreign Exchange and select Get Conversion Rate. Click ADD.
  5. Select Unknown next to From field under the Inputs category and select Constant. Enter "USD" in the From field and map the To field as a Constant and enter "EUR".
  6. Click the Done path and add the Do Conversion step. Enter "100" in the Amount field, "USD" in the From field, and "EUR" in the To field.
  7. Connect the Done path to the End step. Click Save to save changes to the Flow.


Debug

  1. On the top action bar, click Debug. When the debugger opens, click START DEBUGGING.
  2. After the debugger runs, right-click the Do Conversion step, select Execution 1, and select View Input/Output Data.



Was this article helpful?