Hii, I tried to fetch offers details using offers API and got this response
Hi @blaster777,
Please provide the following information for further assistance with the error.
Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.
Hi @blaster777,
Please let me know if you still need help with the error. If so, please provide the information that I requested of you below. If the error is fixed, please let me know so I can take you off my contact list.
Hii DianaTran-Yee
I'm Sorry for not replying to your last comment. Actually the error was resolved yesterday. You can close this issue now.
Thanking you
Aayush Bansal
Hii
I'm facing one more issue. My company has the production access. I was facing issue in the offers API, but that issue is resolved now. Now I'm facing issue in foreign exchange rates API.
I was using the x-pay-token method for generating the response.
PROD API: https://api.visa.com/forexrates/v2/foreignexchangerates
var timestamp = Math.floor(Date.now() / 1000);
var resourcePath = "";
var queryParams = "apikey=XXXXXXXXXXXXXXXXX";
var sharedSecret = "XXXXXXXXXXXXXXXXXXXX";
var postBody = "";
var preHashString = timestamp + resourcePath + queryParams + postBody;
var crypto = require('crypto');
var hashString = crypto.createHmac('SHA256', sharedSecret).update(preHashString).digest('hex');
var xPayToken = 'xv2:' + timestamp + ':' + hashString;
console.log(xPayToken);
This was the code for generating the x-pay-token.
I want to ask that, what values should I fill in the variables resourcePath and postBody.
Here is the request body :-
Hi @blaster777,
Please send this problem to developer@visa.com and include the region you are from. A representative from Production Support will reach out to you for further assistance.
The possible reasons for the response could be incorrect API endpoint, authentication issues, or server error.