PATCH
/
{storeId}
/
products
/
{productId}
/
variants
/
{variantId}
curl --request PATCH \
  --url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId} \
  --header 'Content-Type: application/json' \
  --data '{
  "salesPrice": 543,
  "regularPrice": 543,
  "quantity": 1,
  "variantAttributeValues": [
    {
      "name": "color",
      "value": "brown"
    }
  ],
  "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.",
  "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
  "active": true,
  "outOfStock": false,
  "width": 100,
  "height": 200,
  "depth": 20,
  "weight": 500,
  "isShippingEnabled": true,
  "seo": {
    "title": "Head and Shoulders",
    "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
    "image": {
      "url": "https://images.aasaan.app/123412421",
      "type": "image/png"
    }
  },
  "images": [
    {
      "id": 0,
      "url": "https://images.aasaan.app/123412421",
      "type": "https://images.aasaan.app/123412421"
    }
  ]
}'
{
  "id": "623d3455ec3c4b3548eb4a343",
  "names": "XL, Brown",
  "slug": "head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22",
  "salesPrice": 543,
  "regularPrice": 543,
  "quantity": 1,
  "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.",
  "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
  "hide": false,
  "active": true,
  "outOfStock": false,
  "width": 100,
  "height": 200,
  "depth": 20,
  "weight": 500,
  "isShippingEnabled": true,
  "seo": {
    "title": "Head and Shoulders",
    "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
    "image": {
      "url": "https://images.aasaan.app/123412421",
      "type": "image/png"
    }
  },
  "images": [
    {
      "id": 0,
      "url": "https://images.aasaan.app/123412421",
      "type": "image/png"
    }
  ],
  "date_created": "2022-03-25T03:17:44.092Z",
  "date_modified": "2022-06-10T07:51:12.510Z"
}

Path Parameters

storeId
string
required

Store ID for this resource request

productId
string
required

Product Id

variantId
string
required

Variant Id

Body

application/json
salesPrice
string
required

Sales price

Example:

543

regularPrice
string
required

Actual price

Example:

543

quantity
integer
required

Product quantity

Example:

1

variantAttributeValues
object[]
required

attributes and corresponding options

weight
integer
required

Weight(kg)

Example:

500

description
string

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
string

Product short description

Example:

"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff"

active
boolean

Active indicator

Example:

true

outOfStock
boolean

Out of stock product

Example:

false

width
integer

Width(cm)

Example:

100

height
integer

Height(cm)

Example:

200

depth
integer

Depth(cm)

Example:

20

isShippingEnabled
boolean

Enable to enter shipping details

Example:

true

seo
object

SEO metadata for this product

images
object[]

Product images

Response

200
application/json
Variant updated.
id
string

Unique identifier for the resource

Example:

"623d3455ec3c4b3548eb4a343"

names
any[]

Name

Example:

"XL, Brown"

slug
string

Slug

Example:

"head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22"

salesPrice
string

Sales price

Example:

543

regularPrice
string

Actual price

Example:

543

quantity
integer

Product quantity

Example:

1

description
string

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
string

Product short description

Example:

"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff"

hide
boolean

Hide this product

Example:

false

active
boolean

Active indicator

Example:

true

outOfStock
boolean

Out of stock product

Example:

false

width
integer

Width(cm)

Example:

100

height
integer

Height(cm)

Example:

200

depth
integer

Depth(cm)

Example:

20

weight
integer

Weight(kg)

Example:

500

isShippingEnabled
boolean

Enable to enter shipping details

Example:

true

seo
object

SEO metadata for this product

images
object[]

Product images

date_created
string

Created date

Example:

"2022-03-25T03:17:44.092Z"

date_modified
string

Modified date

Example:

"2022-06-10T07:51:12.510Z"