Tags
Create, retrieve, update, and delete customer and supplier tags.
| Operation | Route | Permission |
|---|---|---|
| List | GET /tags | tags:read |
| Details | GET /tags/{id} | tags:read |
| Create | POST /tags | tags:write |
| Update | PATCH /tags/{id} | tags:write |
| Delete | DELETE /tags/{id} | tags:write |
Writable fields are name and color_hex in #RRGGBB format. The system generates the ID, created_at, and updated_at. When saving a customer or supplier, pass tag IDs in tag_ids; tags from another business are rejected.
The list supports limit, cursor, created_after, updated_after, and search, and is ordered by update time and ID, descending. Deletion is soft and does not delete customers or suppliers.

