PUT
/
products
curl --request PUT \
  --url https://api.aasaan.shop/api/v1/stores/products \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "active": true,
    "brandInformation": "Nike",
    "categoryInformation": "breakfast menu",
    "depth": 20,
    "description": "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.",
    "displayOrder": 1,
    "height": 200,
    "id": "ae7219",
    "images": [
      {
        "id": "<string>",
        "type": "https://images.aasaan.app/123412421",
        "url": "https://images.aasaan.app/123412421"
      }
    ],
    "isShippingEnabled": true,
    "metaData": {},
    "name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
    "outOfStock": true,
    "prices": [
      {
        "channelId": "636f2e876e9de14bfe1b02f1",
        "hide": true,
        "regularPrice": "50",
        "salesPrice": "45"
      }
    ],
    "quantity": 100,
    "seo": {
      "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
      "image": {
        "type": "image/png",
        "url": "https://images.aasaan.app/123412421"
      },
      "title": "Head and Shoulders"
    },
    "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
    "tagInformation": "vegan",
    "variantAttributeValues": [
      {
        "name": "color",
        "value": "blue, yellow, green"
      }
    ],
    "weight": 2,
    "width": 100
  }
]'
{
  "errors": "Product with ProductId - product-id-1 is missing categories",
  "products": [
    {
      "active": true,
      "brand": {
        "id": "636f2e876e9de14bfe1b02fa",
        "name": "P&G"
      },
      "categories": [
        {
          "id": "1231231",
          "name": "Shampoos and Soaps"
        }
      ],
      "date_created": "2022-03-25T03:17:44.092Z",
      "date_modified": "2022-06-10T07:51:12.510Z",
      "depth": 20,
      "description": "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.",
      "height": 200,
      "id": "623d3455ec3c4b3548eb4a343",
      "images": [
        {
          "id": "<string>",
          "type": "image/png",
          "url": "https://images.aasaan.app/123412421"
        }
      ],
      "isProductLevelTaxEnabled": true,
      "isShippingEnabled": true,
      "isVariantEnabled": true,
      "name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
      "outOfStock": true,
      "prices": [
        {
          "channelId": "636f2e876e9de14bfe1b02f1",
          "hide": true,
          "regularPrice": "50",
          "salesPrice": "45"
        }
      ],
      "quantity": 1,
      "seo": {
        "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
        "image": {
          "type": "image/png",
          "url": "https://images.aasaan.app/123412421"
        },
        "title": "Head and Shoulders"
      },
      "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
      "sku": "000-000-000-000",
      "slug": "head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22",
      "tax": {
        "CGST": 2,
        "GST": 4,
        "SGST": 2
      },
      "variantAttributeValues": [
        {
          "name": "color",
          "value": "blue, yellow, green"
        }
      ],
      "variants": [
        {
          "active": true,
          "date_created": "2022-03-25T03:17:44.092Z",
          "date_modified": "2022-06-10T07:51:12.510Z",
          "depth": 10,
          "description": "<string>",
          "height": 10,
          "id": "567152378158871683",
          "images": [
            {
              "id": "<string>",
              "type": "image/png",
              "url": "https://images.aasaan.app/123412421"
            }
          ],
          "isProductLevelTaxEnabled": true,
          "isShippingEnabled": true,
          "name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml",
          "outOfStock": true,
          "quantity": 10,
          "shortDescription": "<string>",
          "weight": 10,
          "width": 10
        }
      ],
      "weight": 500,
      "width": 100
    }
  ]
}

Body

application/json · object[]
active
boolean

Active indicator

brandInformation
string

Brand

categoryInformation
string[]

Associated Categories

depth
integer

Depth(cm)

description
string

Product description

displayOrder
integer

Display Order within the category

height
integer

Height(cm)

id
string
required

id

images
object[]

Product images

isShippingEnabled
boolean

Enable to enter shipping details

metaData
object

Any additional meta data that needs to be stored as a part of this entity

name
string
required

Name

outOfStock
boolean

Out of stock product

prices
object[]

Price Information across various channels

quantity
integer
required

Product quantity

seo
object

SEO metadata for this product

shortDescription
string

Product short description

tagInformation
string[]

Associated tags

variantAttributeValues
object[]

All Possible Variant Attribute Values that this parent product can have

weight
integer
required

Weight(kg)

width
integer

Width(cm)

Response

201 - application/json
errors
string[]
products
object[]