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

Was this helpful?

Product Detail page (18/01)

Get Each Product Detail By Firing this api.

This endpoint allows you to get product details.

GET https://castleindia.in/emart/public /api/details/{productid}/{variantid}/{type}?secret=XXXX&currency=XXX

Path Parameters

Name
Type
Description

Productid*

Integer

ID of product not variant.

id*

Integer

ID of variant not product.

variantid*

Integer

Send 0 if Simple product

type*

Srring

s = string

v = variant

Query Parameters

Name
Type
Description

secret

String

Client secret key which you obtained from admin panel.

currency

String

Currency ISO code 3 eg : INR

Headers

Name
Type
Description

Authorization

String

Bearer { bearer_token without bracket } To check if logged in user item in wishlist or not.

Accept

String

application/json

{
    "product": {
        "product_id": 1,
        "product_name": {
            "en": "iTab",
            "hi": "आईटैब"
        },
        "brand_name": "Nike",
        "store_name": "emart",
        "store_logo_path": "https://emart.test/images/store",
        "store_logo": "1594030435Favicon.png",
        "store_id": 1,
        "key_features": {
            "en": "Test Key features",
            "hi": "Test Key features"
        },
        "description": {
            "en": "Test Key product details",
            "hi": "Test Key product details"
        },
        "tags": "test,product",
        "rating": 3.3333333333333335,
        "reviews": 3,
        "attributes": [],
        "videoThumbnail": null,
        "videoUrl": null,
        "videoThumburl": "https://emart.test/images/videothumbnails",
        "thumbnail_path": "https://emart.test/images/simple_products",
        "images_path": "https://emart.test/images/simple_products/gallery",
        "common_variant": [],
        "combinations": [
            {
                "id": 1,
                "mainprice": 9493.76,
                "offerprice": 0,
                "images": [
                    {
                        "image": "product_gallery_60c34d8c19651.png"
                    },
                    {
                        "image": "product_gallery_60c34d8c66883.png"
                    }
                ],
                "pricein": "INR",
                "symbol": "₹",
                "weight": "0g",
                "stock": 963,
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 2,
                "default": "Yes",
                "variants": []
            }
        ],
        "tax_info": "Inclusive of all taxes",
        "other_services": [
            {
                "type": "return",
                "text": "15 Days Returns"
            },
            {
                "type": "cod",
                "text": "Pay on Delivery"
            }
        ],
        "warranty": null,
        "special_services": [
            {
                "heading": "Fast Delivery",
                "description": "With our partnered courier services your product will be delivered fast"
            },
            {
                "heading": "Quality Assurance",
                "description": "6 Quality checks your product quality is 100% trustable"
            },
            {
                "heading": "Purchase Protection",
                "description": "All your purcahse are secured from our leading payment gateways."
            }
        ],
        "coupans": [
            {
                "id": 3,
                "code": "PASTAMANIA",
                "description": null,
                "distype": "fix",
                "amount": "0.5",
                "link_by": "category",
                "pro_id": null,
                "simple_pro_id": 1,
                "cat_id": 6,
                "is_login": 0,
                "maxusage": 100,
                "minamount": null,
                "expirydate": "2022-01-29 00:00:00",
                "created_at": "2020-02-05T11:05:45.000000Z",
                "updated_at": "2022-01-13T05:39:58.000000Z"
            }
        ],
        "comments": [
            {
                "id": 18,
                "name": "John",
                "email": "john@test.com",
                "comment": "<p>This is what i looking for... !</p>",
                "approved": 1,
                "pro_id": 0,
                "created_at": "2021-06-12T12:47:48.000000Z",
                "updated_at": "2021-06-12T12:47:48.000000Z",
                "simple_pro_id": 1
            },
            {
                "id": 17,
                "name": "Ankit",
                "email": "test@test.com",
                "comment": "<p>Awesome product !</p>",
                "approved": 1,
                "pro_id": 0,
                "created_at": "2021-06-12T12:41:46.000000Z",
                "updated_at": "2021-06-12T12:41:46.000000Z",
                "simple_pro_id": 1
            }
        ],
        "viewallcomment": "View all (2) comments",
        "ratingState": {
            "overallrating": 3.3,
            "price": 0,
            "quality": 1,
            "value": 1.7
        },
        "ratingsAndreviews": [
            {
                "pro_id": 0,
                "rating": 4,
                "user": "Ankit",
                "userid": 35,
                "review": "Qui qui sint aut. Tenetur soluta vel qui quia occaecati nam consequuntur."
            },
            {
                "pro_id": 0,
                "rating": 2,
                "user": "Maria",
                "userid": 44,
                "review": "In sint nostrum corrupti voluptate. Aperiam aliquid dolor aliquid provident ut et."
            },
            {
                "pro_id": 0,
                "rating": 5,
                "user": "Admin",
                "userid": 1,
                "review": "Hello"
            }
        ],
        "viewallreview": "View all (3) reviews",
        "is_in_wishlist": false
    },
    "relatedProducts": null,
    "hotdeals": [
        {
            "start_date": "2021-03-22 18:49:00",
            "end_date": "2022-01-31 11:27:00",
            "productid": 1,
            "variantid": 0,
            "productname": {
                "en": "iTab",
                "hi": "आईटैब"
            },
            "mainprice": 9493.76,
            "offerprice": 0,
            "tax_info": "Inclusive of all taxes",
            "thumbnail_path": "https://emart.test/images/simple_products",
            "thumbnail": "thum_dgp_60c34d8be914b.png",
            "otherimagepath": "https://emart.test/images/simple_products/gallery",
            "otherimages": [
                {
                    "image": "product_gallery_60c34d8c19651.png"
                },
                {
                    "image": "product_gallery_60c34d8c66883.png"
                }
            ],
            "pricein": "INR",
            "symbol": "₹",
            "type": "s",
            "rating": 3.3333333333333335,
            "off_percent": 0,
            "hotdeal_bg_path": "https://emart.test/images/hotdeal_backgrounds",
            "hotdeal_bg": "default.jpg"
        }
    ]
}
{
    "product": {
        "product_id": 39,
        "product_name": {
            "en": "UA Play Up"
        },
        "brand_name": "Under Armour",
        "store_name": "emart",
        "store_logo_path": "https://emart.test/images/store",
        "store_logo": "1594030435Favicon.png",
        "store_id": 1,
        "key_features": {
            "en": "100% Polyester\r\nImported\r\ndrawstring closure\r\nMachine Wash\r\nHeatGear fabric is ultra-soft &amp; smooth for extreme comfort with very little weight\r\nUPF 30+ protects your skin from the sun's harmful rays\r\n4-way stretch fabrication allows greater mobility in any direction\r\nMoisture Transport System wicks sweat &amp; dries fast"
        },
        "description": {
            "en": "UA Play Up Shorts"
        },
        "tags": "Sportswear, shorts",
        "rating": 3.8,
        "reviews": 1,
        "attributes": [
            {
                "attr_id": 1,
                "attrribute": "Color"
            },
            {
                "attr_id": 6,
                "attrribute": "Size_Chart"
            }
        ],
        "videoThumbnail": null,
        "videoUrl": null,
        "videoThumburl": "https://emart.test/images/videothumbnails",
        "thumbnail_path": "https://emart.test/variantimages/thumbanails",
        "images_path": "https://emart.test/variantimages",
        "common_variant": null,
        "combinations": [
            {
                "id": 71,
                "stock": 993,
                "mainprice": 407.94,
                "offerprice": 0,
                "pricein": "INR",
                "symbol": "₹",
                "weight": "250g",
                "images": [
                    {
                        "image": "variant_1579261735BOECgXqPYA.png"
                    },
                    {
                        "image": "variant_1579261735tpFNsn5jYo.png"
                    },
                    {
                        "image": "variant_1579261735NlirGcH4Rw"
                    },
                    {
                        "image": "variant_1579261735dddxrt3tMH"
                    },
                    {
                        "image": "variant_1579261735o0aYdXo94F"
                    }
                ],
                "variants": [
                    {
                        "varvalueid": 3,
                        "attr_id": 1,
                        "var_name": "White",
                        "attr_name": "Color",
                        "type": "c"
                    },
                    {
                        "varvalueid": 31,
                        "attr_id": 6,
                        "var_name": "S",
                        "attr_name": "Size_Chart",
                        "type": "s"
                    }
                ],
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 10,
                "default": "Yes"
            },
            {
                "id": 72,
                "stock": 1000,
                "mainprice": 407.94,
                "offerprice": 0,
                "pricein": "INR",
                "symbol": "₹",
                "weight": "150g",
                "images": [
                    {
                        "image": "variant_1579261803gth8jNEzzD.png"
                    },
                    {
                        "image": "variant_157926180310IzQr0owO.png"
                    },
                    {
                        "image": "variant_1579261803ZdRFnK3Dte"
                    },
                    {
                        "image": "variant_1579261803Fucp6oX44p"
                    },
                    {
                        "image": "variant_15792618035LHWxKBYH8"
                    }
                ],
                "variants": [
                    {
                        "varvalueid": 3,
                        "attr_id": 1,
                        "var_name": "White",
                        "attr_name": "Color",
                        "type": "c"
                    },
                    {
                        "varvalueid": 30,
                        "attr_id": 6,
                        "var_name": "XS",
                        "attr_name": "Size_Chart",
                        "type": "s"
                    }
                ],
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 10,
                "default": "No"
            },
            {
                "id": 73,
                "stock": 1000,
                "mainprice": 16725.33,
                "offerprice": 0,
                "pricein": "INR",
                "symbol": "₹",
                "weight": "150g",
                "images": [
                    {
                        "image": "variant_1579261855KQhMeVu83v.png"
                    },
                    {
                        "image": "variant_1579261855vQ254MWESj.png"
                    },
                    {
                        "image": "variant_1579261855CBg0zx7yVR"
                    },
                    {
                        "image": "variant_15792618550NSQO4b3dG"
                    },
                    {
                        "image": "variant_1579261855schIRQ57jE"
                    }
                ],
                "variants": [
                    {
                        "varvalueid": 3,
                        "attr_id": 1,
                        "var_name": "White",
                        "attr_name": "Color",
                        "type": "c"
                    },
                    {
                        "varvalueid": 34,
                        "attr_id": 6,
                        "var_name": "XL",
                        "attr_name": "Size_Chart",
                        "type": "s"
                    }
                ],
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 10,
                "default": "No"
            },
            {
                "id": 74,
                "stock": 1000,
                "mainprice": 8566.64,
                "offerprice": 0,
                "pricein": "INR",
                "symbol": "₹",
                "weight": "150g",
                "images": [
                    {
                        "image": "variant_1579261910cx0Y4Dancw.png"
                    },
                    {
                        "image": "variant_1579261910gHm26ko0td.png"
                    },
                    {
                        "image": "variant_1579261910Kd8UJ7BTVC"
                    },
                    {
                        "image": "variant_15792619101yrDpU4EfM"
                    }
                ],
                "variants": [
                    {
                        "varvalueid": 5,
                        "attr_id": 1,
                        "var_name": "Grey",
                        "attr_name": "Color",
                        "type": "c"
                    },
                    {
                        "varvalueid": 32,
                        "attr_id": 6,
                        "var_name": "M",
                        "attr_name": "Size_Chart",
                        "type": "s"
                    }
                ],
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 10,
                "default": "No"
            },
            {
                "id": 75,
                "stock": 1000,
                "mainprice": 16725.33,
                "offerprice": 0,
                "pricein": "INR",
                "symbol": "₹",
                "weight": "150g",
                "images": [
                    {
                        "image": "variant_1579261958PImKgDUDm3.png"
                    },
                    {
                        "image": "variant_1579261958WFt5tRCoZ4.png"
                    },
                    {
                        "image": "variant_1579261958c20P0vpuuU"
                    },
                    {
                        "image": "variant_1579261958hGc4kRUdu8"
                    }
                ],
                "variants": [
                    {
                        "varvalueid": 5,
                        "attr_id": 1,
                        "var_name": "Grey",
                        "attr_name": "Color",
                        "type": "c"
                    },
                    {
                        "varvalueid": 34,
                        "attr_id": 6,
                        "var_name": "XL",
                        "attr_name": "Size_Chart",
                        "type": "s"
                    }
                ],
                "off_in_percent": 0,
                "minorderlimit": 1,
                "maxorderlimit": 10,
                "default": "No"
            }
        ],
        "tax_info": "Exclusive of tax",
        "other_services": [
            {
                "type": "freeshipping",
                "text": "Free Delivered"
            },
            {
                "type": "return",
                "text": "30 Days Returns"
            }
        ],
        "warranty": "6 year Warranty",
        "special_services": [
            {
                "heading": "Fast Delivery",
                "description": "With our partnered courier services your product will be delivered fast"
            },
            {
                "heading": "Quality Assurance",
                "description": "6 Quality checks your product quality is 100% trustable"
            },
            {
                "heading": "Purchase Protection",
                "description": "All your purcahse are secured from our leading payment gateways."
            }
        ],
        "coupans": [
            {
                "id": 4,
                "code": "WELCOME",
                "description": null,
                "distype": "fix",
                "amount": "100",
                "link_by": "cart",
                "pro_id": null,
                "simple_pro_id": null,
                "cat_id": null,
                "is_login": 0,
                "maxusage": 7,
                "minamount": 99.9,
                "expirydate": "2022-12-28 00:00:00",
                "created_at": "2020-12-24T01:33:10.000000Z",
                "updated_at": "2021-08-04T09:05:52.000000Z"
            }
        ],
        "comments": [
            {
                "id": 138,
                "name": "Iqbal Dev Magar",
                "email": "datta.bhaagyasree@rediffmail.com",
                "comment": "Esse vel ducimus autem autem consectetur. At nam harum minus dolorem saepe vel minus. Officiis tenetur voluptate minima consequatur. Expedita ut consequatur quaerat.",
                "approved": 1,
                "pro_id": 39,
                "created_at": "2022-01-18T06:50:17.000000Z",
                "updated_at": "2022-01-18T06:50:17.000000Z",
                "simple_pro_id": 0
            },
            {
                "id": 89,
                "name": "Munaf Rahim Ratta",
                "email": "brar.owais@rediffmail.com",
                "comment": "Repellat ipsum soluta perspiciatis fugit dolor voluptatum voluptatum. Id ut dolore quia laudantium aspernatur. Occaecati esse voluptatum qui facilis est cupiditate sed.",
                "approved": 1,
                "pro_id": 39,
                "created_at": "2022-01-18T06:49:48.000000Z",
                "updated_at": "2022-01-18T06:49:48.000000Z",
                "simple_pro_id": 0
            },
            {
                "id": 20,
                "name": "Rammy",
                "email": "rammy@gmail.com",
                "comment": "Awesome release ",
                "approved": 1,
                "pro_id": 39,
                "created_at": "2022-01-17T05:31:21.000000Z",
                "updated_at": "2022-01-17T05:31:21.000000Z",
                "simple_pro_id": 0
            }
        ],
        "viewallcomment": "View all (7) comments",
        "ratingsAndreviews": [
            {
                "pro_id": 39,
                "rating": 5,
                "user": "Admin",
                "userid": 1,
                "review": null
            },
            {
                "pro_id": 39,
                "rating": 4,
                "user": "Sara",
                "userid": 27,
                "review": "Good product"
            },
            {
                "pro_id": 39,
                "rating": 2,
                "user": "seller01",
                "userid": 6,
                "review": null
            }
        ],
        "viewallreview": "View all (4) reviews",
        "is_in_wishlist": 0
    },
    "relatedProducts": [
        {
            "variantid": 58,
            "productid": 35,
            "productname": {
                "en": "Women's Open Toe Slip On Sandals"
            },
            "price": {
                "mainprice": "99.00",
                "offerprice": "0.00"
            },
            "rating": 3.2,
            "thumbnail": "variant_1579259132Pe5HfhJyZz.png",
            "thumbnail_path": "https://emart.test/variantimages/thumbanails"
        },
        {
            "variantid": 68,
            "productid": 38,
            "productname": {
                "en": "Crop Womens Sweatpants"
            },
            "price": {
                "mainprice": "13.20",
                "offerprice": "0.00"
            },
            "rating": 0,
            "thumbnail": "variant_1579261178CowwYvZi2U.png",
            "thumbnail_path": "https://emart.test/variantimages/thumbanails"
        },
        {
            "variantid": 71,
            "productid": 39,
            "productname": {
                "en": "UA Play Up"
            },
            "price": {
                "mainprice": "5.50",
                "offerprice": "0.00"
            },
            "rating": 3.8,
            "thumbnail": "variant_1579261735BOECgXqPYA.png",
            "thumbnail_path": "https://emart.test/variantimages/thumbanails"
        },
        {
            "variantid": 95,
            "productid": 91,
            "productname": {
                "en": "Women’s Leggings"
            },
            "price": {
                "mainprice": "99.00",
                "offerprice": "0.00"
            },
            "rating": 0,
            "thumbnail": "variant_1594124756i4aqMMq0lB.png",
            "thumbnail_path": "https://emart.test/variantimages/thumbanails"
        }
    ],
    "hotdeals": [
        {
            "start_date": "2021-03-22 18:49:00",
            "end_date": "2022-01-31 11:27:00",
            "productid": 1,
            "variantid": 0,
            "productname": {
                "en": "iTab",
                "hi": "आईटैब"
            },
            "mainprice": 9493.76,
            "offerprice": 0,
            "tax_info": "Inclusive of all taxes",
            "thumbnail_path": "https://emart.test/images/simple_products",
            "thumbnail": "thum_dgp_60c34d8be914b.png",
            "otherimagepath": "https://emart.test/images/simple_products/gallery",
            "otherimages": [
                {
                    "image": "product_gallery_60c34d8c19651.png"
                },
                {
                    "image": "product_gallery_60c34d8c66883.png"
                }
            ],
            "pricein": "INR",
            "symbol": "₹",
            "type": "s",
            "rating": 3.3333333333333335,
            "off_percent": 0,
            "hotdeal_bg_path": "https://emart.test/images/hotdeal_backgrounds",
            "hotdeal_bg": "default.jpg"
        }
    ]
}
[
  "Invalid Secret Key !"
]
[
  {
    "secret": [
      "The secret field is required."
    ],
    "currency": [
      "The currency field is required."
    ]
  }
]
PreviousHomepage (12/01/2022)NextProduct all Comments

Last updated 2 years ago

Was this helpful?