Salla Docs
Merchant API
Partner APIs
Storefront
Salla CLI
Salla Docs
    Light Mode

    Category Children

    GET/categories/{category}/children
    Last modified: a month ago

    This endpoint allows you to return specific category children by passing the category as a path parameter.

    `categories.read`- Categories Read Only

    Request

    Path Params
    category
    integer 
    required

    The Category ID. List of Category ID can be found here

    Query Params
    page
    integer 
    optional

    The Pagination page number

    Request samples

    Responses

    Success(200)
    Not Found(404)
    HTTP Code: 200
    Content Type : JSONapplication/json
    Data Schema
    status
    integer 
    optional

    Response Status Code

    success
    boolean 
    optional

    Whether or not the response is successful

    data
    array [object {5}] 
    optional
    id
    integer 
    optional

    Category ID

    name
    string 
    optional

    Category Name

    urls
    object 
    optional
    sort_order
    integer 
    optional

    Category Sort Order

    items
    array[string]
    optional
    pagination
    #/definitions/1397131
    optional
    Could not resolve '#/definitions/1397131'
    Example
    {
      "status": 200,
      "success": true,
      "data": [
        {
          "id": 1255216786,
          "name": "فواكه صيفية",
          "urls": {
            "customer": "https://shtara.com/profile",
            "admin": "https://shtara.com/profile"
          },
          "sort_order": 1,
          "items": []
        }
      ],
      "pagination": {
        "count": 1,
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": []
      }
    }
    Last modified: a month ago