Subtotal Item

A subtotal item record exposes a subtotal item to REST web services. This record is not a subrecord.

The REST API Browser includes information about the field names and field types of the subtotal item record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s subtotalItem reference page.

For information about using the REST API Browser, see The REST API Browser.

Record IDs

The record ID for a subtotal item REST record is subtotalItem.

Code Samples

The following samples show common use cases for subtotal items. The example ID is 4.

Creating a Subtotal Item Using a POST Request

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/subtotalItem
{ "itemId": " Subtotal Item A", "displayName": "Subtotal Item A DisplayName"
} 

            

Retrieving a Subtotal Item Using a GET Request

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/subtotalItem/4 

            

Updating a Subtotal Item Using a PATCH Request

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/subtotalItem/4
{ "itemId": "Payment Item B", "displayName": "Payment Item B DisplayName", "description": "description"
} 

            

Deleting a Subtotal Item Using a DELETE Request

              DELETE https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/subtotalItem/4 

            

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices