> ## Documentation Index
> Fetch the complete documentation index at: https://developers-docs.easyorders.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Products

> Read and write the store's products, their options and variants, and adjust their stock.

Scopes: `read_products` to read, `write_products` to change (it includes `read_products`). The same scopes cover [categories](https://developers-docs.easyorders.ai/api-reference/categories/overview.md).

## The product

```json theme={"dark"}
{
  "id": "0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10",
  "name": "Classic Cotton T-Shirt",
  "slug": "classic-cotton-t-shirt",
  "sku": "TS-CLASSIC",
  "external_sku": "",
  "source_app": "ERP Sync",
  "description": "<p>Soft cotton, cut for everyday wear.</p>",
  "price": 450,
  "sale_price": 399,
  "sale_end_date": null,
  "thumb": "https://cdn.example.com/products/tshirt.jpg",
  "images": ["https://cdn.example.com/products/tshirt-back.jpg"],
  "hidden": false,
  "quantity": 0,
  "track_stock": true,
  "is_digital": false,
  "digital_type": null,
  "category_ids": ["5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"],
  "options": [
    { "name": "Size", "type": "button", "values": [{ "name": "M", "value": "M", "thumb": "", "is_out_of_stock": false }] }
  ],
  "variants": [
    { "id": "7e8f...", "price": 450, "sale_price": 0, "quantity": 40, "sku": "TS-CLASSIC-M", "thumb": "", "options": { "Size": "M" } }
  ],
  "is_visitor_counter": false,
  "is_countdown_timer": false,
  "created_at": "2026-12-04T09:00:00Z",
  "updated_at": "2026-12-04T09:30:00Z"
}
```

The full list of fields is on [Get a product](https://developers-docs.easyorders.ai/api-reference/products/get-a-product.md). A few names differ from the dashboard's:

| Field | |
| - | - |
| `external_sku` | The product's code in another system, such as a supplier's. |
| `sku` on a variant | The variant's code. |
| `source_app` | The app that created the product, set by EasyOrders. Read only. |
| `is_visitor_counter`, `visitor_counter_min`, `visitor_counter_max` | The visitor counter on the product page. |
| `is_countdown_timer`, `countdown_timer_hours` | The countdown timer on the product page. |

Apps never see the product's cost, its pixel price and ad pixels, the cloaking and fake stock settings, the landing page sections, the drop-shipping settings, the custom currency, a digital product's codes and links, or whether the product waits for a content review. [Reviews](https://developers-docs.easyorders.ai/api-reference/reviews/overview.md) have their own endpoints.

## Lists and joins

[List products](https://developers-docs.easyorders.ai/api-reference/products/list-products.md) leaves out each product's `description`: read it with [Get a product](https://developers-docs.easyorders.ai/api-reference/products/get-a-product.md). Both take `join`, comma-separated:

* `options` adds `options`,
* `variants` adds `variants`,
* `categories` adds `category_ids`.

Without a join, those fields are left out. Writes always answer with all three. Options, their values and variants have no set order.

## HTML descriptions

`description` is HTML. Before it is saved, it is cleaned to a fixed list, and the cleaned HTML is what the product answers and the storefront shows. Anything else is removed, keeping its text; `script` and `style` go with their content.

| Kept | |
| - | - |
| Text and structure | `p`, `div`, `span`, `br`, `hr`, `b`, `strong`, `i`, `em`, `u`, `s`, `del`, `sub`, `sup`, `small`, `code`, `pre`, `h1` to `h6`, `blockquote` |
| Lists | `ul`, `ol`, `li` (with `data-list`: `bullet`, `ordered`, `checked`, `unchecked`) |
| Tables | `table`, `thead`, `tbody`, `tfoot`, `tr`, `th`, `td` (with `colspan`, `rowspan`), `caption` |
| Links | `a` with an `https`, `mailto:`, `tel:` or `sms:` `href`. Links get `rel="nofollow noreferrer"`, and full URLs open in a new tab. |
| Images | `img` with an `https` `src`, `alt`, `width` and `height` (a number, optionally `px` or `%`). |
| Videos | `iframe` of a YouTube (`youtube.com/embed/...`, `youtube-nocookie.com/embed/...`) or Vimeo (`player.vimeo.com/video/...`) player, with `width`, `height`, `frameborder`, `allow`, `allowfullscreen`, `loading`, `referrerpolicy` and `title`. Any other `src` is removed. |
| Anywhere | `dir` (`rtl`, `ltr`, `auto`), and the dashboard editor's `class` values: `ql-align-center`, `ql-align-right`, `ql-align-justify`, `ql-direction-rtl`, `ql-indent-1` to `ql-indent-9`, `ql-size-small`, `ql-size-large`, `ql-size-huge`, `ql-font-serif`, `ql-font-monospace`, `ql-video`, `ql-code-block`, `ql-code-block-container`. |

So `style` attributes, event handlers, forms, other iframes, relative URLs and `data:` images are all removed. Invalid UTF-8 or a NUL character is refused (`422`, rule `text`). The description has no limit of its own, only the [product's 50 KB](#size).

## Options and variants

**Options** are what the shopper picks, such as size or color: up to 3, each with 1 to 100 values. An option's `type` says how the storefront draws its values: `button` (a label), `color` (a `#rgb` or `#rrggbb` color) or `image` (an https image URL).

**Variants** are the combinations, each with its own price and stock: up to 100. A variant's `options` names one value of every option, by name, and no two variants name the same values:

```json theme={"dark"}
{ "price": 450, "quantity": 40, "sku": "TS-CLASSIC-M", "options": { "Size": "M" } }
```

On a write:

* `options` **replaces** every option of the product, and must come with `variants` in the same request. Variants sent alone are checked against the product's current options.
* `variants` lists **every** variant the product keeps, matched by `id`:
  * a variant with an `id` is updated in place and keeps its ID, which orders point at;
  * a variant without an `id` is created;
  * a variant you leave out is deleted. One that an order's cart item points at is only unlinked from the product, so the order still reads it.
* Each variant and option is sent whole: a field you leave out takes its empty value (`0`, `""`, `false`), not the current one.
* An `id` that is not one of the product's variants is refused (`422`, rule `variant`). On create, send no `id`.

`images` and `category_ids` also replace the product's whole list. `category_ids` takes up to 50 categories of the store.

## Stock

`quantity` is the product's stock; each variant has its own. Set it with `quantity` in a `PATCH`, or add and take away with [Adjust stock](https://developers-docs.easyorders.ai/api-reference/products/adjust-stock.md), which changes it in one step so adjustments that meet are all counted. Stock stays from 0 to 1,000,000,000.

## Size

A product is limited to keep the storefront fast:

| Limit | |
| - | - |
| Request body | 50 KB (`413 body_too_large`) |
| The saved product, as the API shows it with options, variants and `category_ids` | 50 KB (`422 product_too_large`) |
| `images` | 20 |
| `options` | 3, each with 1 to 100 values |
| `variants` | 100 |
| `category_ids` | 50 |

Numbers and flags don't count toward the product's size. A product made larger than 50 KB in the dashboard can still be changed, as long as your change does not make it larger.

## Creating products

* `name`, `price` and `thumb` are required. Without a `slug`, one is made from the name.
* A store with unpaid dues cannot get new products: `402 store_overdue`.
* Each product created charges the store its import fee, as importing products from the dashboard does.
* `source_app` is set to your app's name.

## Content review

The name, description and meta description of a product go through the same automatic content review as the dashboard's, on create and on every change to them. Content it flags goes to EasyOrders' review team. The write still succeeds, and the flag is not part of the API: your app cannot read it or clear it. Content is also flagged when the review fails, and without a review past its budget: 20 reviews a minute per store, and 200 a minute per app across its stores, shared with pages and articles.

## Digital products

`is_digital: true` products are sold as codes or links (`digital_type`). Apps cannot create one, and their codes and links are never shown. An app can change their other fields, but:

* a digital product has no options or variants (`422`, rule `digital`);
* the stock of one sold as `code` is the number of codes left, so `quantity`, `track_stock` and `disable_orders_for_no_stock` cannot change (`422`, rule `digital`), and its stock cannot be adjusted (`409 stock_follows_codes`).

## Deleting

[Delete a product](https://developers-docs.easyorders.ai/api-reference/products/delete-a-product.md) removes it from lists and reads (`404`). It cannot be restored through the API.

## Changes and events

The storefront shows a change right away. Creating, changing, adjusting and deleting a product send the `products/created`, `products/updated` and `products/deleted` events; a `PATCH` that changes nothing sends none.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.