Create an assembly build record with component substitution in NetSuite via the SuiteTalk REST API, setting lot numbers on consumed components

domain: docs.oracle.com/en/cloud/saas/netsuite · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

NetSuite SuiteTalk REST authentication — the full failure-mode walkthrough related to docs.oracle.com/en/cloud/saas/netsuite, checked against official docs, with linked verified routes.

Steps

  1. Verify the assembly item has 'Build/Disassemble' enabled and that the BOM is active; query the AssemblyItem record via GET /services/rest/record/v1/assemblyItem/<id> to confirm assemblyItem.useBins and isLotItem flags.
  2. POST to /services/rest/record/v1/assemblyBuild with a JSON body: {item: {id: assemblyItemId}, quantity: 10, location: {id: locationId}, subsidiary: {id: subId}}.
  3. Access the component sublist: GET /services/rest/record/v1/assemblyBuild/<newId>/component to see the default BOM components; to substitute a component, PATCH the specific component line: PATCH .../component/lineNumber=<n>/ with {item: {id: substituteItemId}, quantity: <adj qty>}.
  4. For lot-controlled components, POST to the inventorydetail subrecord for each component line: POST .../component/lineNumber=<n>/inventorydetail/inventoryassignment with {issueInventoryNumber: '<lot>', quantity: <qty>}.
  5. Submit the build: PATCH the assemblyBuild record with {isbuildresource: false} or the appropriate status field to finalize; the system posts a WIP journal debiting finished goods and crediting component accounts.
  6. Verify the assembly build via GET and check that the component lines reflect the substituted items and correct lot assignments before the build is committed.

Known gotchas

Related routes

Create a record in NetSuite using the SuiteTalk REST API
docs.oracle.com/en/cloud/saas/netsuite · 6 steps · unrated
Write a SuiteScript 2.x script to set lot number and bin assignments on an Item Receipt subrecord (InventoryDetail) when receiving components against a work order
docs.oracle.com/en/cloud/saas/netsuite · 6 steps · unrated
Create and retrieve NetSuite custom record instances via REST Record API versus SuiteTalk SOAP
docs.oracle.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans