Manufacturing Cost Template
A manufacturing cost template record exposes a manufacturing cost template to REST web services.
This record:
-
is not a subrecord
-
has one subrecord: costDetail
The REST API Browser includes information about the field names and field types of the manufacturing cost template record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s manufacturingCostTemplate reference page.
For information about using the REST API Browser, see The REST API Browser.
Record IDs
The record ID for a manufacturing cost template REST record is manufacturingCostTemplate.
Prerequisites
You must enable the Manufacturing Routing and Work Center features before you can use this record through REST web services.
Code Samples
The following samples show common use cases for manufacturing cost templates. The example ID is 4.
Creating a Manufacturing Cost Template Using a POST Request
POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingCostTemplate
{
"subsidiary": { "id": "5"},
"name": "rest mfg cost template",
"costDetail": {
"items": [
{
"costCategory": {"id": 5},
"item": {"id": 71}
},
{
"costCategory": {"id": 3},
"item": {"id": 69}
}
]
}
}
Retrieving a Manufacturing Cost Template Using a GET Request
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingCostTemplate/4
Updating a Manufacturing Cost Template Using a PATCH Request
The following code sample shows how to edit an item on the cost detail line. The component line ID is 7.
PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingRoutingCostTeamplate/4/costDetail/7
}