Inventory Cost Revaluation

An inventory cost revaluation record exposes an inventory cost revaluation to REST web services. This record is not a subrecord. This record has one subrecord: inventory cost revaluation cost component.

For help working with this record in the UI, see Manually Entering an Inventory Cost Revaluation and Revalue Standard Cost Inventory.

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

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

Record IDs

The record ID for an inventory cost revaluation REST record is inventorycostrevaluation.

The record ID for an inventory cost revaluation cost component REST subrecord is InventoryCostRevaluationCostComponent.

Prerequisites

You must enable the Standard Costing feature before you can use this record through REST web services.

When the feature is enabled, you can access the inventory cost revaluation record in the UI at Transactions > Inventory > Revalue Inventory Cost (Administrator).

Code Samples

The following samples show common use cases for inventory cost revaluations. The example ID is 4.

Creating an Inventory Cost Revaluation for a Non-Assembly Item

This example shows how to create an inventory cost revaluation for a non-assembly item (itemType = "InvtPart") using a POST request.

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/inventorycostrevaluation
{ "account": { "id": "94" }, "costComponent": { "items": [{ "cost": 12.0, "costCategory": { "id": 1 }, "items": [{ "cost": 10.0, "costCategory": { "id": 1 } }] }, "item": { "id": "69" }, "location": { "id": "6" }, "subsidiary": { "id": "1" }, "tranDate": "2023-05-01"
} 

            

Creating an Inventory Cost Revaluation for an Assembly Item

This examples shows how to create an inventory cost revaluation for an assembly item (itemType = "Assembly") using a POST request. It defines additional fields for component items.

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/inventorycostrevaluation
{ "account": { "id": "94" }, "costComponent": { "items": [{ "cost": 12.0, "costCategory": { "id": 1 }, "componentItem": { "id": 60 }, "quantity": 1 }, { "cost": 10.0, "costCategory": { "id": 1 }, "componentItem": { "id": 61 }, "quantity": 1 }] }, "item": { "id": "169" }, "location": { "id": "6" }, "subsidiary": { "id": "1" }, "tranDate": "2023-05-01"
} 

            

Retrieving an Inventory Cost Revaluation Using a GET Request

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

            

Updating an Inventory Cost Revaluation Using a PATCH Request

This sample shows how to update cost component values for an inventory cost revaluation record with a transaction id of 4. It sets the cost category ID to 3 and the cost value to 14.0.

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/inventorycostrevaluation/4
{ "costComponent": { "items": [{ "cost": 14.0, "costCategory": { "id": 3 } }] }
} 

            

Deleting an Inventory Cost Revaluation Using a DELETE Request

              DELETE https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/inventorycostrevaluation/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