Bad Request error - foreignexchangerates

rijo
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

 

6 REPLIES 6
API_Products
Visa Developer Support Specialist

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

 




Thanks,

Tee



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

rijo
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. 

API_Products
Visa Developer Support Specialist

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.

 




Thanks,

Tee



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

API_Products
Visa Developer Support Specialist

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.

 

 




Thanks,

Tee



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

API_Products
Visa Developer Support Specialist

Re: Bad Request error - foreignexchangerates

Hi @rijo,

 

I'd like to follow up to ask if there's anything else we can help you with. Is your issue resolved? Please let us know if you have other questions.




Thanks,

Tee



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

API_Products
Visa Developer Support Specialist

Re: Bad Request error - foreignexchangerates

Hi @rijo,

 

We haven't heard from you, hence, your incident will be closed as resolved. We're happy to help if you have further questions.




Thanks,

Tee



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