API:getSubCategories - Get sub-orderpages

List sub-orderpages from orderpage.

Required parameters

id
Orderpage ID

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getSubCategories&id=ID

Response

   {
    "success": true,
    "subcategories": [
        {
            "id": "148",
            "parent_id": "147",
            "contains": "products",
            "name": "Paris",
            "description": "France",
            "visible": "1",
            "slug": "paris",
            "sort_order": "122",
            "template": "onestep_cloud_2019",
            "ctype": "onestep",
            "ptype": "Shared",
            "lptype": "shared",
            "otype": "onestep_onestep_cloud_2019",
            "products": "5",
            "subcategories": "0",
            "ptype_id": "1"
        },
        {
            "id": "149",
            "parent_id": "147",
            "contains": "products",
            "name": "Dallas",
            "description": "United States",
            "visible": "1",
            "slug": "dallas",
            "sort_order": "123",
            "template": "onestep_cloud_2019",
            "ctype": "onestep",
            "ptype": "Shared",
            "lptype": "shared",
            "otype": "onestep_onestep_cloud_2019",
            "products": "4",
            "subcategories": "0",
            "ptype_id": "1"
        },
        {
            "id": "154",
            "parent_id": "147",
            "contains": "products",
            "name": "Frankfurt",
            "description": "Germany",
            "visible": "1",
            "slug": "frankfurt",
            "sort_order": "123",
            "template": "onestep_cloud_2019",
            "ctype": "onestep",
            "ptype": "Shared",
            "lptype": "shared",
            "otype": "onestep_onestep_cloud_2019",
            "products": "5",
            "subcategories": "0",
            "ptype_id": "1"
        }
    ],
    "call": "getSubCategories",
    "server_time": 1599565445
}