Add variants to a catalog item

POST {{baseUrl}}/catalog/{itemId}

Request Body

[{"externalId"=>"507b78f4", "merchantId"=>"75a47707-7508-46b7-9195-01b3a61447a8", "sku"=>"WHEYCONCPOTE900CHOC", "gtin"=>"3234567890126", "mpn"=>"H2G2-42", "ncm"=>"string", "condition"=>"notApplicable|new|refurbished|used", "images"=>["https://mywebsite.com.br/media/catalog/product/whey-900-sabor-chocolate.jpg", "https://mywebsite.com.br/media/catalog/product/whey-900-sabor-chocolate-verso.jpg"], "keywords"=>"chocolate (agrega automaticamente às keywords do produto)", "entryState"=>"draft|pendingApproval|published|closed", "price"=>"159.90 BRL", "salePrice"=>"149.90 BRL", "salePriceEffectiveDate"=>{"start"=>"2021-02-24T13:00-0300", "end"=>"2021-02-29T15:30-0300"}, "stock"=>999, "availability"=>"inStock|availableForOrder|onDemand|outOfStock", "availabilityDate"=>{"start"=>"2021-02-24T13:00-0300", "end"=>"2021-02-29T15:30-0300"}, "attributes"=>[{"key"=>"Sabor", "value"=>"Chocolate"}], "measurements"=>{"height"=>"30.0 cm", "length"=>"15.0 cm", "width"=>"15.0 cm", "weight"=>"900 g"}, "customData"=>[{"key"=>"Campo customizado", "value"=>"Valor do campo customizado", "visibility"=>"public|protected|private"}, {"key"=>"googleCategory", "value"=>"Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements", "visibility"=>"public"}]}]

RESPONSES

status: Created

[{"id":"9f817a0c-fcbf-483f-bfa5-94cf707875f4","externalId":"9a7afa9d","url":"https://www.marketplace.com/products/fb1ef5f9/9f817a0c/whey-protein-concentrado-pote-900g-chocolate"}]