Use this file to discover all available pages before exploring further.
Categories form the top level of the business hierarchy. Each category can contain sub-categories, which in turn group offers. Categories also define custom fields (including computed fields with formulas) that are inherited by all offers within the category.All categories support soft-delete (a deletedAt timestamp is set instead of permanent removal), version tracking (the version field auto-increments on every update), and audit logging (before/after snapshots are recorded for every CRUD operation).
Returns a paginated list of categories for the current tenant, ordered by ordinal ascending. Each category includes its sub-categories with offer counts. By default, soft-deleted categories are excluded.
Field type: text, number, boolean, select, computed.
defaultValue
No
any
Default value for the field.
formula
Conditional
string
Formula expression. Required when type is computed.
outputType
Conditional
enum
number or text. Required when type is computed.
Computed fields require both a valid formula and an outputType (number or text). The formula is validated using the formula engine. Supported namespaces: fieldName (sibling fields), customer.* (enriched data), attributes.* (request-time attributes).
Returns the created category with version: 1, deletedAt: null, and sub-categories relation. An audit log entry is created with a create action and a snapshot of the new entity.
Soft-deletes a category by setting its deletedAt timestamp. Cascade behavior: all child sub-categories and offers under this category are also soft-deleted. The version is incremented on the category and each cascaded child. An audit log entry is recorded for every affected entity.
Missing id query parameter, entity not found, or entity already deleted.
401
Missing or invalid API key / session.
403
Insufficient role.
To restore a soft-deleted category, use POST /api/v1/restore?entityType=category&id={categoryId} (admin only). Restoring a category does not automatically restore cascaded children — you must restore sub-categories and offers individually.