Hello,
Recently I started with Visa api.
one of Api foreignexchangerates
I tried to call following endpoint
https://sandbox.api.visa.com/forexrates/v1/foreignexchangerates
Input:
accept:application/json
Authorization :base64 {userid:password}
Body:
{
"cardAcceptor": {
"address": {
"city": "Foster 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"
}
but getting this response on POSTMAN
{
"responseStatus": {
"status": 400,
"code": "9124",
"severity": "ERROR",
"message": "Expected input credential was not present",
"info": ""
}
}
can you guys provide sample nodejs code to integrate your API's.
Solved! Go to Solution
Hi, Please refer to the below thread for Postman settings.
https://community.developer.visa.com/t5/Use-Cases/APIs-for-payment-gateway-9124-error/m-p/10448#M113
Secondly, Node JS sample code can be downloaded from Project Dashboard --> Sample Code tab.
Thanks,
Jai