Skip to main content
GET
/
shops
/
{shopId}
/
products
/
{slug}
Get Product by Slug
curl --request GET \
  --url http://staging.qshop.ng/apiv2/shops/{shopId}/products/{slug}
{
  "msg": "<string>",
  "data": {
    "reviews": {
      "rates": {
        "1": 123,
        "2": 123,
        "3": 123,
        "4": 123,
        "5": 123
      },
      "count": 123,
      "average": 123
    },
    "categories": "<array>",
    "costPrice": "<unknown>",
    "alwaysInStock": true,
    "isHero": true,
    "setAttributesForVariants": true,
    "variantsInheritPrice": true,
    "_id": "<string>",
    "tags": [
      {
        "_id": "<string>",
        "name": "<string>",
        "tempId": "<string>",
        "shop": "<string>",
        "__v": 123,
        "slug": "<string>",
        "productCount": 123,
        "imageUrl": "<string>"
      }
    ],
    "additional_media": "<array>",
    "attributes": "<array>",
    "variants": "<array>",
    "stock": 123,
    "digital": true,
    "media": "<string>",
    "media_type": "<string>",
    "name": "<string>",
    "price": 123,
    "description": "<string>",
    "shop": "<string>",
    "created": "<string>",
    "sale_price": 123,
    "archived": true,
    "__v": 123,
    "draft": true,
    "numberOfPurchase": 123,
    "onSale": true,
    "slug": "<string>",
    "type": "<string>"
  },
  "success": true
}

Path Parameters

shopId
string
required
slug
string
required

Response

200 - application/json
msg
string
required
data
object
required
success
boolean
required