Getting Exchange Rates with Linx

A question received recently, was how can one get exchange rates using Linx? https://linx.software

There are a lot of exchange rate API’s available, some free, some not. For this example, I’m using a free API from the European Central Bank. Because it is free, and no registration is required, I cannot vouch for the accuracy of the data. I expect that it might be a daily or hourly rate. https://exchangeratesapi.io/

As this is quite an easy API to use, one can simply use a single CallRESTEndpoint function (Documentation, and get the info you need. To make it a bit more interesting, I’ve also created the New Type for the response from API and used it to write the Exchange rate to a text file.

Linx 5.22.0 FXRates.lsoz (8.6 KB)

Linx 6.0.5 Linx6.zip (7.1 KB)