Create Assembly
POST/api/assemblies
Creates a new inventory assembly or disassembly record, adjusting inventory accordingly.
Authentication: Requires Bearer token
Request body:
- action_date (date, required): Date of the assembly/disassembly action (e.g. '2024-01-15')
- product_id (integer, required): ID of the kit product to assemble/disassemble
- warehouse_id (integer, required): ID of the warehouse where the action takes place. Warehouse must have a default location unless warehouse_location_id is provided.
- warehouse_location_id (integer, optional): ID of the warehouse location. If omitted, uses the warehouse's default location.
- quantity (numeric, required): Quantity to assemble or disassemble. Must be non-zero.
- action (string, required): Type of action — 'assemble' (build kits from components) or 'disassemble' (break kits into components)
Request
Responses
- 200
Successful response