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.

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