401 – Invalid TimeStamp

Hi all,

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.




Rookie Asked on February 7, 2022 in SuiteCloud.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor