Child category with their products (26/11)
Get the child category with their products.
/api/childcategory/1?secret=2908df2c-881e-49fc-933c-92d6ea90d182?currency=INR /api/childcategory
GET https://castleindia.in/emart/public
This endpoint allows you to get child category detail and all their products
Path Parameters
Name
Type
Description
id
Integer
Id of that child category eg : 1
Query Parameters
Name
Type
Description
secret
String
Client secret key which obtain from admin panel.
currency
String
Three digit currency code eg : INR
Headers
Name
Type
Description
Authorization
String
Bearer { bearer_token without bracket }
Accept
String
application/json
{
    "category": {
        "id": 8,
        "name": {
            "en": "Bottom Wears"
        },
        "desciption": {
            "en": "Ethnic Bottoms - Buy Ethnic Bottom Wear Online for Women - Browse new arrival in Ethnic Bottoms, Check latest price in India and shop at India's favourite"
        },
        "icon": null,
        "image": "1579089941Crop Womens Pants 7 Sweatpants 03-03.jpg",
        "imagepath": "https://emart.test/images/grandcategory"
    },
    "products": [
        {
            "productid": 91,
            "variantid": 95,
            "productname": {
                "en": "Women’s Leggings"
            },
            "variantname": "M",
            "type": "v",
            "mainprice": 7408.17,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_1594124756i4aqMMq0lB.png",
            "thumbpath": "https://emart.test/variantimages/thumbnails",
            "off_in_percent": 0,
            "is_in_wishlist": false,
            "detail_page_url": "https://emart.test/api/details/91/95"
        },
        {
            "productid": 38,
            "variantid": 68,
            "productname": {
                "en": "Crop Womens Sweatpants"
            },
            "variantname": "Black,M",
            "type": "v",
            "mainprice": 987.76,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_1579261178CowwYvZi2U.png",
            "thumbpath": "https://emart.test/variantimages/thumbnails",
            "off_in_percent": 0,
            "is_in_wishlist": false,
            "detail_page_url": "https://emart.test/api/details/38/68"
        },
        {
            "productid": 39,
            "variantid": 71,
            "productname": {
                "en": "UA Play Up"
            },
            "variantname": "White,S",
            "type": "v",
            "mainprice": 411.57,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 100,
            "review": 0,
            "images": "variant_1579261735BOECgXqPYA.png",
            "thumbpath": "https://emart.test/variantimages/thumbnails",
            "off_in_percent": 0,
            "is_in_wishlist": false,
            "detail_page_url": "https://emart.test/api/details/39/71"
        }
    ]
}IF response fail
{
  "errors": "Secret Key is required",
  "status": "fail"
}{
  "errors": "Invalid Secret Key !",
  "status": "fail"
}{
  "errors": "Invalid Secret Key !",
  "status": "fail"
}{
  "errors": "Category is not active !",
  "status": "fail" 
}{
  "errors": "Category not found !",
  "status": "fail"
}Last updated
Was this helpful?
