Can't access Enhanced Foreign Exchange Rate API

Solved! Go to solution
vermasandeep11
Regular Visitor

Can't access Enhanced Foreign Exchange Rate API

Hi Team,

I can't access Enhanced Foreign Exchange Rate API, Could you please provide me access for same. I have already mail to developer@visa.com for same.

 

4 REPLIES 4
API_Products
Visa Developer Support Specialist

Re: Can't access Enhanced Foreign Exchange Rate API

Hey @vermasandeep11,

 

I'm happy to help you gain access to the Enhanced Foreign Exchange Rates API product. Please let us know if you're a bank or a processor in Europe? Also, are you an existing Visa client and what's the name of your company? If you're a bank or processor then you'll be auto-approved for restricted access to the Enhanced FX Rates API product. If you have other questions, please ask and someone will be happy to assist.




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

vermasandeep11
Regular Visitor

Re: Can't access Enhanced Foreign Exchange Rate API

Hi,

I am facing below issue while using below mentioned API.  asOfDate is past date even then I am facing this issue. Could you please help me to resolve this issue.

 

API :   https://sandbox.api.visa.com/fx/rates/markup

 

Request Body

{
"asOfDate": 1595569136000,
"fromAmount": "50.00",
"fromCurrency": "USD",
"toCurrency": "EUR",
"additionalRate": "2.00",
"additionalFee": "0.10"
}

 

Repsonse

{
"status": "BAD_REQUEST",
"message": "One or more of the attributes provided is invalid.",
"reason": "invalidParameter",
"details": [
{
"attribute": "asOfDate",
"message": "must be a date in the past or in the present"
}
}

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Can't access Enhanced Foreign Exchange Rate API

Hi @vermasandeep11,

 

Please try "asOfDate": 1595569136 and you should get a success response like below:


Response
{
"toAmountWithAdditionalFee": "47.304388",
"lastUpdatedVisaRate": 1582670433,
"toCurrency": "EUR",
"toCurrencyName": "Euro",
"fromAmount": "50.00",
"fromCurrency": "USD",
"benchmarks": [{
"benchmarkSystem": "ECB",
"lastUpdatedBenchmarkRate": 1595513137,
"markupWithoutAdditionalFee": "0.070799",
"markupWithAdditionalFee": "0.094529",
"benchmarkBaseCurrencyName": "Euro",
"benchmarkBaseCurrency": "EUR",
"toAmountWithBenchmarkRate": "43.218947",
"benchmarkFxRate": "0.8643789437"
}],
"asOfDate": 1595569136,
"fromCurrencyName": "United States Dollar",
"fxRateVisa": "0.9255762381",
"toAmountWithVisaRate": "46.278812",
"fxRateWithAdditionalFee": "0.9440877629"
}


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
vermasandeep11
Regular Visitor

Re: Can't access Enhanced Foreign Exchange Rate API

Thanks , Its working now.