Visa Developer Community

Highlighted
Regular Visitor

Bad Request error - foreignexchangerates

Hi team,

 

I am trying to connect the foreignexchangerates api via the sample code provided but I am getting a 400 response. Could you please help me to identify the issue.

 

URL : https://sandbox.api.visa.com/forexrates/v1/foreignexchangerates

Method : POST

Request Entity : <POST https://sandbox.api.visa.com/forexrates/v1/foreignexchangerates,{"cardAcceptor":{"address":{"city":"... City","country":"RU","county":"San Mateo","state":"CA","zipCode":"94404"},"idCode":"ABCD1234ABCD123","name":"ABCD","terminalId":"ABCD1234"},"destinationCurrencyCode":"840","markUpRate":"1","retrievalReferenceNumber":"201010101031","sourceAmount":"100","sourceCurrencyCode":"643","systemsTraceAuditNumber":"350421"},{Accept=[application/json], Content-Type=[application/json], Authorization=[Basic /*REMOVED_BY_ME */ ], User-Agent=[VDP_SampleCode_Java]}>

 

RESPONSE : 400 BAD REQUEST 

RESPONSE HEADER : 

X-CORRELATION-ID : 1585256829_132_1730880641_l73c018_VDP_WS

 

Thanks,

Rijo

 

4 REPLIES 4
Highlighted
Visa Dev Moderator

Re: Bad Request error - foreignexchangerates

Hey @rijo,

 

Please refer to the Visa Developer Error Codes page to resolve the issuer - https://developer.visa.com/pages/visa-developer-error-codes

 



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

Thanks,
Diana

Tags (1)
Highlighted
Regular Visitor

Re: Bad Request error - foreignexchangerates

Hi, Thanks for the reply But it didnt helped. I am still geting the same error while connecting. 

Highlighted
Visa Dev Moderator

Re: Bad Request error - foreignexchangerates

Hey @rijo

I've logged case INC9276509 for the engineering team to investigate. We're currently working to resolve your issue and someone will get back to you soon.

 



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

Thanks,
Diana

Highlighted
Visa Dev Moderator

Re: Bad Request error - foreignexchangerates

Hey @rijo,

 

Can you please let us know if you're still experiencing an issue? If you're still having an issue, please pass the proper credentials at the request.

 

 



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

Thanks,
Diana