Dynamic URL Discovery for RESTlet Clients
A request to a RESTlet must be sent to a URL that includes the correct RESTlet domain for the account where the RESTlet is deployed. You can send a request to rest.netsuite.com and retrieve the correct RESTlet domain names for any NetSuite account to which you have login permission.
The following alternatives are designed for these use cases. These alternatives can be used in production, sandbox, and Release Preview accounts.
-
You can use the The DataCenterUrls REST Service to dynamically discover the correct domains. It provides the same information as the SOAP web services operation.
-
The REST Roles Service is a standalone service. You can use the REST roles service for external applications based on RESTlets.
For a NetSuite account that calls a RESTlet deployed in another NetSuite account, consider a solution that includes deployment of a version 2.0 SuiteScript. You can use the url.resolveDomain(options) to retrieve the RESTlet domain for any NetSuite account.
Related Topics
- Dynamic Discovery of URLs
- Dynamic URL Discovery for SOAP Web Services
- Understanding NetSuite URLs
- NetSuite IP Addresses
- Understanding NetSuite URLs
- URLs for Account-Specific Domains
- Supported TLS Protocol and Cipher Suites
- Secure HTTPS Outbound Communication and SSL Certificates
- VPN Configuration for User Access to NetSuite
- Traffic Health