- Create API Credentials:
- Log in to your NetSuite account as an administrator.
- Navigate to “Setup” > “Integration” > “Manage Integrations” > “New.”
- Create a new integration record and generate the API credentials (e.g., Consumer Key, Consumer Secret, Token ID, Token Secret). Take note of these credentials as they will be used to authenticate your API requests.
- Set Up the API Client:
- Choose a programming language or framework to interact with the NetSuite REST API (e.g., Python, JavaScript, Java).
- Use third party connectors (Hightouch)
- Authenticate with OAuth 1.0:
- NetSuite REST API uses OAuth 1.0 for authentication. Implement the OAuth 1.0 protocol in your chosen programming language to sign API requests with your credentials.
- If using 3rd party connectors all the requests Tokens will be established its own.
- Make API Requests:
- Once authenticated, you can make requests to the NetSuite API endpoints to manage service items.
- The base URL for API requests is typically in the format:
https://<ACCOUNT_ID>.suitetalk.api.netsuite.com/services/rest/record/v1/<RESOURCE> - For service items, the resource would be “item” and you can use the HTTP methods (GET, POST, PUT, DELETE) to perform CRUD operations on service items.
- Examples:
- For example, to retrieve a list of service items, you might make a GET request to:bashCopy code
GET https://<ACCOUNT_ID>.suitetalk.api.netsuite.com/services/rest/record/v1/item?type=service - To create a new service item, you would make a POST request with the item details in the request body.
- To update an existing service item, you would make a PUT request with the updated item details and the item’s internal ID.
- To delete a service item, you would make a DELETE request with the item’s internal ID.
- For example, to retrieve a list of service items, you might make a GET request to:bashCopy code
NOTE
As per 2023.1 release, the service-for-sale item for REST API is a beta version. The records marked with a beta label are a beta feature. The contents of this feature are preliminary and may be changed or discontinued without prior notice. Any changes may impact the feature’s operation with the NetSuite application.