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.

Note:

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

General Notices