Hello,
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):
https://gist.github.com/anonymous/2032b0033e3c52959a27a987ec8d9bc7
The file './config/visa.json' contains my userId and password.
The function 'getBasicAuthHeader' was taken straight out of the VISA SampleCode repository:
https://github.com/visa/SampleCode/blob/master/vdp-node/libs/visaapiclient.js#L23
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.
Thank you,
Ricardo
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!
Hey ricardo_visa,
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 🙂
Hello,
Can you please guide how to get certificate?