> ## Documentation Index
> Fetch the complete documentation index at: https://help.aasaan.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a product by id.

> Returns a product.



## OpenAPI

````yaml get /products/{id}
openapi: 3.0.0
info:
  title: AASAAN REST API
  version: 1.0.0
  description: >-
    REST API endpoints are organized by resource type. You’ll need to use
    different endpoints depending on your app’s requirements.
servers:
  - url: https://api.aasaan.shop/api/v1/stores
    description: Development server
security: []
tags: []
paths:
  /products/{id}:
    get:
      tags:
        - Product
      summary: Get a product by id.
      description: Returns a product.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Product Id
      responses:
        '200':
          description: Returns a product.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
        '403':
          description: Invalid Api Key.
        '404':
          description: Product not found.
        '500':
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    Product:
      properties:
        id:
          type: string
          description: Unique identifier for the resource
          example: 623d3455ec3c4b3548eb4a343
        sku:
          type: string
          description: Stock keeping Unit
          example: 000-000-000-000
        name:
          type: string
          description: Name
          example: Head & Shoulders Anti Hairfall Anti Dandruff Shampoo
        slug:
          type: string
          description: Slug
          example: head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22
        quantity:
          type: integer
          description: Product quantity
          example: 1
        description:
          type: string
          description: Product description
          example: >-
            Now, ensure the good health of your hair with Head & Shoulders Anti
            Hairfall Anti Dandruff Shampoo that strengthens hair from its roots
            and cures dandruff. Be it dry, frizzy, or damaged, this shampoo can
            bring back the younger days of your hair within just a few days. The
            shampoo is richly indulgent and improves the experience of washing
            your hair. It makes your hair dandruff-free up to 100%. Do not fret
            over chemicals as the product is gentle in use and can be used every
            day.
        shortDescription:
          type: string
          description: Product short description
          example: >-
            Anti Dandruff Shampoo that strengthens hair from its roots and cures
            dandruff
        active:
          type: boolean
          description: Active indicator
          example: true
        outOfStock:
          type: boolean
          description: Out of stock product
          example: false
        width:
          type: integer
          description: Width(cm)
          example: 100
        height:
          type: integer
          description: Height(cm)
          example: 200
        depth:
          type: integer
          description: Depth(cm)
          example: 20
        weight:
          type: integer
          description: Weight(kg)
          example: 500
        prices:
          type: array
          description: Price Information across various channels
          items:
            type: object
            properties:
              channelId:
                type: string
                description: ID of the channel for which price is being specified
                example: 636f2e876e9de14bfe1b02f1
              salesPrice:
                type: string
                description: Current Selling Price
                example: '45'
              regularPrice:
                type: string
                description: Actual Price - should be greater than on equal to salesPrice
                example: '50'
              hide:
                type: boolean
                description: Hides the product in the channel
                example: false
        isShippingEnabled:
          type: boolean
          description: Enable to enter shipping details
          example: true
        isProductLevelTaxEnabled:
          type: boolean
          description: Enable to enter CGST and SGST taxes
          example: true
        tax:
          type: object
          description: Tax information for this product
          properties:
            CGST:
              type: integer
              description: Central Goods and Service tax (%)
              example: 2
            SGST:
              type: integer
              description: Stage Goods and Service tax (%)
              example: 2
            GST:
              type: integer
              description: Overall Goods and Service tax (%)
              example: 4
        isVariantEnabled:
          type: boolean
          description: Enable to enter product variants
        seo:
          type: object
          description: SEO metadata for this product
          properties:
            title:
              type: string
              description: SEO Title
              example: Head and Shoulders
            description:
              type: string
              description: SEO Description
              example: >-
                Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that
                strengthens hair
            image:
              type: object
              description: SEO Image
              properties:
                url:
                  type: string
                  description: Image URL
                  example: https://images.aasaan.app/123412421
                type:
                  type: string
                  description: Mime Type
                  example: image/png
        categories:
          type: array
          description: Associated Categories
          items:
            type: object
            properties:
              id:
                type: string
                description: id
                example: '1231231'
              name:
                type: string
                description: name
                example: Shampoos and Soaps
        images:
          type: array
          description: Product images
          items:
            type: object
            properties:
              id:
                type: string
                description: Image identifier
                example: 0
              url:
                type: string
                description: Image URL
                example: https://images.aasaan.app/123412421
              type:
                type: string
                description: Mime Type
                example: image/png
        variantAttributeValues:
          type: array
          description: >-
            All Possible Variant Attribute Values that this parent product can
            have
          items:
            type: object
            properties:
              name:
                type: string
                description: Name of the variant attribute
                example: color
              value:
                type: array
                description: >-
                  List of all possible values that this attribute can have as
                  variants
                items:
                  type: string
                  example: blue, yellow, green
        brand:
          type: object
          description: Brand
          properties:
            id:
              type: string
              description: id
              example: 636f2e876e9de14bfe1b02fa
            name:
              type: string
              description: name
              example: P&G
        variants:
          type: array
          description: Images
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier for a variant
                example: '567152378158871683'
              name:
                type: string
                description: Variant name
                example: Head & Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml
              quantity:
                type: integer
                description: Variant quantity
                example: 10
              description:
                type: string
                description: Variant description
                example: ''
              shortDescription:
                type: string
                description: Variant short description
                example: ''
              active:
                type: boolean
                description: Active indicator
                example: true
              outOfStock:
                type: boolean
                description: Out of stock
                example: false
              width:
                type: integer
                description: Width(cm)
                example: 10
              height:
                type: integer
                description: Height(cm)
                example: 10
              depth:
                type: integer
                description: Depth(cm)
                example: 10
              weight:
                type: integer
                description: Weight(kg)
                example: 10
              isShippingEnabled:
                type: boolean
                description: Enable to enter shipping details
                example: true
              isProductLevelTaxEnabled:
                type: boolean
                description: Enable to enter CGST and SGST taxes
                example: true
              images:
                type: array
                description: Variant images
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Image identifier
                      example: 0
                    url:
                      type: string
                      description: Image URL
                      example: https://images.aasaan.app/123412421
                    type:
                      type: string
                      description: Mime Type
                      example: image/png
              date_created:
                type: string
                description: Created date
                example: '2022-03-25T03:17:44.092Z'
              date_modified:
                type: string
                description: Modified date
                example: '2022-06-10T07:51:12.510Z'
        date_created:
          type: string
          description: Created date
          example: '2022-03-25T03:17:44.092Z'
        date_modified:
          type: string
          description: Modified date
          example: '2022-06-10T07:51:12.510Z'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````