Dynamic URL Discovery for RESTlet Clients
To call a RESTlet, use a URL with the correct RESTlet domain for the account where it's deployed. Send a request to rest.netsuite.com to get the correct RESTlet domain names for any NetSuite account you can log in to.
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