DataCenterUrls REST Service

The DataCenterUrls REST service lets you obtain the correct URL for external client application access to NetSuite. When you build an integration between NetSuite and an external client application, you must incorporate logic that can determine the correct URL for the appropriate NetSuite account.

For details about dynamic discovery of URLs, see Dynamic Discovery of URLs for SOAP Web Services and RESTlet Clients.

Usage Notes

The DataCenterUrls REST service does not require authentication. This makes it ideal for integrations that use token-based authentication.

When you submit your request, you must provide your account ID as an input parameter so that the information returned will be specific to your account.

You can use the DataCenterUrls REST service to discover account-specific domains for the following :

These account-specific domains are unique to your account. The URLs do not contain a data center-specific indentifier, they contain your account ID instead. For more information, see URLs for Account-Specific Domains.

You can send a request for your production, sandbox, and Release Preview accounts. Ensure that you include the appropriate account ID in the request. The format is <accountID>, where <accountID> is a variable representing the account ID.

Sample REST DataCenterUrls Request and Response

In the following examples, the account ID, or c parameter, is 123456. Send your HTTP GET request in the following format:


If you receive a Service Unavailable error message, try sending the request in the following format: Including the c parameter in your request ensures that your request is routed correctly according to your version and that you receive the correct response.

The following is an example of the complete text of the Service Unavailable error message:

Service Unavailable

No service is available at this URL. If you expect this service to be available for your account, ensure your account number appears in the URL as request parameter ā€œcā€.


This service does not require an authorization or a content-type header.

When sending a correctly formed request, the response is returned in one of the following formats. The returned information should not be parsed to retrieve any additional information.

Examples of Returned Information

Environments where account-specific domains are used:

"restDomain": https://<accountID> 
"webservicesDomain": https://<accountID>
"systemDomain": https://<accountID>


The full request and response can look as follows.


          GET /rest/datacenterurls?account=123456 HTTP/1.1
Host: <host> 



          HTTP/1.1 200 OK
Date: Thu, 22 Jun 2017 05:48:56 GMT
Content-Length: 179
Content-Type: application/json


REST DataCenterUrls Errors

If you send a GET request that contains a nonexistent account ID, you receive the default NetSuite domains in the response.

"restDomain": "",
"webservicesDomain": "",
"systemDomain": ""


Additionally, you may receive the following errors.



USER_ERROR: You need to provide a proper value for the required field: account.

This error is returned if you send a GET request that does not include the account ID input parameter.

USER_ERROR: Company ID is invalid

This error is returned if the account ID in the request contains an invalid character, such as a space or a percent sign.

HTTP Error 405 - Method Not Allowed

The DataCenterUrls service accepts only the HTTP GET method. This error is returned if the request contains an unsupported HTTP method.

Related Topics

Understanding NetSuite URLs
URLs for Account-Specific Domains
RESTlets vs. Other NetSuite Integration Options
The REST Roles Service
Issue Token and Revoke Token REST Services for Token-based Authentication

General Notices