So currently I am working on building a backend etsy application. So I have variants based on color and size and I wanna know what api to call in order to update the price for them,in other words The price of each variant depends on its size and color.
here’s a small example of the request body i am sending on the UpdateListingInventory API:
{
“products”: [
{
“sku”: “my-product-1”,
“property_values”: [
{
“property_id”: 1,
“value_ids”: [
10,11,12,13,14
],
“scale_id”: 1,
“property_name”: “size”,
“values”: [
“1”,“2”,“3”,“4”
]
}
],
“offerings”: [
{
“price”: 10,
“quantity”: 12,
“is_enabled”: true
}
]
}
],
“price_on_property”: [
1
],
“quantity_on_property”: [
1
],
“sku_on_property”: [
my-product-1-size
]
}
in this example the size of the product is denoted by the property id 1,the different size ids of the product are 10,11,12,13,14 and they correspond to the exact sizes we are selling are “1”,“2”,“3”,“4”.
so far i have made variants based on the size,but i wanna create variants based on both size and color and each variant must be available for all the colors and all the sizes i.e, if i have three colors and fours sizes the total number of products that i wanna sell is 3*4=12
i am having trouble describing this requirement in the request body schema given on the etsy documentation.Can someone please help?Would be reall grateful…Heres the lilinknk of the website where this api is mentioned
I am having trouble making the request body such that i can create variants for all the sizes mentioned above for all the colors that the product is available in !!