Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
OAuth 1.0 AuthUrl is generating but woocommerce is returning 401
Hi Folks,
I'm trying to generate an authenticated URL using Consumer Key and Consumer Secret and signature method is HMAC-SHA256 However getting 401 though I've tested in Postman with consumer key and secret, and it is working fine there.
This code is generating the signed URL to request WooCommerce, but somehow WooCommerce return the 401 and says your signature doesn't match
while creating HMAC using crypto.createHmac i'm passing the consumer secret from Netsuite API Secret.
using crypto.createSecretKey method
const WOO_API_URL = config.WOOCOMMERCE.API_URL;const SIGNATURE_METHOD = config.WOOCOMMERCE.SIGNATURE_METHOD;const VERSION = config.WOOCOMMERCE.VERSION || '1.0';
0