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¤cy=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"
}
]
}
Last updated
Was this helpful?