Product JSON:
{
"name": "TOP LLICCE",
"sku": "518276",
"type": "variable",
"regular_price": "55.80",
"description": "Top super funcional e perfeito para montar muitos looks de arrasar! Top de alça com elástico em tons flúor nas laterais e detalhe para a etiqueta centralizada. Peça em tecido com bastante elastano e viscose, tecido possui gramatura alta evitando marcar o peito.\r\n\r\nComposição: 91,50% Viscose \/ 8,50% Elastano\r\nModelo está vestindo tamanho 16\r\n\r\n\r\nTabela de Medidas\r\nDescrição da Parte X Tamanhos<\/td>10<\/td>12<\/td>14<\/td>16<\/td>18<\/td>20<\/td><\/tr>BUSTO<\/td>50<\/td>58<\/td>62<\/td>66<\/td>68<\/td>72<\/td><\/tr>COMPRIMENTO<\/td>10<\/td>20<\/td>22<\/td>24<\/td>25<\/td>27<\/td><\/tr><\/tbody><\/table>",
"short_description": "Top de alça com elástico em tons flúor nas laterais e detalhe para a etiqueta centralizada.",
"weight": "0.09",
"categories": [
{
"id": "294"
}
],
"attributes": [
{
"name": "Cor",
"position": 0,
"visible": true,
"variation": true,
"options": [
"PRETO"
]
},
{
"name": "Tamanho",
"position": 0,
"visible": true,
"variation": true,
"options": [
"10",
"12",
"14",
"16",
"18",
"20"
]
}
],
"tags": [],
"dimensions": {
"length": "0.00",
"width": "0.00",
"height": "0.00"
}
}
Variation JSON:
{
"manage_stock": true,
"stock_quantity": 5,
"attributes": [
{
"name": "Cor",
"option": "PRETO"
},
{
"name": "Tamanho",
"option": "10"
}
],
"regular_price": "55.80",
"weight": "0.09",
"dimensions": {
"length": "0.00",
"width": "0.00",
"height": "0.00"
}
}
Image of swatches on the product:
https://prnt.sc/mU6a_-0Yd1EF
example of globally registered attribute:
https://prnt.sc/UTuIaJZjU8AT
image of how the product appears:
https://prnt.sc/CQ8lKubQAZgt
whenever I register the product via API it does not pull the colors from the attribute, even though it is globally configured as COLOR and has the HEX code, if I register the product manually directly on the WOO platform it works fine.