ServerTime Operation
The serverTime
operation returns the NetSuite server time in UTC, regardless of a user's time zone. Developers do not have to rely on client time when writing synchronization procedures because the client time may not be synchronized with the NetSuite server time. For example, if you need to synchronize customer data with NetSuite, you can call serverTime
to initialize your synchronization process. There are no explicit permissions for this operation.
Note the following possible use cases:
-
If you choose, you can write client code that takes the GMT returned by NetSuite and converts it to your local time zone.
-
To synchronize new or changed customers records, you can search customers and filter by
lastModifiedDate
using the value returned inserverTime
. This makes your synchronization process independent of your client time, which may not be synchronized with the NetSuite server time, and hence the timestamp that's used to track changes.
Request
The serverTime
operation takes no arguments and returns the NetSuite server time, regardless of a user's time zone.
GET https://demo123.suitetalk.api.netsuite.com/services/rest/system/v1/serverTime
Response
The dateTime value that is returned by serverTime
is in UTC time zone. For example:
{
"serverTime": "2025-03-26T16:21:00.000Z"
}