Hi,
Have been trying to sort this out. My variation does not seem to associate to the attribute. I've tried multiple options including the id and name and options (color). But nothing seems to stick.
When creating the product my Attributes are as follows :
"attributes":[
{
"id":"1",
"name":"Color",
"visible":True,
"variation":True,
"options":[
"Colour Light red",
"Colour Fuchsia",
"Colour Grey",
"Colour Black",
"Colour Pink"
]
}
]
Here is on the variation:
{
"regular_price":"84.24",
"sale_price":"84.24",
"manage_stock":True,
"stock_status":"instock",
"stock_quantity":"5",
"image":{
"id":7462
},
"attritubes":[
{
"id":1,
"name":"Color",
"option":"Colour Pink"
}
]
}
The variation is created but not associated to the attribute (color). Any suggestions would be helpful. I'm using python woocommerce API.