Custom Currency Exchange Settings

We tried to create a custom service provider for currency exchange. We have to use the National Bank of Poland to calculate the right exchange rate. Now we have the following:

When we try to save the Custom Provider we get the following issue:

Invalid result key. Response: {“table”:“A”,“currency”:“rupia indyjska”,“code”:“INR”,“rates”:[{“no”:“212/A/NBP/2022”,“effectiveDate”:“2022-11-02”,“mid”:0.057363}]}

The service provider returns an array of exchange rates. We must always get the “mid” result key for the first element of the array because of the description of the API for a single record. I didn’t find any description or documentation on how to do it. Is it possible to implement it?

Thank you!

Hi, I am looking for a solution for a similar problem. Have you found the solution?