ANS-0660 · WEB SERVICES & INTEGRATIONS
How to Retrieve NetSuite Account and Domain Information via REST Web Services
NetSuite users can programmatically obtain their account and associated domain details by leveraging a standard REST web service request.
Short answer
To retrieve NetSuite account and domain information, including system and REST domains, make a REST request to the appropriate NetSuite REST roles endpoint. Authenticate the request using an NLAuth header with your email and password. This method provides a programmatic way to access essential account configuration details.
Scenario
NetSuite users or integrators may need to programmatically retrieve a list of their associated NetSuite accounts, along with their respective system and REST domains. This information is crucial for configuring integrations, understanding account environments, or verifying domain structures, especially when dealing with multiple NetSuite instances or recent platform updates.
Solution
To retrieve the list of NetSuite accounts, including their associated system domains and REST domains, a REST request can be made to the NetSuite REST roles service. The request should be authenticated using an NLAuth header with the user's email and password. The recommended endpoint for this service is typically:
https://rest.netsuite.com/rest/rolesWhen this request is successfully executed, the response will provide comprehensive details about the accounts and their respective domain configurations.
Expert NetSuite Support
Need help with this NetSuite issue?
Web Services & Integrations consulting and configuration support
