NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Count → Insert or update record

AI-generated

Summary

Insert or update an Inventory Count record in NetSuite via a PUT request to /inventoryCount/{id}.

Inputs

  • isDebugMode — Include full request and response details in output.
  • id (required) — External identifier of the inventory count to insert or update.
  • additionalFields — Optional record fields: account, class, countDate, customForm, tranDate, createdDate, lastModifiedDate, department, externalId, internal id, item (list of item lines with quantities, rates, memo, etc.), memo, Prefer, prevDate, tranId, refName, replace, replaceSelectedFields, status, subsidiary, X-NetSuite-Idempotency-Key, X-NetSuite-PropertyNameValidation, X-NetSuite-PropertyValueValidation.
  • customFields — List of custom fields (name, type, value) that apply to the inventory count record.

Output shape

a single updated Inventory Count record (or HTTP status if no body).

If Debug Mode is enabled, the output will contain the full HTTP request and response in addition to the record.

Examples

Example 1: Create a new inventory count with item lines

Set id='INV123', isDebugMode=false, provide item lines in additionalFields.item.items with adjustedQuantity, countQuantity, etc.

Example 2: Update existing inventory count

Use the existing id, set additionalFields.countDate and item counts to modify.

Example 3: Inspect request/response

Set isDebugMode=true to see full HTTP payloads alongside the updated record.

Discussion