Reply
Highlighted
Member
Posts: 1
Registered: ‎02-03-2020

Invalid access token

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..