Add product

PENDING 8 hrs Medium 2024-08-01

User Story

  • System should provide options to create product.
  • System should allow only admin, super admin to add product.
  • System should allow to add multiple image to product.
  • System should allow to add product variant.
  • System should allow to assign multiple category for a product.
  • Collect Basic Information.

Basic Information Need to be collected

  • Product Name (Required)
  • Brand
  • Model
  • Make
  • Quantity (Required)
  • Price (Required)
  • Cost Price (Required)
  • Unit
  • HSN code
  • GST Percentage
  • Images (Required)
  • Category (Required)
  • Description

REST API

JSON Structure

[
  {
    "id": "string",
    "createdAt": "2024-08-01T13:09:21.718Z",
    "updatedAt": "2024-08-01T13:09:21.718Z",
    "name": "string",
    "images": [
      {
        "id": "string",
        "createdAt": "2024-08-01T13:09:21.718Z",
        "updatedAt": "2024-08-01T13:09:21.718Z",
        "name": "string",
        "url": "string"
      }
    ],
    "products": [
      {
        "id": "string",
        "createdAt": "2024-08-01T13:09:21.718Z",
        "updatedAt": "2024-08-01T13:09:21.718Z",
        "name": "string",
        "description": "string",
        "brand": "string",
        "model": "string",
        "make": "string",
        "quantity": 0,
        "price": 0,
        "costPrice": 0,
        "unit": "string",
        "hsnCode": "string",
        "gstPercentage": 0,
        "scanCode": "string",
        "images": [
          {
            "id": "string",
            "createdAt": "2024-08-01T13:09:21.718Z",
            "updatedAt": "2024-08-01T13:09:21.718Z",
            "name": "string",
            "url": "string"
          }
        ],
        "categories": ["string"]
      }
    ]
  }
]