aotech

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. public class variations { public int available_quantity { get; set; } } meli.Put("/items/MLA599310665", listParam, new MercadoLibre.variations { id = "10459731042" ,available_quantity = 2}); {"message":"Cannot update item MLA599310665 [status:active, has_bids:false]","error":"validation_error","status":400,"cause":[{"code":"item.id.not_modifiable","message":"id is not modifiable."},{"code":"item.available_quantity.not_modifiable","message":"available_quantity is not modifiable."}]} meli.Put("/items/MLA599310665", listParam, new MercadoLibre.variations {available_quantity = 2}); {"message":"Cannot update item MLA599310665 [status:active, has_bids:false]","error":"validation_error","status":400,"cause":[{"code":"item.available_quantity.not_modifiable","message":"available_quantity is not modifiable."}]}
  2. La cantidad la estoy modificando en la variación no en el articulo, te dejo la estructura del json: Item: { "id": "MLA599310665", "site_id": "MLA", "currency_id": "ARS", "initial_quantity": 2, "available_quantity": 2, "sold_quantity": 0, "buying_mode": "buy_it_now", "listing_type_id": "bronze", "variations": [{ "id": 10459731042, "attribute_combinations": [{ "id": "83000", "name": "Color Primario", "value_id": "92001", "value_name": "AMARILLO" }, { "id": "73002", "name": "Talle", "value_id": "131994", "value_name": "16" }], "price": 1, "available_quantity": 2, "sold_quantity": 0, "picture_ids": ["294311-MLA20541577539_012016"], "seller_custom_field": null }] }
  3. Ya lo encontré hay que hacer una búsqueda a la siguiente url por categoria, segun la categoria trae la lista de precio: https://api.mercadolibre.com/sites/MLA/listing_prices?price=5000&category_id=MLA1540
  4. Esto es lo que me devuelve la consulta: "billing_info":{"doc_type":null,"doc_number":null}} "buyer":{"id":202181597,"nickname":"TETE6589987","email":"test_user_60406444@testuser.com","phone":{"area_code":"01","number":"1111-1111","extension":"","verified":false},"alternative_phone":{"area_code":"","number":"","extension":""},"first_name":"Test","last_name":"Test","billing_info":{"doc_type":null,"doc_number":null}},"seller":{"id":202180939,"nickname":"TETE4224814","email":"test_user_9866637@testuser.com","phone":{"area_code":"01","number":"1111-1111" Saludos.
  5. Hola cuando quiero actualizar el stock de la variante de un item me genera un error (API .NET): Item: { "id": "MLA599310665", "site_id": "MLA", "variations": [{ "id": 10459731042, "attribute_combinations": [{ "id": "83000", "name": "Color Primario", "value_id": "92001", "value_name": "AMARILLO" }, { "id": "73002", "name": "Talle", "value_id": "131994", "value_name": "16" }], "price": 1, "available_quantity": 2, "sold_quantity": 0, "picture_ids": ["294311-MLA20541577539_012016"], "seller_custom_field": null }] } Obtengo el item publicado: var oJsonResult = meli.Get("/items/MLA599310665", listParam); Modifico la cantidad de la variante para el item: foreach (var vari in oJsonResult.variations) { vari.available_quantity = "2"; } Actualizo item: meli.Put("/items/MLA599310665", listParam, oJsonResult); Error: {"message":"Cannot update item MLA599310665 [status:active, has_bids:false]","error":"validation_error","status":400,"cause":[{"code":"item.listing_type_id.not_modifiable","message":"listing_type_id is not modifiable."},{"code":"item.site_id.not_modifiable","message":"site_id is not modifiable."},{"code":"item.category_id.not_modifiable","message":"category_id is not modifiable."},{"code":"item.available_quantity.not_modifiable","message":"available_quantity is not modifiable."},{"code":"item.price.not_modifiable","message":"price is not modifiable."},{"code":"item.description.not_modifiable","message":"description is not modifiable."}]} Segundo Intento Obtengo el item publicado: var oJsonResult = meli.Get("/items/MLA599310665", listParam); Actualizo item: meli.Put("/items/MLA599310665", listParam, new MercadoLibre.variations { id = "10459731042" ,available_quantity = "2"}); Error: {"message":"Cannot update item MLA599310665 [status:active, has_bids:false]","error":"validation_error","status":400,"cause":[{"code":"item.id.not_modifiable","message":"id is not modifiable."},{"code":"item.available_quantity.not_modifiable","message":"available_quantity is not modifiable."}]} Gracias. Saludos.
  6. Hola necesito obtener los listings types (api .net) pero para el rubro servicios por lo que veo desde la pagina de mercado libre son distintos con los de productos: Precios para Servicios Precios para Productos Gracias.
  7. Hola estoy obteniendo las ordenes de venta y necesito que me venga el dni del comprador: Desde la api de MELI no me trae el dni, desde la api de MercadoPago si trae el dni. "buyer":{"id":202181597,"nickname":"TETE6589987","email":"test_user_60406444@testuser.com","phone":{"area_code":"01","number":"1111-1111","extension":"","verified":false},"alternative_phone":{"area_code":"","number":"","extension":""},"first_name":"Test","last_name":"Test","billing_info":{"doc_type":null,"doc_number":null}},"seller":{"id":202180939,"nickname":"TETE4224814","email":"test_user_9866637@testuser.com","phone":{"area_code":"01","number":"1111-1111" Pero el usuario tiene cargado el DNI Pero por la api de mercado pago si me trae el dni.