Create a new Variant of the specified base product.
curl --request POST \
--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"
}
],
"weight": 500,
"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,
"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"
}
]
}
'
import requests
url = "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}"
payload = {
"salesPrice": 543,
"regularPrice": 543,
"quantity": 1,
"variantAttributeValues": [
{
"name": "color",
"value": "brown"
}
],
"weight": 500,
"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,
"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"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
salesPrice: 543,
regularPrice: 543,
quantity: 1,
variantAttributeValues: [{name: 'color', value: 'brown'}],
weight: 500,
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,
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'
}
]
})
};
fetch('https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'salesPrice' => 543,
'regularPrice' => 543,
'quantity' => 1,
'variantAttributeValues' => [
[
'name' => 'color',
'value' => 'brown'
]
],
'weight' => 500,
'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,
'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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}"
payload := strings.NewReader("{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}")
.header("Content-Type", "application/json")
.body("{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body
{
"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"
}
Product
Create a new Variant of the specified base product.
Create a new Variant of the specified base product.
POST
/
{storeId}
/
products
/
{productId}
/
variants
/
{variantId}
Create a new Variant of the specified base product.
curl --request POST \
--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"
}
],
"weight": 500,
"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,
"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"
}
]
}
'
import requests
url = "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}"
payload = {
"salesPrice": 543,
"regularPrice": 543,
"quantity": 1,
"variantAttributeValues": [
{
"name": "color",
"value": "brown"
}
],
"weight": 500,
"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,
"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"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
salesPrice: 543,
regularPrice: 543,
quantity: 1,
variantAttributeValues: [{name: 'color', value: 'brown'}],
weight: 500,
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,
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'
}
]
})
};
fetch('https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'salesPrice' => 543,
'regularPrice' => 543,
'quantity' => 1,
'variantAttributeValues' => [
[
'name' => 'color',
'value' => 'brown'
]
],
'weight' => 500,
'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,
'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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}"
payload := strings.NewReader("{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}")
.header("Content-Type", "application/json")
.body("{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/products/{productId}/variants/{variantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"salesPrice\": 543,\n \"regularPrice\": 543,\n \"quantity\": 1,\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": \"brown\"\n }\n ],\n \"weight\": 500,\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body
{
"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"
}
"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."
"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."
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Aasaan","colors":{"primary":"#06B390","light":"#83CC57","dark":"#06B390"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b","dark":"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b"},"appearance":{"default":"dark","strict":true},"navbar":{"primary":{"type":"button","label":"Sign Up","href":"https://admin.aasaan.app/auth/register"}},"footer":{"socials":{"twitter":"https://twitter.com/aasaan_app_/","instagram":"https://www.instagram.com/aasaan_app_/","linkedin":"https://www.linkedin.com/company/aasaanapp/"}},"navigation":{"global":{"anchors":[{"anchor":"Connect to Shopify","href":"https://aasaan.app/connect/shopify/","icon":"shopify"},{"anchor":"Connect to Bigcommerce","href":"https://aasaan.app/connect/bigcommerce/","icon":"money-check-dollar"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aasaan","hasAudioNarration":false,"actualSubdomain":"aasaan","customDomains":["help.aasaan.app"],"gitSource":{"type":"github","owner":"gsraju27","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e60f91916e8ce404e5f6","collectionId":"ecf16b7a-eadf-4a25-ae27-e68276b3fcc9","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e60f91916e8ce404e5f6:success","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Partner API","count":43},{"language":"default","tag":"Backend API","count":37},{"language":"default","tag":"Documentation","count":32},{"language":"default","tag":"Product","count":18},{"language":"default","tag":"Brand","count":14},{"language":"default","tag":"Category","count":14},{"language":"default","tag":"STOREFRONT BUILDER","count":10},{"language":"default","tag":"APP MARKET","count":9},{"language":"default","tag":"COMMERCE","count":9},{"language":"default","tag":"GETTING STARTED","count":8}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/product/create-a-new-variant-of-the-specified-base-product","slug":"/api-reference/product/create-a-new-variant-of-the-specified-base-product","pageMetadata":{"openapi":"post /{storeId}/products/{productId}/variants/{variantId}","title":"Create a new Variant of the specified base product.","description":"Create a new Variant of the specified base product.","href":"/api-reference/product/create-a-new-variant-of-the-specified-base-product"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new Variant of the specified base product.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /{storeId}/products/{productId}/variants/{variantId}","title":"Create a new Variant of the specified base product.","description":"Create a new Variant of the specified base product.","href":"/api-reference/product/create-a-new-variant-of-the-specified-base-product"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create a new Variant of the specified base product.","tags":["Product"],"description":"Create a new Variant of the specified base product.","parameters":["6b3d37cf-e8f3-41a0-9808-0c626b21affe","7847a192-3239-4325-b425-a42904b49111","23ba76ac-9ed5-4eb5-bbe8-f6284d8cb141"],"requestBody":"a9593ae4-a37d-497c-b36c-d37515f6ad72","responses":{"201":"ec4c8a9a-7701-4706-b80a-447ec59d6797","403":"4e6ec9f0-290b-4aaa-8687-dfb6554b3f62","422":"01223d93-e631-40cf-b66c-7bf1d7cb9dc4","500":"db92c016-15ae-49c0-bd5e-c53909c3d490"},"x-amazon-apigateway-integration":{"type":"aws_proxy","httpMethod":"POST","uri":"arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:128512798967:function:aasaan-api-dev-serverless/invocations","passthroughBehavior":"when_no_match","responses":{"default":{"statusCode":200}}},"method":"post","type":"path","servers":["0dd087dd-f463-43eb-91a7-5af4c9af7430"],"security":[],"path":"/{storeId}/products/{productId}/variants/{variantId}","baseUrlOptions":["https://partner-api.aasaan.shop/api/v1/partner-integrations/stores"],"title":"Create a new Variant of the specified base product.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6b3d37cf-e8f3-41a0-9808-0c626b21affe":{"name":"storeId","in":"path","required":true,"schema":{"type":"string","description":"Store ID for this resource request","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"7847a192-3239-4325-b425-a42904b49111":{"name":"productId","in":"path","required":true,"schema":{"type":"string","description":"Product Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"23ba76ac-9ed5-4eb5-bbe8-f6284d8cb141":{"name":"variantId","in":"path","required":true,"schema":{"type":"string","description":"Variant Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["salesPrice","regularPrice","quantity","weight","variantAttributeValues"],"properties":{"salesPrice":{"type":"string","description":"Sales price","example":543,"isRequired":true,"uniqueKey":"salesPrice","typeLabel":"string"},"regularPrice":{"type":"string","description":"Actual price","example":543,"isRequired":true,"uniqueKey":"regularPrice","typeLabel":"string"},"quantity":{"type":"integer","description":"Product quantity","example":1,"isRequired":true,"uniqueKey":"quantity","typeLabel":"integer"},"variantAttributeValues":{"type":"array","description":"attributes and corresponding options","items":{"type":"object","properties":{"name":{"type":"string","description":"attribute name","example":"color","uniqueKey":"variantAttributeValues.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","description":"attribute option value","example":"brown","uniqueKey":"variantAttributeValues.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"variantAttributeValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"variantAttributeValues","typeLabel":"object[]"},"weight":{"type":"integer","description":"Weight(kg)","example":500,"isRequired":true,"uniqueKey":"weight","typeLabel":"integer"},"description":{"type":"string","description":"Product description","example":"Now, ensure the good health of your hair with Head \u0026 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.","uniqueKey":"description","typeLabel":"string"},"shortDescription":{"type":"string","description":"Product short description","example":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","uniqueKey":"shortDescription","typeLabel":"string"},"active":{"type":"boolean","description":"Active indicator","example":true,"uniqueKey":"active","typeLabel":"boolean"},"outOfStock":{"type":"boolean","description":"Out of stock product","example":false,"uniqueKey":"outOfStock","typeLabel":"boolean"},"width":{"type":"integer","description":"Width(cm)","example":100,"uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"Height(cm)","example":200,"uniqueKey":"height","typeLabel":"integer"},"depth":{"type":"integer","description":"Depth(cm)","example":20,"uniqueKey":"depth","typeLabel":"integer"},"isShippingEnabled":{"type":"boolean","description":"Enable to enter shipping details","example":true,"uniqueKey":"isShippingEnabled","typeLabel":"boolean"},"seo":{"type":"object","description":"SEO metadata for this product","properties":{"title":{"type":"string","description":"SEO Title","example":"Head and Shoulders","uniqueKey":"seo.title","typeLabel":"string"},"description":{"type":"string","description":"SEO Description","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","uniqueKey":"seo.description","typeLabel":"string"},"image":{"type":"object","description":"SEO Image","properties":{"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"seo.image.url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"seo.image.type","typeLabel":"string"}},"uniqueKey":"seo.image","typeLabel":"object"}},"uniqueKey":"seo","typeLabel":"object"},"images":{"type":"array","description":"Product images","items":{"type":"object","properties":{"id":{"type":"string","description":"Image identifier","example":0,"uniqueKey":"images.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"images","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"salesPrice":543,"regularPrice":543,"quantity":1,"variantAttributeValues":[{"name":"color","value":"brown"}],"weight":500,"description":"Now, ensure the good health of your hair with Head \u0026 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,"isShippingEnabled":true,"seo":{"title":"Head and Shoulders","description":"Head \u0026 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"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"ec4c8a9a-7701-4706-b80a-447ec59d6797":{"description":"Variant created.","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","description":"Unique identifier for the resource","example":"623d3455ec3c4b3548eb4a343","uniqueKey":"id","typeLabel":"string"},"names":{"type":"array","description":"Name","example":"XL, Brown","uniqueKey":"names","typeLabel":"array"},"slug":{"type":"string","description":"Slug","example":"head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22","uniqueKey":"slug","typeLabel":"string"},"salesPrice":{"type":"string","description":"Sales price","example":543,"uniqueKey":"salesPrice","typeLabel":"string"},"regularPrice":{"type":"string","description":"Actual price","example":543,"uniqueKey":"regularPrice","typeLabel":"string"},"quantity":{"type":"integer","description":"Product quantity","example":1,"uniqueKey":"quantity","typeLabel":"integer"},"description":{"type":"string","description":"Product description","example":"Now, ensure the good health of your hair with Head \u0026 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.","uniqueKey":"description","typeLabel":"string"},"shortDescription":{"type":"string","description":"Product short description","example":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","uniqueKey":"shortDescription","typeLabel":"string"},"hide":{"type":"boolean","description":"Hide this product","example":false,"uniqueKey":"hide","typeLabel":"boolean"},"active":{"type":"boolean","description":"Active indicator","example":true,"uniqueKey":"active","typeLabel":"boolean"},"outOfStock":{"type":"boolean","description":"Out of stock product","example":false,"uniqueKey":"outOfStock","typeLabel":"boolean"},"width":{"type":"integer","description":"Width(cm)","example":100,"uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"Height(cm)","example":200,"uniqueKey":"height","typeLabel":"integer"},"depth":{"type":"integer","description":"Depth(cm)","example":20,"uniqueKey":"depth","typeLabel":"integer"},"weight":{"type":"integer","description":"Weight(kg)","example":500,"uniqueKey":"weight","typeLabel":"integer"},"isShippingEnabled":{"type":"boolean","description":"Enable to enter shipping details","example":true,"uniqueKey":"isShippingEnabled","typeLabel":"boolean"},"seo":{"type":"object","description":"SEO metadata for this product","properties":{"title":{"type":"string","description":"SEO Title","example":"Head and Shoulders","uniqueKey":"seo.title","typeLabel":"string"},"description":{"type":"string","description":"SEO Description","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","uniqueKey":"seo.description","typeLabel":"string"},"image":{"type":"object","description":"SEO Image","properties":{"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"seo.image.url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"seo.image.type","typeLabel":"string"}},"uniqueKey":"seo.image","typeLabel":"object"}},"uniqueKey":"seo","typeLabel":"object"},"images":{"type":"array","description":"Product images","items":{"type":"object","properties":{"id":{"type":"string","description":"Image identifier","example":0,"uniqueKey":"images.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"images.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"images","typeLabel":"object[]"},"date_created":{"type":"string","description":"Created date","example":"2022-03-25T03:17:44.092Z","uniqueKey":"date_created","typeLabel":"string"},"date_modified":{"type":"string","description":"Modified date","example":"2022-06-10T07:51:12.510Z","uniqueKey":"date_modified","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"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 \u0026 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 \u0026 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"}}},"exampleType":"generated"}},"exampleType":"generated"},"4e6ec9f0-290b-4aaa-8687-dfb6554b3f62":{"description":"Invalid Api Key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"01223d93-e631-40cf-b66c-7bf1d7cb9dc4":{"description":"Data error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"db92c016-15ae-49c0-bd5e-c53909c3d490":{"description":"Internal Server Error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{},"servers":{"0dd087dd-f463-43eb-91a7-5af4c9af7430":{"url":"https://partner-api.aasaan.shop/api/v1/partner-integrations/stores","description":"Development server"}}},"originalFileLocation":"partnerapi.json"},"subdomain":"aasaan","siteName":"Aasaan","title":"Create a new Variant of the specified base product. - Aasaan","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:49:29.269Z","originalFileLocation":"api-reference/product/create-a-new-variant-of-the-specified-base-product.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new Variant of the specified base product.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aasaan\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new Variant of the specified base product. - Aasaan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new Variant of the specified base product.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aasaan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aasaan.mintlify.app/_mintlify/api/og/v2?division=Product\u0026amp;title=Create+a+new+Variant+of+the+specified+base+product.\u0026amp;description=Create+a+new+Variant+of+the+specified+base+product.\u0026amp;theme=af106137a0faf7d9f76a257c\u0026amp;signature=9481aea5b18d5017c93a2a4804b5246ff24c3aef3321fc51fb5ac5157b5f59cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new Variant of the specified base product. - Aasaan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new Variant of the specified base product.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aasaan.mintlify.app/_mintlify/api/og/v2?division=Product\u0026amp;title=Create+a+new+Variant+of+the+specified+base+product.\u0026amp;description=Create+a+new+Variant+of+the+specified+base+product.\u0026amp;theme=af106137a0faf7d9f76a257c\u0026amp;signature=9481aea5b18d5017c93a2a4804b5246ff24c3aef3321fc51fb5ac5157b5f59cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aasaan\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#06B390\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/product/create-a-new-variant-of-the-specified-base-product.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.aasaan.app/#organization\",\"name\":\"Aasaan\",\"url\":\"https://help.aasaan.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.aasaan.app#website\",\"name\":\"Aasaan\",\"url\":\"https://help.aasaan.app\",\"publisher\":{\"@id\":\"https://help.aasaan.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product#webpage\",\"url\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product\",\"name\":\"Create a new Variant of the specified base product.\",\"description\":\"Create a new Variant of the specified base product.\",\"dateModified\":\"2026-01-06T23:49:29.269Z\",\"isPartOf\":{\"@id\":\"https://help.aasaan.app#website\"},\"breadcrumb\":{\"@id\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Product\",\"item\":\"https://help.aasaan.app/api-reference/product/get-a-product-by-id\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new Variant of the specified base product.\",\"item\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product#apireference\",\"headline\":\"Create a new Variant of the specified base product.\",\"name\":\"Create a new Variant of the specified base product.\",\"description\":\"Create a new Variant of the specified base product.\",\"url\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product\",\"mainEntityOfPage\":{\"@id\":\"https://help.aasaan.app/api-reference/product/create-a-new-variant-of-the-specified-base-product#webpage\"},\"dateModified\":\"2026-01-06T23:49:29.269Z\",\"publisher\":{\"@id\":\"https://help.aasaan.app/#organization\"},\"isPartOf\":{\"@id\":\"https://help.aasaan.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aasaan\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Aasaan","nav":{"global":{"anchors":[{"anchor":"Connect to Shopify","href":"https://aasaan.app/connect/shopify/","icon":"shopify"},{"anchor":"Connect to Bigcommerce","href":"https://aasaan.app/connect/bigcommerce/","icon":"money-check-dollar"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/documentation/fundamentals/getting-set-up"}]},{"tab":"Backend API","pages":[{"title":"Backend API","href":"/backend-api/introduction"}]},{"tab":"Partner API","groups":[{"group":"GETTING STARTED","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Versioning","href":"/api-reference/versioning"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Store","pages":[{"openapi":"get /all/stores","title":"Get All Stores for a client","href":"/api-reference/store/get-all-stores-for-a-client"},{"openapi":"get /{storeId}","title":"Get Store Information","href":"/api-reference/store/get-store-information"},{"openapi":"post /{storeId}","title":"Create a new store.","href":"/api-reference/store/create-a-new-store"},{"openapi":"patch /{storeId}","title":"Update Store information (email, address, metadata)","href":"/api-reference/store/update-store-information-email-address-metadata"}]},{"group":"Custom Domain","pages":[{"openapi":"post /{storeId}/customdomain","title":"Create a custom domain.","href":"/api-reference/custom-domain/create-a-custom-domain"}]},{"group":"Category","pages":[{"openapi":"get /{storeId}/categories/{id}","title":"Get a category by Id.","href":"/api-reference/category/get-a-category-by-id"},{"openapi":"put /{storeId}/categories/{id}","title":"Put a new category.","href":"/api-reference/category/put-a-new-category"},{"openapi":"post /{storeId}/categories/{id}","title":"Create a new category.","href":"/api-reference/category/create-a-new-category"},{"openapi":"delete /{storeId}/categories/{id}","title":"Delete a Category.","href":"/api-reference/category/delete-a-category"},{"openapi":"patch /{storeId}/categories/{id}","title":"Update a category.","href":"/api-reference/category/update-a-category"},{"openapi":"put /{storeId}/categories/","title":"Put a multiple categories","href":"/api-reference/category/put-a-multiple-categories"},{"openapi":"get /{storeId}/categories","title":"Get all categories.","href":"/api-reference/category/get-all-categories"}]},{"group":"Brand","pages":[{"openapi":"get /{storeId}/brands/{id}","title":"Get a brand by Id.","href":"/api-reference/brand/get-a-brand-by-id"},{"openapi":"put /{storeId}/brands/{id}","title":"Put a brand.","href":"/api-reference/brand/put-a-brand"},{"openapi":"post /{storeId}/brands/{id}","title":"Create a new brand.","href":"/api-reference/brand/create-a-new-brand"},{"openapi":"delete /{storeId}/brands/{id}","title":"Delete a brand.","href":"/api-reference/brand/delete-a-brand"},{"openapi":"patch /{storeId}/brands/{id}","title":"Update a brand.","href":"/api-reference/brand/update-a-brand"},{"openapi":"get /{storeId}/brands","title":"Get all brands.","href":"/api-reference/brand/get-all-brands"},{"openapi":"put /{storeId}/brands","title":"Put a multiple brands","href":"/api-reference/brand/put-a-multiple-brands"}]},{"group":"Tag","pages":[{"openapi":"get /{storeId}/tags/{id}","title":"Get a tag by Id.","href":"/api-reference/tag/get-a-tag-by-id"},{"openapi":"put /{storeId}/tags/{id}","title":"Put a tag.","href":"/api-reference/tag/put-a-tag"},{"openapi":"post /{storeId}/tags/{id}","title":"Create a new tag.","href":"/api-reference/tag/create-a-new-tag"},{"openapi":"delete /{storeId}/tags/{id}","title":"Delete a tag.","href":"/api-reference/tag/delete-a-tag"},{"openapi":"patch /{storeId}/tags/{id}","title":"Update a tag.","href":"/api-reference/tag/update-a-tag"},{"openapi":"get /{storeId}/tags","title":"Get all tags.","href":"/api-reference/tag/get-all-tags"},{"openapi":"put /{storeId}/tags","title":"Put a multiple tags","href":"/api-reference/tag/put-a-multiple-tags"}]},{"group":"Store Front","pages":[{"openapi":"get /{storeId}/product-ordering","title":"Gets the current product ordering.","href":"/api-reference/store-front/gets-the-current-product-ordering"},{"openapi":"post /{storeId}/product-ordering","title":"Updates the product ordering within a category","href":"/api-reference/store-front/updates-the-product-ordering-within-a-category"},{"openapi":"get /{storeId}/storefront","title":"Get the template attributes.","href":"/api-reference/store-front/get-the-template-attributes"},{"openapi":"patch /{storeId}/storefront","title":"Update a template.","href":"/api-reference/store-front/update-a-template"}]},{"group":"Product","pages":[{"openapi":"get /{storeId}/products/{productId}","title":"Get a product by id.","href":"/api-reference/product/get-a-product-by-id"},{"openapi":"put /{storeId}/products/{productId}","title":"Create or update a product.","href":"/api-reference/product/create-or-update-a-product"},{"openapi":"post /{storeId}/products/{productId}","title":"Create a new product.","href":"/api-reference/product/create-a-new-product"},{"openapi":"delete /{storeId}/products/{productId}","title":"Delete a Product.","href":"/api-reference/product/delete-a-product"},{"openapi":"patch /{storeId}/products/{productId}","title":"Update a product.","href":"/api-reference/product/update-a-product"},{"openapi":"get /{storeId}/products","title":"Get all products.","href":"/api-reference/product/get-all-products"},{"openapi":"put /{storeId}/products","title":"Create or update multiple products.","description":"Create a new product or update existing product with this PUT operation.","href":"/api-reference/product/create-or-update-multiple-products"},{"openapi":"post /{storeId}/products/{productId}/variants/{variantId}","title":"Create a new Variant of the specified base product.","href":"/api-reference/product/create-a-new-variant-of-the-specified-base-product"},{"openapi":"patch /{storeId}/products/{productId}/variants/{variantId}","title":"Update a variant.","description":"Update a variant.","href":"/api-reference/product/update-a-variant"}]}]}]},"title":"Create a new Variant of the specified base product. - Aasaan","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}