Item Supply Plan
The item supply plan record exposes an item supply plan to REST web services.
To access this record in NetSuite, go to Transactions > Demand Planning > Generate Item Supply Plan (Administrator). For more information about working with this record, see Creating Item Supply Plans.
The item supply plan record is not a subrecord, but has one subrecord, itemsupplyplanorder.
Record ID
The record ID for an item supply plan record is itemsupplyplan.
Prerequisites
You must enable the Demand Planning feature before you can use this record through REST web services.
Code Sample
The following samples show common use cases for the item supply plan:
Get
GET URL: {{COMPANY_URL}}/services/rest/record/v1/itemsupplyplan/{itemsupplyplanId}
Patch: Update
PATCH URL: {{COMPANY_URL}}/services/rest/record/v1/itemsupplyplan/{itemsupplyplanId}
Body:
{
"memo": "Added new plan order line",
"order": {
"items": [
{
"links": [],
"ordercreated": false,
"orderdate": "2025-05-14",
"orderlineid": 0,
"ordertype": {
"id": "PurchOrd",
"refName": "Purchase Order"
},
"quantity": 10.0,
"receiptdate": "2025-05-23"
},
{
"orderdate": "2025-05-14",
"ordertype": "PurchOrd",
"quantity": 20.0,
"receiptdate": "2025-05-24"
}
]
}
}
Get Post: Create
POST URL: {{COMPANY_URL}}/services/rest/record/v1/itemsupplyplan
Body:
{
"item": {
"id": "3869"
},
"location": {
"id": "4009"
},
"memo": "Memo",
"order": {
"items": [
{
"orderdate": "2025-05-14",
"ordertype": "PurchOrd",
"quantity": 10.0,
"receiptdate": "2025-05-23"
}
]
},
"subsidiary": {
"id": "1"
}
}
Put: Create with external ID
PUT URL: {{COMPANY_URL}}/services/rest/record/v1/itemSupplyPlan/eid:{{planExternalId}}
Body:
{
"item": {
"id": "199"
},
"location": {
"id": "6"
},
"memo": "Memo",
"order": {
"items": [
{
"orderdate": "2025-05-14",
"ordertype": "PurchOrd",
"quantity": 10.0,
"receiptdate": "2025-05-23"
}
]
},
"subsidiary": {
"id": "1"
}
}
Pre-request Script:
pm.collectionVariables.set("planExternalId", "MYISP" + new Date().getTime());
Get: with external ID
GET URL: {{COMPANY_URL}}/services/rest/record/v1/itemsupplyplan/eid:{{planExternalId}}
NOTE: get after you create itemsupplyplan with eid
Delete
DELETE URL: {{COMPANY_URL}}/services/rest/record/v1/itemsupplyplan/{itemsupplyplanId}