401 – Invalid TimeStamp
Hi all,
I am writing code in Salesforce Apex to get a customer detail, GET to url:
https://1234567-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/customer/5033
which I keep getting 401 status.
I was provided the login detail by Netsuite with InvalidTimestamp description.
Timestamp is generated correctly – apex code: String.valueOf(DateTime.now().getTime()/1000);
which confirmed against successful calls by Postman.
I could post the prototype code here if needed, but figured I ask the question first to maybe get an insight of what could be wrong.
Any feedback is appreciated.
Thanks
Jay