Customer Message
A customer message record exposes a customer message to REST web services.
For more information about customer messages and how they function in the user interface, see Setting Up Accounting Lists.
To access this record in NetSuite, go to Setup > Accounting > Accounting Lists.
This record:
-
is not a subrecord
-
has no subrecords
The REST API Browser includes information about the field names and field types of the customer message record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s customer message reference page.
For information about using the REST API Browser, see The REST API Browser
Record ID
The record ID for the customer message REST record is customermessage.
Code Sample
The following samples show common use cases for a customer message record. The example ID is 6.
Retrieving Customer Message Metadata
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/metadata-catalog/customermessage
Creating a Customer Message Using a POST Request
POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/customermessage
{ "description": "example message description", "isInactive": false, "name": "ExampleCustomerMessage", "preferred": false
}
Deleting a Customer Message Using a DELETE Request
DELETE https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/customermessage/6