I'm getting an error when trying to create a customer profile.. "The provided access token is invalid". I am using node sdk and oauth flow for merchant authenticaiton. I tested the same access token in postman to see if it works and it does. I am also refreshing the access token using the refresh token before making the request. Here is some sample code below..
let merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType(); merchantAuthenticationType.setAccessToken(accessToken);
11-08-2018 08:47 AM
Just to be clear, I've been able to successfully create customer profiles using the api with the same access token. It seems that I'm only having this issue with the access token in the node sdk.
11-13-2018 07:17 AM
@jdoyle112 wrote:I'm getting an error when trying to create a customer profile.. "The provided access token is invalid". I am using node sdk and oauth flow for merchant authenticaiton. I tested the same access token in postman to see if it works and it does. I am also refreshing the access token using the refresh token before making the request. Here is some sample code below..
let merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType(); merchantAuthenticationType.setAccessToken(accessToken);I'm out of ideas here and could use some help..
The invalid access token error simply means the token for the selected app used for posting is expired and needs to be re-authenticated. Copy the displayedaccess token from the next window that displays and then paste in the Access Token Box.
02-25-2019 01:16 AM