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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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