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 · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified 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
Handle NetSuite sublist line limits when creating transactions via the REST API or SuiteScript
netsuite · 5 steps · unrated

Give your agent this knowledge — and 200+ more routes

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