// Some code
[{
"handle": "leads",
"meta": {
"short": "Leads",
"description": "Represents NetSuite lead records, which are typically stored as CRM entities with basic prospect information before qualification."
},
"endpoint": {
"value": "/services/rest/record/v1/lead",
"placeholders": []
},
"fields": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the lead record"
}
},
{
"name": "entityId",
"type": "String",
"selector": ["entityId"],
"meta": {
"description": "Lead display or account ID"
}
},
{
"name": "companyName",
"type": "String",
"selector": ["companyName"],
"meta": {
"description": "Lead company name"
}
},
{
"name": "email",
"type": "String",
"selector": ["email"],
"meta": {
"description": "Primary email address"
}
},
{
"name": "phone",
"type": "String",
"selector": ["phone"],
"meta": {
"description": "Primary phone number"
}
},
{
"name": "status",
"type": "String",
"selector": ["status", "id"],
"meta": {
"description": "Lead status internal ID"
}
},
{
"name": "dateCreated",
"type": "String",
"selector": ["dateCreated"],
"meta": {
"description": "Creation datetime in ISO format"
}
},
{
"name": "lastModifiedDate",
"type": "String",
"selector": ["lastModifiedDate"],
"meta": {
"description": "Last modification datetime in ISO format"
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/lead",
"placeholders": []
},
"headers": {},
"queryParams": {
"limit": {
"value": "{{limit}}",
"placeholders": [
{
"name": "limit",
"type": "Integer",
"description": "Maximum number of leads to return",
"required": false,
"default": "100",
"options": []
}
]
},
"q": {
"value": "{{searchQuery}}",
"placeholders": [
{
"name": "searchQuery",
"type": "String",
"description": "Optional search query filter",
"required": false,
"default": "",
"options": []
}
]
}
},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"read": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/lead/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the lead",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"create": {
"method": "POST",
"path": {
"value": "/services/rest/record/v1/lead",
"placeholders": []
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"entityId\":\"{{entityId}}\",\"companyName\":\"{{companyName}}\",\"email\":\"{{email}}\",\"phone\":\"{{phone}}\",\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "entityId",
"type": "String",
"description": "Lead display ID",
"required": false,
"default": "",
"options": []
},
{
"name": "companyName",
"type": "String",
"description": "Company name for the lead",
"required": true,
"default": "",
"options": []
},
{
"name": "email",
"type": "String",
"description": "Primary email address",
"required": false,
"default": "",
"options": []
},
{
"name": "phone",
"type": "String",
"description": "Primary phone",
"required": false,
"default": "",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Internal ID of lead status",
"required": false,
"default": "",
"options": []
}
]
}
},
"update": {
"method": "PATCH",
"path": {
"value": "/services/rest/record/v1/lead/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the lead",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"companyName\":\"{{companyName}}\",\"email\":\"{{email}}\",\"phone\":\"{{phone}}\",\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "companyName",
"type": "String",
"description": "Updated company name",
"required": false,
"default": "",
"options": []
},
{
"name": "email",
"type": "String",
"description": "Updated email",
"required": false,
"default": "",
"options": []
},
{
"name": "phone",
"type": "String",
"description": "Updated phone",
"required": false,
"default": "",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Updated status internal ID",
"required": false,
"default": "",
"options": []
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "/services/rest/record/v1/lead/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the lead",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
}
},
"webhooks": [
{
"event": "created",
"path": "/webhooks/netsuite/leads/created",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the created lead"
}
},
{
"name": "entityId",
"type": "String",
"selector": ["entityId"],
"meta": {
"description": "Lead display ID"
}
},
{
"name": "email",
"type": "String",
"selector": ["email"],
"meta": {
"description": "Lead primary email"
}
},
{
"name": "dateCreated",
"type": "String",
"selector": ["dateCreated"],
"meta": {
"description": "Creation date"
}
}
]
},
{
"event": "updated",
"path": "/webhooks/netsuite/leads/updated",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the updated lead"
}
},
{
"name": "entityId",
"type": "String",
"selector": ["entityId"],
"meta": {
"description": "Lead display ID"
}
},
{
"name": "email",
"type": "String",
"selector": ["email"],
"meta": {
"description": "Lead primary email"
}
},
{
"name": "lastModifiedDate",
"type": "String",
"selector": ["lastModifiedDate"],
"meta": {
"description": "Updated date"
}
}
]
}
]
},
{
"handle": "calendar",
"meta": {
"short": "Calendar Events",
"description": "Represents NetSuite calendar event records for meetings, appointments, and related scheduled activities."
},
"endpoint": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"fields": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the calendar event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Event title or subject"
}
},
{
"name": "message",
"type": "String",
"selector": ["message"],
"meta": {
"description": "Event description or notes"
}
},
{
"name": "location",
"type": "String",
"selector": ["location"],
"meta": {
"description": "Event location"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Event start date"
}
},
{
"name": "startTime",
"type": "String",
"selector": ["startTime"],
"meta": {
"description": "Event start time"
}
},
{
"name": "endTime",
"type": "String",
"selector": ["endTime"],
"meta": {
"description": "Event end time"
}
},
{
"name": "timeZone",
"type": "String",
"selector": ["timezone"],
"meta": {
"description": "Event time zone identifier"
}
},
{
"name": "status",
"type": "String",
"selector": ["status", "id"],
"meta": {
"description": "Event status internal ID"
}
},
{
"name": "allDayEvent",
"type": "Boolean",
"selector": ["allDayEvent"],
"meta": {
"description": "Indicates if the event lasts all day"
}
},
{
"name": "timedEvent",
"type": "Boolean",
"selector": ["timedEvent"],
"meta": {
"description": "Indicates if the event has specific times"
}
},
{
"name": "organizer",
"type": "Integer",
"selector": ["organizer", "id"],
"meta": {
"description": "Organizer employee internal ID"
}
},
{
"name": "createdDate",
"type": "String",
"selector": ["createdDate"],
"meta": {
"description": "Event creation datetime"
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"headers": {},
"queryParams": {
"limit": {
"value": "{{limit}}",
"placeholders": [
{
"name": "limit",
"type": "Integer",
"description": "Maximum number of events to return",
"required": false,
"default": "100",
"options": []
}
]
},
"q": {
"value": "{{searchQuery}}",
"placeholders": [
{
"name": "searchQuery",
"type": "String",
"description": "Optional search query",
"required": false,
"default": "",
"options": []
}
]
}
},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"read": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"create": {
"method": "POST",
"path": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"title\":\"{{title}}\",\"message\":\"{{message}}\",\"location\":\"{{location}}\",\"startDate\":\"{{startDate}}\",\"startTime\":\"{{startTime}}\",\"endTime\":\"{{endTime}}\",\"timedEvent\":{{timedEvent}},\"allDayEvent\":{{allDayEvent}},\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "title",
"type": "String",
"description": "Event title",
"required": true,
"default": "",
"options": []
},
{
"name": "message",
"type": "String",
"description": "Event description",
"required": false,
"default": "",
"options": []
},
{
"name": "location",
"type": "String",
"description": "Event location",
"required": false,
"default": "",
"options": []
},
{
"name": "startDate",
"type": "String",
"description": "Start date in YYYY-MM-DD",
"required": true,
"default": "",
"options": []
},
{
"name": "startTime",
"type": "String",
"description": "Start time in HH:mm",
"required": false,
"default": "",
"options": []
},
{
"name": "endTime",
"type": "String",
"description": "End time in HH:mm",
"required": false,
"default": "",
"options": []
},
{
"name": "timedEvent",
"type": "Boolean",
"description": "Whether event has specific time",
"required": false,
"default": "true",
"options": []
},
{
"name": "allDayEvent",
"type": "Boolean",
"description": "Whether event is all-day",
"required": false,
"default": "false",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Internal ID of status",
"required": false,
"default": "",
"options": []
}
]
}
},
"update": {
"method": "PATCH",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"title\":\"{{title}}\",\"message\":\"{{message}}\",\"location\":\"{{location}}\",\"startDate\":\"{{startDate}}\",\"startTime\":\"{{startTime}}\",\"endTime\":\"{{endTime}}\",\"timedEvent\":{{timedEvent}},\"allDayEvent\":{{allDayEvent}},\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "title",
"type": "String",
"description": "Updated title",
"required": false,
"default": "",
"options": []
},
{
"name": "message",
"type": "String",
"description": "Updated description",
"required": false,
"default": "",
"options": []
},
{
"name": "location",
"type": "String",
"description": "Updated location",
"required": false,
"default": "",
"options": []
},
{
"name": "startDate",
"type": "String",
"description": "Updated start date",
"required": false,
"default": "",
"options": []
},
{
"name": "startTime",
"type": "String",
"description": "Updated start time",
"required": false,
"default": "",
"options": []
},
{
"name": "endTime",
"type": "String",
"description": "Updated end time",
"required": false,
"default": "",
"options": []
},
{
"name": "timedEvent",
"type": "Boolean",
"description": "Updated timed flag",
"required": false,
"default": "true",
"options": []
},
{
"name": "allDayEvent",
"type": "Boolean",
"description": "Updated all-day flag",
"required": false,
"default": "false",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Updated status internal ID",
"required": false,
"default": "",
"options": []
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
}
},
"webhooks": [
{
"event": "created",
"path": "/webhooks/netsuite/calendar/created",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the created event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Event title"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Start date"
}
},
{
"name": "startTime",
"type": "String",
"selector": ["startTime"],
"meta": {
"description": "Start time"
}
},
{
"name": "timezone",
"type": "String",
"selector": ["timezone"],
"meta": {
"description": "Event time zone"
}
}
]
},
{
"event": "updated",
"path": "/webhooks/netsuite/calendar/updated",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the updated event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Event title"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Start date"
}
},
{
"name": "startTime",
"type": "String",
"selector": ["startTime"],
"meta": {
"description": "Start time"
}
},
{
"name": "lastModifiedDate",
"type": "String",
"selector": ["lastModifiedDate"],
"meta": {
"description": "Last modification datetime"
}
}
]
}
]
},
{
"handle": "events",
"meta": {
"short": "Activity Events",
"description": "Represents generic NetSuite activity-style events, aligned to calendar event records for integration purposes."
},
"endpoint": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"fields": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Title or subject of the event"
}
},
{
"name": "message",
"type": "String",
"selector": ["message"],
"meta": {
"description": "Details or notes about the event"
}
},
{
"name": "status",
"type": "String",
"selector": ["status", "id"],
"meta": {
"description": "Event status internal ID"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Start date"
}
},
{
"name": "startTime",
"type": "String",
"selector": ["startTime"],
"meta": {
"description": "Start time"
}
},
{
"name": "endTime",
"type": "String",
"selector": ["endTime"],
"meta": {
"description": "End time"
}
},
{
"name": "organizer",
"type": "Integer",
"selector": ["organizer", "id"],
"meta": {
"description": "Organizer internal ID"
}
},
{
"name": "createdDate",
"type": "String",
"selector": ["createdDate"],
"meta": {
"description": "Creation datetime"
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"headers": {},
"queryParams": {
"limit": {
"value": "{{limit}}",
"placeholders": [
{
"name": "limit",
"type": "Integer",
"description": "Maximum number of events to return",
"required": false,
"default": "100",
"options": []
}
]
}
},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"read": {
"method": "GET",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
},
"create": {
"method": "POST",
"path": {
"value": "/services/rest/record/v1/calendarevent",
"placeholders": []
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"title\":\"{{title}}\",\"message\":\"{{message}}\",\"startDate\":\"{{startDate}}\",\"startTime\":\"{{startTime}}\",\"endTime\":\"{{endTime}}\",\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "title",
"type": "String",
"description": "Event title",
"required": true,
"default": "",
"options": []
},
{
"name": "message",
"type": "String",
"description": "Event description",
"required": false,
"default": "",
"options": []
},
{
"name": "startDate",
"type": "String",
"description": "Start date",
"required": true,
"default": "",
"options": []
},
{
"name": "startTime",
"type": "String",
"description": "Start time",
"required": false,
"default": "",
"options": []
},
{
"name": "endTime",
"type": "String",
"description": "End time",
"required": false,
"default": "",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Event status internal ID",
"required": false,
"default": "",
"options": []
}
]
}
},
"update": {
"method": "PATCH",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {
"Content-Type": {
"value": "application/json",
"placeholders": []
}
},
"queryParams": {},
"bodyTemplate": {
"value": "{\"title\":\"{{title}}\",\"message\":\"{{message}}\",\"startDate\":\"{{startDate}}\",\"startTime\":\"{{startTime}}\",\"endTime\":\"{{endTime}}\",\"status\":{\"id\":\"{{statusId}}\"}}",
"placeholders": [
{
"name": "title",
"type": "String",
"description": "Updated title",
"required": false,
"default": "",
"options": []
},
{
"name": "message",
"type": "String",
"description": "Updated description",
"required": false,
"default": "",
"options": []
},
{
"name": "startDate",
"type": "String",
"description": "Updated start date",
"required": false,
"default": "",
"options": []
},
{
"name": "startTime",
"type": "String",
"description": "Updated start time",
"required": false,
"default": "",
"options": []
},
{
"name": "endTime",
"type": "String",
"description": "Updated end time",
"required": false,
"default": "",
"options": []
},
{
"name": "statusId",
"type": "String",
"description": "Updated status internal ID",
"required": false,
"default": "",
"options": []
}
]
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "/services/rest/record/v1/calendarevent/{{id}}",
"placeholders": [
{
"name": "id",
"type": "Integer",
"description": "Internal ID of the event",
"required": true,
"default": "",
"options": []
}
]
},
"headers": {},
"queryParams": {},
"bodyTemplate": {
"value": "",
"placeholders": []
}
}
},
"webhooks": [
{
"event": "created",
"path": "/webhooks/netsuite/events/created",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the created event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Event title"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Start date"
}
}
]
},
{
"event": "updated",
"path": "/webhooks/netsuite/events/updated",
"payload": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "Internal ID of the updated event"
}
},
{
"name": "title",
"type": "String",
"selector": ["title"],
"meta": {
"description": "Event title"
}
},
{
"name": "startDate",
"type": "String",
"selector": ["startDate"],
"meta": {
"description": "Start date"
}
},
{
"name": "lastModifiedDate",
"type": "String",
"selector": ["lastModifiedDate"],
"meta": {
"description": "Last modification datetime"
}
}
]
}
]
}]