PUT
/
products
/
{productId}
curl --request PUT \
  --url https://api.aasaan.shop/api/v1/stores/products/{productId} \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "brand": {
    "id": "636f2e876e9de14bfe1b02f2"
  },
  "categories": [
    {
      "id": "636f2e876e9de14bfe1b02f1"
    }
  ],
  "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,
  "images": [
    {
      "id": "<string>",
      "type": "https://images.aasaan.app/123412421",
      "url": "https://images.aasaan.app/123412421"
    }
  ],
  "isProductLevelTaxEnabled": true,
  "isShippingEnabled": true,
  "name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
  "outOfStock": true,
  "prices": [
    {
      "channelId": "636f2e876e9de14bfe1b02f1",
      "hide": true,
      "regularPrice": "50",
      "salesPrice": "45"
    }
  ],
  "quantities": [
    {
      "quantity": "45",
      "warehouseId": "636f2e876e9de14bfe1b02f1"
    }
  ],
  "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",
  "tax": {
    "CGST": 2,
    "GST": 4,
    "SGST": 2
  },
  "variantAttributeValues": [
    {
      "name": "color",
      "value": "blue, yellow, green"
    }
  ],
  "weight": 500,
  "width": 100
}'
{
  "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
}

Path Parameters

productId
string
required

Product Id

Body

application/json
active
boolean

Active indicator

brand
object

Brand

categories
object[]
required

Associated Categories

depth
integer

Depth(cm)

description
string

Product description

displayOrder
integer

Product display order

height
integer

Height(cm)

images
object[]

Product images

isProductLevelTaxEnabled
boolean

Enable to enter CGST and SGST taxes

isShippingEnabled
boolean

Enable to enter shipping details

name
string
required

Name

outOfStock
boolean

Out of stock product

prices
object[]

Price Information across various channels

quantities
object[]

Quantity Information across various warehouses

quantity
integer
required

Product quantity

seo
object

SEO metadata for this product

shortDescription
string

Product short description

sku
string
required

Stock keeping Unit

tax
object

Tax information for this product

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
active
boolean

Active indicator

brand
object

Brand

categories
object[]

Associated Categories

date_created
string

Created date

date_modified
string

Modified date

depth
integer

Depth(cm)

description
string

Product description

height
integer

Height(cm)

id
string

Unique identifier for the resource

images
object[]

Product images

isProductLevelTaxEnabled
boolean

Enable to enter CGST and SGST taxes

isShippingEnabled
boolean

Enable to enter shipping details

isVariantEnabled
boolean

Enable to enter product variants

name
string

Name

outOfStock
boolean

Out of stock product

prices
object[]

Price Information across various channels

quantity
integer

Product quantity

seo
object

SEO metadata for this product

shortDescription
string

Product short description

sku
string

Stock keeping Unit

slug
string

Slug

tax
object

Tax information for this product

variantAttributeValues
object[]

All Possible Variant Attribute Values that this parent product can have

variants
object[]

Images

weight
integer

Weight(kg)

width
integer

Width(cm)