Documentation Index
Fetch the complete documentation index at: https://docs.jethings.com/llms.txt
Use this file to discover all available pages before exploring further.
Product Group API
The Product Group API returns a paginated list of product groups. This endpoint is not scoped to a store, so it does not require thex-store-id header.
Endpoint Details
Base URL:https://joptic.jethings.com
Required Headers
No
x-store-id header is needed because product groups are not store-scoped.Get All Product Groups
Endpoint
Endpoint:GET /product-groups
Retrieve all product groups with pagination, search, and sorting options.
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | number | No | 1 | Page number (minimum 1) |
limit | number | No | 10 | Page size (clamped to 1-100) |
search | string | No | - | Case-insensitive match on group name |
isActive | boolean | No | - | Filters by status (true -> 1, false -> 0) |
sortBy | string | No | createdAt | Allowed: title, ref, createdAt, updatedAt. Service maps createdAt, updatedAt, name; other values fallback to createdAt. |
sortOrder | string | No | desc | Sorting order: asc or desc |
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | List of product group objects |
data[].id | string | Product group ID |
data[].store | string | null | Store reference (returned but not filtered) |
data[].name | string | null | Product group name |
data[].status | number | Numeric status flag (1 active, 0 inactive) |
data[].parent | string | null | Parent group reference if applicable |
data[].createdAt | string | null | Creation timestamp (ISO 8601) |
data[].updatedAt | string | null | Last update timestamp (ISO 8601) |
pagination | object | Pagination metadata |
pagination.page | number | Current page |
pagination.limit | number | Page size |
pagination.total | number | Total number of groups |
pagination.totalPages | number | Total pages |
pagination.hasNext | boolean | Whether a next page exists |
pagination.hasPrev | boolean | Whether a previous page exists |
Behavior Notes
- Pagination clamps
pageto>= 1andlimitto1-100. - Sorting falls back to
createdAtifsortByis not mapped. storeis returned for compatibility but not used for filtering.statususes numeric flags (1active,0inactive).