> ## 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.

# Labels

> Put short colored words on orders and products, for the merchant to see in their dashboard.

Scopes: `read_orders` or `read_products` to list, `write_orders` or `write_products` to add and delete (a `write_` scope includes its `read_` scope). See [Scopes](https://developers-docs.easyorders.ai/scopes.md).

## The label

A label is a short word in a color that your app puts on an order or a product, to draw the merchant's eye: a VIP customer, an order to call before shipping, a product running low.

```json theme={"dark"}
{
  "id": "5d2e8f1a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
  "text": "VIP",
  "color": "purple",
  "created_at": "2026-12-03T10:00:00Z"
}
```

| Field | |
| - | - |
| `text` | 1 to 30 characters, counted after trimming spaces at both ends. One line, with at least one character that shows; no control or invisible characters. |
| `color` | `gray`, `red`, `orange`, `yellow`, `green`, `blue` or `purple`. `gray` when left out. The dashboard picks the shades. |

## Who sees them

* **The merchant** sees every app's labels next to each row of their orders and products tables, with the app's name and icon. Whoever can see those tables sees the labels. The merchant cannot add or remove a label; only your app can.
* **Your app** sees only its own labels. Another app's label answers `404`, like one that does not exist.
* Labels are not part of the order or product objects: read them with [List order labels](https://developers-docs.easyorders.ai/api-reference/labels/list-order-labels.md) and [List product labels](https://developers-docs.easyorders.ai/api-reference/labels/list-product-labels.md).

## Limits

* Up to **5 labels per app** on one order or product. The sixth answers `422 limit_exceeded` with `details: {"max": 5}`.
* The same text twice on one order or product, letter case aside (`VIP` and `vip`), answers `409 label_exists`. This is checked before the limit.
* The lists are not paginated and take no query parameters.

## Adding and deleting

* [Add an order label](https://developers-docs.easyorders.ai/api-reference/labels/add-an-order-label.md) and [Add a product label](https://developers-docs.easyorders.ai/api-reference/labels/add-a-product-label.md) take an `Idempotency-Key` to retry safely. See [Idempotency](https://developers-docs.easyorders.ai/concepts/idempotency.md).
* The answer's `Location` header is the label's path, used to delete it. There is no endpoint to read one label.
* Deleting is for good.
* Adding or deleting a label sends no event and does not change the order or product, its `updated_at` included.

## Deleted orders and products

On a deleted order or product, every label endpoint answers `404 not_found`. Its labels are kept, and come back if it is restored.

## When the merchant removes your app

Your app's labels disappear from the dashboard at once and are kept for **30 days**. If the merchant installs your app again within that time, they come back as they were. After that they are deleted for good.


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