Add a catalog item

POST {{baseUrl}}/catalog

Adds a catalog item, complete with variants. If the entryState is pendingApproval or published, the catalog item must have at least one variant.

Request Body

{"externalId"=>"507b78f4", "merchantId"=>"75a47707-7508-46b7-9195-01b3a61447a8", "title"=>"WHEY PROTEIN CONCENTRADO - POTE 900G", "summary"=>"Proteína 100% pura, ideal para musculação e esportes de performance", "description"=>"Proteína 100% pura, extraída exclusivamente do soro de leite, sem adição de proteínas inferiores...", "coverUrl"=>"https://mywebsite.com.br/media/catalog/product/whey-900-sabores.jpg", "brand"=>"DUX Nutrition Lab", "category"=>"40d05a78-04b1-4e56-8a4b-b7c3ec999e53|Sua > Árvore > De > Categorias", "keywords"=>"whey protein proteína 100% isolada bcaa dux", "entryState"=>"draft|pendingApproval|published|closed", "specifications"=>[{"key"=>"Proteínas", "value"=>"20g"}, {"key"=>"BCAAs", "value"=>"5.000mg"}, {"key"=>"Quando usar?", "value"=>"Pré/pós treino, ao acordar ou entre as refeições"}], "variants"=>[{"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"}]}], "customData"=>[{"key"=>"Campo customizado", "value"=>"Valor do campo customizado", "visibility"=>"public|protected|private"}]}

RESPONSES

status: Created

{"id":"fb1ef5f9-863f-406a-ab7b-4150a636db1f","externalId":"507b78f4","url":"https://www.marketplace.com/products/fb1ef5f9/whey-protein-concentrado-pote-900g","variants":[{"id":"9f817a0c-fcbf-483f-bfa5-94cf707875f4","externalId":"9a7afa9d","url":"https://www.marketplace.com/products/fb1ef5f9/9f817a0c/whey-protein-concentrado-pote-900g-chocolate"}]}