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.
Most OnDi APIs require an authenticated session or service token. Public endpoints are marked by their path and module context.
Request
curl
1curl --request GET "$ONDI_BASE_URL/public/storefront/:storeSlug/categories" \2 --header "Authorization: Bearer $ONDI_ACCESS_TOKEN"Path parameters
storeSlugRequiredpath string
my-store
Responses
Success200OK
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}