Product Detail page (18/01)
Get Each Product Detail By Firing this api.
Last updated
Get Each Product Detail By Firing this api.
Last updated
GET
https://castleindia.in/emart/public /api/details/{productid}/{variantid}/{type}?secret=XXXX¤cy=XXX
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"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 & 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 & 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."
]
}
]
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
secret
String
Client secret key which you obtained from admin panel.
currency
String
Currency ISO code 3 eg : INR
Authorization
String
Bearer { bearer_token without bracket } To check if logged in user item in wishlist or not.
Accept
String
application/json