Brand Products
Get each brand product by firing this api.
GET
https://castleindia.in/emart/public /api/brands/{id}/products?secret=xxxx¤cy=xxx /api/brands/
Path Parameters
Name
Type
Description
id
integer
ID of the brand.
Query Parameters
Name
Type
Description
secret
String
Client secret key which obtain from the admin panel.
currency
String
Currency ISO code 3 eg : INR
Headers
Name
Type
Description
Header
String
application/json
{
"brandid": 1,
"name": "Apple",
"image": "15957760761582115025brand3.png",
"image_path": "https://emart.test/images/brands",
"products": [
{
"productid": 2,
"variantid": 0,
"productname": {
"en": "Apple iPhone 12 (64GB) - Purple"
},
"type": "s",
"mainprice": 101317.5,
"offerprice": 95782.4,
"pricein": "INR",
"symbol": "₹",
"rating": 0,
"reviews": 0,
"thumbnail": "thum_dgp_60c72b6d892c9.jpg",
"thumbnail_path": "https://emart.test/images/simple_products",
"off_in_percent": 5,
"tax_info": "Inclusive of all taxes",
"is_in_wishlist": false
},
{
"variantid": 6,
"type": "v",
"productid": 4,
"productname": {
"en": "Apple iPad Pro"
},
"mainprice": 56713.66,
"offerprice": 0,
"pricein": "INR",
"symbol": "₹",
"rating": 0,
"reviews": 0,
"off_in_percent": 0,
"thumbnail": "variant_1596517419eBZg3Q52UE.jpg",
"thumbnail_path": "https://emart.test/variantimages/thumbnails",
"tax_info": "Inclusive of all taxes",
"is_in_wishlist": false
},
{
"productid": 11,
"variantid": 0,
"productname": {
"en": "School Bagpack"
},
"type": "s",
"mainprice": 9578.24,
"offerprice": 0,
"pricein": "INR",
"symbol": "₹",
"rating": 0,
"reviews": 0,
"thumbnail": "pink-black-bagpack-mock-up_1310-135.jpg",
"thumbnail_path": "https://emart.test/images/simple_products",
"off_in_percent": 0,
"tax_info": "Inclusive of all taxes",
"is_in_wishlist": false
}
]
}
IF Response is fail
{
"errors": {
"secret": [
"The secret field is required."
],
"currency": [
"The currency field is required."
]
},
"status": "fail"
}
{
"errors": "Invalid Secret Key !",
"status": "fail"
}
Last updated
Was this helpful?