My Products
Help
adrianm
PARTNER

How to add a new exchange rate

by adrianm

I'm trying to add exchange rates with the Currency endpoint.

 

Both these requests return 404
(My guess is "toCurrencyId" is same as "baseCurrencyId" but it is a bit unclear so I tried both ways)

 

POST: https://integration.visma.net/API/controller/api/v1/currency/exchangerates/SEK
{"currencyId":{"value":"NOK"},"effectiveDate":{"value":"2020-09-22"},"rate":{"value":0.09}}
POST: https://integration.visma.net/API/controller/api/v1/currency/exchangerates/NOK
{"currencyId":{"value":"SEK"},"effectiveDate":{"value":"2020-09-22"},"rate":{"value":0.09}}

 

and the response content is

{"ExceptionType":"IPPException","ExceptionMessage":"Requested URI does not exist: /api/v1/currency/exchangerates/NOK","ExceptionFaultCode":"12003","ExceptionMessageID":"12003_28071ff0-cde7-420b-97a3-1265933ab800","ExceptionDetails":""}
 
What am I doing wrong?
3 REPLIES 3

by Magnus Johnsen

Hi,

 

This example:

 2020-09-22 14_54_08-Currency rates.png

Should be posted as such:

POST currency/exchangerates/NOK

{

  "currencyId": {

    "value": "SEK"

  },

  "rateType": {

    "value": "SPOT"

  },

  "effectiveDate": {

    "value": "2020-09-22T12:33:51.915Z"

  },

  "rate": {

    "value": 5

  },

  "multDiv": {

    "value": "Multiply"

  }

}

However, it does not seem to be working.

We have opened a case for this and will post the progress in this thread.

 

Thank you. 

Accepted solution
Magnus Johnsen
VISMA

Hi,

 

We have done some more testing, and on our end it seems like it is working as intended now.

Could you please check if it is working on your end?

Thank you. 

adrianm
PARTNER

by adrianm

Good to know. Thanks for reporting back.

 

I went with the "csv-file on ftp and import scenario" because

* Nobody else is using the function

* The endpoint is not part of Vismas release testing