# Products

Path: `/guide/products`
Summary: Create and update your product master data

Products are master data. Create them first — every purchase order, sales order, and kit
definition references a product by `sku` or `id`.

## Endpoints

**Endpoint: Create products in bulk** — `POST /inventory/bulk/products` (operationId: bulkCreateProducts)

Create products in bulk. Required fields include `sku`, `name`, `management_type`,
`cost_price`, and `barcodes`.

(3PL fulfillers: As a 3PL, `merchant_id` is required — it determines who owns the product. / single merchants: As a single merchant, `merchant_id` is optional and resolves to your default.)

**Endpoint: Update products in bulk** — `PUT /inventory/bulk/products` (operationId: bulkUpdateProducts)

Update existing products, identified by `sku` or `id`. This is a partial update — send
only the fields you want to change — except `barcodes`, which must always be included
even when unchanged.

**Endpoint: Search products** — `GET /inventory/products` (operationId: searchProducts)

Look up products by `sku`, `barcode`, `management_type`, stock presence, and more.
`sku`/`name` support a `contains:` prefix for substring search; most other filters are
exact match only.

> **TIP: Deactivating a product**
>
> Set `active: false` to deactivate a product without losing its order history.

## Tags

What the PULPO apps call **tags** is called **`product_categories`** in the API. It's the
same thing under two names. A tag can be put on products, users and warehouse locations.

1. Create the tag once for your tenant and note its `id`.
2. Assign it by `id`: send `product_categories: [16902]` when you create or update the
   product. The list replaces the product's tags; `[]` removes them all, leaving the field
   out keeps them.

> **WARNING: Tag ids, not codes**
>
> Send tag ids only. Codes like `"cold"` are rejected, and a field named `tags` is silently
> ignored — the product is saved without tags.

**Endpoint: Search tags (product_categories)** — `GET /inventory/products/categories` (operationId: searchTags)

Find a tag's `id` by its `code`. Codes are case-sensitive.

**Endpoint: Create a tag (product_category)** — `POST /inventory/products/categories` (operationId: createTag)

Create a tag. `code`, `name` and `tenant_id` are required.

**Endpoint: Update a tag** — `PUT /inventory/products/categories/{id}` (operationId: updateTag)

Rename a tag. Everything that has it keeps it.

**Endpoint: Set a user's tags** — `POST /iam/users/{id}/categories` (operationId: setUserTags)

Set a user's tags. Locations and more details: see the User & Tenant section of the
reference.

---

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