Re: Multicurrency Conversion Error on THB conversion

NitipatSut
New Contributor

Multicurrency Conversion Error on THB conversion

Hi Everyone,

I'm working on currency conversion API, I want to convert THB (Thai baht) to any currencies.

Everything works fine on every currency except THB.

I got these error when I'm trying to convert THB.
Capture.PNG

Thanks
7 REPLIES 7
I_Doroteo3
Visa Developer Support Specialist

Re: Multicurrency Conversion Error on THB conversion

Hi @NitipatSut,

Please provide the following information:

  1. Endpoint
  2. Request Header
  3. Request Body
  4. Response Header (include the x-correlation-id)
  5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

I'll send this information to the product team to look into your error.

To learn more about common Visa Developer error codes and how to resolve them, please navigate to our Visa Developer Error Codes page here - https://developer.visa.com/pages/visa-developer-error-codes

If you don't find an error code listed here, please refer to the API-specific error codes in its respective documentation pages.

Thanks,

Illana

NitipatSut
New Contributor

Re: Multicurrency Conversion Error on THB conversion

Hi @I_Doroteo3 ,

Thank you for your supported.

Here is addition information.

Endpoint : POST

https://sandbox.api.visa.com/forexrates/v2/foreignexchangerates

Request Headers

Authorization
BasicUko5RFFQRkJCRVFTVDBTTzQ4TjkyMVdFUU9XczVaWjFxQjhwNW5EajZfWDdZb3pzRTpJUUZmNjVyWDB3WEY5
Content-Typeapplication/json; charset=utf-8
User-AgentPostmanRuntime/7.29.2
X-Forwarded-User-AgentPostmanRuntime/7.29.2
Accept
*/*
Cache-Control
no-cache
Postman-Token
f041e29a-a23c-4e8a-8bcc-46c996c69388
Host
sandbox.api.visa.com
Accept-Encoding
gzip, deflate, br
Connection
keep-alive
Content-Length
131

Request Body

{ "rateProductCode": "A", "destinationCurrencyCode":840, "destinationAmount": 100, "sourceCurrencyCode": 764 }

Response Headers

Servernginx
DateThu, 01 Dec 2022 03:06:54 GMT
Content-Typeapplication/json;charset=UTF-8
Content-Length104
Connectionkeep-alive
X-SERVED-BY-7d57d7d59
X-CORRELATION-ID1669864014_008_1049614121_-7d57d7d59_VDP_WS
X-ERROR-ORIGIN9900
X-APP-STATUS400
Content-Languageen-US
Cache-Controlno-cache, no-store, must-revalidate
X-Frame-OptionsSAMEORIGIN
X-XSS-Protection0
X-Content-Type-Optionsnosniff
Strict-Transport-Securitymax-age=31536000;includeSubdomains
Pragmano-cache
Expires-1
Content-Security-Policy-Report-Onlydefault-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-Content-Security-Policy-Report-Onlydefault-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-WebKit-CSP-Report-Only
default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;

Response Body

{"errorResponse":{"status":400,"reason":"3005","message":"Multicurrency Conversion Error","details":[]}}

Thanks

I_Doroteo3
Visa Developer Support Specialist

Re: Multicurrency Conversion Error on THB conversion

Hi @NitipatSut,

Please try using 834 for the Thai Baht currency code.

764 is the country code for Thailand.

You can find these codes here: https://developer.visa.com/request_response_codes#currency_codes

Thanks,

Illana

NitipatSut
New Contributor

Re: Multicurrency Conversion Error on THB conversion

Hi @I_Doroteo3

According to your provided reference 764 is currency code for THB

834 is for Tanzania

Capture.PNG

Please check

Thanks,

I_Doroteo3
Visa Developer Support Specialist

Re: Multicurrency Conversion Error on THB conversion

Hi @NitipatSut,

Apologies, you are correct. I also tried running this API call in Postman and received the same error when using the Thai currency code.

Using the information above that you submitted, I sent in a ticket to the technical team to take a look. I'll reach back out when I receive a response.

Thanks,

Illana

I_Doroteo3
Visa Developer Support Specialist

Re: Multicurrency Conversion Error on THB conversion

Hi @NitipatSut

 

I received a response from the technical team- the Thai Baht currency is not supported in sandbox; you must promote your project to production in order to user the complete list of currencies.

 

Thanks, 

Illana

NitipatSut
New Contributor

Re: Multicurrency Conversion Error on THB conversion

Why my reply dissappear.