# Kitting

Path: `/guide/kitting`

To create a new product as the result of a set of products (a kit), first create the new
**Product** as normal master data. Then create the **Kit** — the template of what the
product contains. The actual creation of the new product is triggered by executing a
**Kitting Task**.

**Flow: Create the kit product → define the kit template → run the kitting task.**

1. **Create product for the kit** — Master-data entry for the new product. Endpoint: `POST /inventory/bulk/products`

2. **Create kit template** — Define the components the product contains. Endpoint: `POST /inventory/kits`

3. **Create kitting task** — Execute to build the new product. Endpoint: `POST /kitting/tasks`

4. **Stocks update** — Components decrease; the new product's stock increases.

## Endpoints & events

**Endpoint: Create products in bulk** — `POST /inventory/bulk/products` (operationId: bulkCreateProducts)Create the kit product (master data).
**Endpoint: Create kit template** — `POST /inventory/kits` (operationId: createKit)Define the kit template.
**Endpoint: Create kitting task** — `POST /kitting/tasks` (operationId: createKittingTask)Trigger the actual build.

Events:

- `replenishment_order_created` (`type = kit_move`) — components moved to the kitting area;
  the stock of the original products is decreased.
- `replenishment_order_finished` (`type = kitting`) — task finished; products moved from the
  kitting area to storage. The stock of the new product is increased.

---

Website version: https://connect.pulpo.co/guide/kitting
Whole guide in one file: https://connect.pulpo.co/llms-full.txt
Index of all pages: https://connect.pulpo.co/llms.txt
