I'm trying to use the Offers Data API but I'm getting back the error "AUTHENTICATION_ERROR" with message the following message:
> "Access Denied. Please consult the VDP documentation for providing your App with the proper auth credentials for the APIs being accessed."
Here's the code (I'm using node.js):
The file './config/visa.json' contains my userId and password.
The function 'getBasicAuthHeader' was taken straight out of the VISA SampleCode repository:
Why am I getting this error? Is there anything wrong with the code?
Thanks in advance
Solved! Go to Solution.
Sorry to hear that. I am looking into this right now. Will get back to you shortly.
By the way, are you sending a valid cert for the call? We often get the mentioned error when we don’t send any certificate for a Mutual Auth API...let me know!
Duh, that was it. I thought I had to send only the userId and password. Now I'm also sending the certificate and the key and it's working.
Thank you for helping 🙂