cimplify
API referenceCatalogue

Categories

Categories group products into the navigation tree shoppers see in menus and storefront sidebars. They are flat at the API level; nesting is expressed via `parent_id`.

GET /api/v1/catalogue/categories

List all categories for the active business.

Request

cURL
curl https://api.cimplify.io/api/v1/catalogue/categories \
  -H "X-Public-Key: pk_test_your_publishable_key"

Response

{
  "success": true,
  "data": [
    {
      "id": "cat_drinks",
      "name": "Drinks",
      "slug": "drinks",
      "parent_id": null,
      "image_url": "https://cdn.cimplify.io/c/drinks.jpg",
      "product_count": 24,
      "sort_order": 1
    }
  ]
}

GET /api/v1/catalogue/categories/{category_id}

Detail for a single category.

cURL
curl https://api.cimplify.io/api/v1/catalogue/categories/cat_drinks \
  -H "X-Public-Key: pk_test_your_publishable_key"

GET /api/v1/catalogue/categories/{category_id}/products

Products in a category with paging via limit and offset.

cURL
curl "https://api.cimplify.io/api/v1/catalogue/categories/cat_drinks/products?limit=20&offset=0" \
  -H "X-Public-Key: pk_test_your_publishable_key"

GET /api/v1/catalogue/categories/{category_id}/attributes

Attribute definitions configured for a category, useful for rendering filter facets.

cURL
curl https://api.cimplify.io/api/v1/catalogue/categories/cat_drinks/attributes \
  -H "X-Public-Key: pk_test_your_publishable_key"

GET /api/v1/catalogue/categories/{category_id}/deals

Active deals scoped to a category.

cURL
curl https://api.cimplify.io/api/v1/catalogue/categories/cat_drinks/deals \
  -H "X-Public-Key: pk_test_your_publishable_key"

Category object

FieldTypeDescription
idstringCategory identifier.
namestringDisplay name.
slugstringURL-friendly identifier.
parent_idstring | nullParent category, if nested.
product_countintNumber of active products in the category.
sort_orderintDisplay order; ascending.
  • Products Filter the products list by category_id or category_slug.

  • Collections Curated cross-category groupings.

On this page