Nestor Aguilar

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Gracias, recuerda que este es un articulo ya publicado y quiero agregar variaciones al mismo, ese ejemplo lo tome de la documentacion de API pero no funciono, intente enviando la misma estructura que tengo cuando creo un articulo desde cero con variaciones: {"available_quantity":"2","price":"29000","variations":[{"price":"28000","available_quantity":"1","picture_ids":["https:\/\/url.com/file.jpg"],"attribute_combinations":[{"name":"contenido","value_name":"gramos"}]}]} y Obtengo: {"message":"Validation error","error":"validation_error","status":400,"cause":[{"code":"item.variations.attribute_combinations.missing","message":"You cannot create a variation without attribute_combinations."}]} Si no envio la cantidad disponible fuera de la variacion me indica: {"message":"Validation error","error":"validation_error","status":400,"cause":[{"code":"item.variations.total_stock.invalid","message":"Total stock of item with variations should be more than 0."}]} Si no indico el precio fuera de la variacion: {"message":"Validation error","error":"validation_error","status":400,"cause":[{"code":"item.price.invalid","message":"Field price is required"},{"code":"item.price.invalid","message":"The field is mandatory for selected category."},{"code":"item.variations.attribute_combinations.missing","message":"You cannot create a variation without attribute_combinations."},{"code":"item.currency_id.nullable","message":"Property currency_id cannot be null"},{"code":"nullable","message":"Property variation.price cannot be null"}]} Puedes mostrarme por favor un ejemplo para agregar variacion a un item publicado?
  2. Hola, estoy trantando de agregar una variacion a un item ya publicado y me da este error: {"message":"Validation error","error":"validation_error","status":400,"cause":[{"code":"item.variations.attribute_combinations.missing","message":"You cannot create a variation without attribute_combinations."}]} Articulo: MCO446648004 Estoy haciendo la llamada con este body: '{ "variations": [ { "attribute_combinations": [ { "name": "Diseño", "value_name": "Buho" } ], "price": 29000, "available_quantity": 1 }, { "attribute_combinations": [ { "name": "Diseño", "value_name": "Flamenco" } ], "price": 29000, "available_quantity": 1 } ], "available_quantity": 2, "price": 29000 }'