401 – Invalid TimeStamp
I am writing code in Salesforce Apex to get a customer detail, GET to url:
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.