Categories
1 API call in this section.
Get Categories
Public APIs / Storefront / Categories
GET
/public/storefront/:storeSlug/categoriesGet the full hierarchical category tree for a storefront.
Returns nested parent → children structure.
No auth required.
Path parameters
| Parameter | Type | Description |
|---|---|---|
storeSlugRequired | string | Example: |
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/public/storefront/${STORESLUG}/categories"Response examples
200OK
Response body
json
1{2 "success": true,3 "data": {4 "market": {5 "id": "market-uuid",6 "slug": "my-store",7 "store_name": {8 "en": "My Store"9 }10 },11 "categories": [12 {13 "id": "cat-uuid",14 "name": {15 "en": "Electronics",16 "ar": "إلكترونيات"17 },18 "slug": "electronics",19 "image_url": null,20 "parent_id": null,21 "is_active": true,22 "children": [23 {24 "id": "subcat-uuid",25 "name": {26 "en": "Laptops"27 },28 "slug": "laptops",29 "parent_id": "cat-uuid",30 "is_active": true,31 "children": []32 }33 ]34 }35 ]36 }37}