emart - Laravel Multi-Vendor Ecommerce Advanced CM
  • Documentation
  • Introduction
  • Key Features
  • Installation
    • Server Requirements
    • Shared Hosting Install
    • Installation Step By Step
    • Installation on VPS hosting
  • Developer Guide
    • Developer Guide
  • Setting up emart
    • Mail settings
    • Setting up CRON JOBS
    • PWA Setup
    • Multivendor Setup
    • Setting up Multicurrency
    • Database backup
    • Import Demo Content
    • Push notifications
    • Seller Payouts
    • Front settings
      • Payment gateways
      • SMS Settings
    • Site Settings
    • Setting up Google review
    • Wallet settings
    • Add-on Manager
  • faq's
    • Installation FAQ's
    • General Settings
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
    • Access Denied
  • UPDATE PROCESS
    • Changelogs
    • UpdateGuide
    • Quick Update
      • 2.8.x
      • 2.9.x
      • 3.0x
  • Support
    • Support
    • Source and Credits
    • Emart Tutorials - Youtube
    • Installation of eMart
  • Conclusion
    • Conclusion
  • portfolio
  • Codecanyon
  • Themeforest
  • Graphic River
  • Homepage
  • Emart Api
  • 🍿Getting Started
  • Login
  • Register
  • Refresh Token
  • Logout
  • Social Login API
  • Homepage (12/01/2022)
  • Product Detail page (18/01)
  • Product all Comments
  • Product All Reviews
  • Get All Brands
  • Brand Products
  • Main Category with products(26/11)
  • Subcategory with products (26/11)
  • Child category with their products (26/11)
  • Get all categories
  • Get All Subcategory
  • Get All Childcategories
  • 🦹‍♂️View User Profile
  • Current User Wallet
  • User Favorite Wishlist (26/11)
  • Add item in wishlist (09/02)
  • Remove items from wishlist (09/02)
  • Wishlist collection (09/02)
  • View Particular Wishlist collection (09/02)
  • Create wishlist collection (09/02)
  • Current User Address list (02/02)
  • Create new user address (02/02)
  • List Billing address (02/02)
  • Create billing address (02/02)
  • Current User bank list (10/01/2022)
  • Current User notifications
  • 🌟My Reviews
  • Get User Cart (13/01)
  • Add Item in User Cart (13/01)
  • Remove Item from user cart (13/01)
  • Clear user cart
  • Increase item quantity in user cart (19/01) (Updated)
  • Get Guest User Cart (15/01)
  • Guest cart Store (15/01)
  • Apply Coupans
  • Remove coupan
  • General FAQ API
  • Custom Page
  • Pincode API (03/02)
  • General Configurations
  • Payment Methods List
  • List of countries
  • List of states
  • List of Cities
  • Search City (03/02)
  • Fetch City List By Pincode For Guest (03/02)
  • Fetch city list with address for logged in user (03/02)
  • List Languages
  • Fetch Current Time
  • Policy Pages
  • Order Review (27/02)
  • Localpickup apply (27/02)
  • Remove Localpickup (27/02)
  • Confirm Order
  • MY Orders
  • View Order
  • Get Razorpay Payment ORDER ID
  • Generate Paytm Checksum
  • View All Flashdeals (12/01)
  • View Specific Flashdeals (12/01)
  • Wishlist
  • Changelogs
Powered by GitBook
On this page
  • This endpoint allows you to get subcategory detail with their all products.
  • If response fail

Was this helpful?

Subcategory with products (26/11)

Get subcategory detail with products.

This endpoint allows you to get subcategory detail with their all products.

GET https://castleindia.in/emart/public /api/subcategory/1?secret=2908df2c-881e-49fc-933c-92d6ea90d182?currency=INR /api/subcategory

Path Parameters

Name
Type
Description

id

Integer

id of that subcategory eg: 1

Query Parameters

Name
Type
Description

currency

String

Three digit currency code is required eg: ISO code 3

secret

String

Put the client secret key which you obtained from admin panel

Headers

Name
Type
Description

Authorization

String

Bearer { bearer_token without bracket }

Accept

String

application/json

{
    "category": {
        "id": 1,
        "name": {
            "en": "Bed"
        },
        "desciption": {
            "en": "A bed is a piece of furniture which is used as a place to sleep or relax. Most modern beds consist of a soft, cushioned mattress on a bed frame, the mattress resting either on a solid base, often wood slats, or a sprung base. ... Some beds are made especially for animals."
        },
        "icon": "fa-bed",
        "image": "1579088525Kida King Size Bed, Royal Blue Velvet and Brass Legs 02-04.jpg",
        "imagepath": "http://emart.test/images/grandcategory"
    },
    "products": [
        {
            "productid": 159,
            "variantid": 115,
            "productname": {
                "en": "Sunglasses"
            },
            "variantname": "Red",
            "type": "v",
            "mainprice": 1481.63,
            "offerprice": 411.57,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_1637146697mpZnZQ5lcx.jpeg",
            "thumbpath": "http://emart.test/variantimages/thumbnails",
            "off_in_percent": 72,
            "is_in_wishlist": false,
            "detail_page_url": "http://emart.test/api/details/159/115"
        },
        {
            "productid": 42,
            "variantid": 78,
            "productname": {
                "en": "King Size Bed, Royal Blue Velvet and Brass Legs"
            },
            "variantname": "90H x 214W x 161Dcm",
            "type": "v",
            "mainprice": 2880.96,
            "offerprice": 2057.83,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_1579265150ABRYtmSWna.png",
            "thumbpath": "http://emart.test/variantimages/thumbnails",
            "off_in_percent": 29,
            "is_in_wishlist": false,
            "detail_page_url": "http://emart.test/api/details/42/78"
        },
        {
            "productid": 11,
            "variantid": 0,
            "type": "s",
            "variantname": null,
            "productname": {
                "en": "School Bagpack"
            },
            "mainprice": 9578.24,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "pink-black-bagpack-mock-up_1310-135.jpg",
            "thumbpath": "http://emart.test/images/simple_products",
            "off_in_percent": 0,
            "is_in_wishlist": false
        },
        {
            "productid": 41,
            "variantid": 77,
            "productname": {
                "en": "Super Kingsize Bed With Storage"
            },
            "variantname": "196H x 196W x 216Dcm",
            "type": "v",
            "mainprice": 16874.17,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_15792641263O7B6KIZqa.png",
            "thumbpath": "http://emart.test/variantimages/thumbnails",
            "off_in_percent": 0,
            "is_in_wishlist": false,
            "detail_page_url": "http://emart.test/api/details/41/77"
        },
        {
            "productid": 40,
            "variantid": 76,
            "productname": {
                "en": "Double Bed"
            },
            "variantname": "Coppper Steel,110H x 206W x 143Dcm",
            "type": "v",
            "mainprice": 37040.85,
            "offerprice": 0,
            "pricein": "INR",
            "symbol": "₹",
            "rating": 0,
            "review": 0,
            "images": "variant_1579263598Q42HAMnkqi.png",
            "thumbpath": "http://emart.test/variantimages/thumbnails",
            "off_in_percent": 0,
            "is_in_wishlist": false,
            "detail_page_url": "http://emart.test/api/details/40/76"
        }
    ]
}

If response fail

{
  "errors": "Secret Key is required",
  "status": "fail"
}
{
  "errors": "Invalid Secret Key !",
  "status": "fail"
}
{
  "errors": "Subcategory is not active !",
  "status": "fail" 
}
{
  "errors": "Subategory not found !",
  "status": "fail"
}
PreviousMain Category with products(26/11)NextChild category with their products (26/11)

Last updated 2 years ago

Was this helpful?