• 0
pato12p

Error al actualizar variantes

Question

Hola!

Estoy armando una integración con mercadolibre y estoy queriendo actualizar las variantes de un producto. Adjunto la respuesta que obtengo del api al actualizar y lo que envío. No encuentro en ningún lado una referencia acerca de porque no es modificable variations. Realizo el mismo request sobre otros productos y funciona.

Gracias!
Saludos.

{
"message": "Cannot update item MLA714605413 [status:closed, has_bids:false]",
"error": "validation_error",
"status": 400,
"cause": [
{
"code": "item.variations.not_modifiable",
"message": "variations is not modifiable."
}
]
}

JSON del request:

{
  "variations": [
    {
      "price": 359,
      "available_quantity": 0,
      "seller_custom_field": "RI014-S",
      "attribute_combinations": [
        {
          "name": "Talle",
          "value_name": "S",
          "id": "93000",
          "value_id": "101994"
        },
        {
          "id": "83000",
          "value_name": "Marrón"
        }
      ],
      "picture_ids": [
        "https://d37jci0frszz8r.cloudfront.net/normal/f486cb00-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/ffac56d0-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/0557e860-00e8-11e8-93d5-779e992be148.jpg"
      ],
      "id": "22015534037"
    },
    {
      "price": 359,
      "available_quantity": 1,
      "seller_custom_field": "RI014-M",
      "attribute_combinations": [
        {
          "name": "Talle",
          "value_name": "M",
          "id": "93000",
          "value_id": "101995"
        },
        {
          "id": "83000",
          "value_name": "Marrón"
        }
      ],
      "picture_ids": [
        "https://d37jci0frszz8r.cloudfront.net/normal/f486cb00-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/ffac56d0-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/0557e860-00e8-11e8-93d5-779e992be148.jpg"
      ],
      "id": "22015526256"
    },
    {
      "price": 359,
      "available_quantity": 1,
      "seller_custom_field": "RI014-L",
      "attribute_combinations": [
        {
          "name": "Talle",
          "value_name": "L",
          "id": "93000",
          "value_id": "101996"
        },
        {
          "id": "83000",
          "value_name": "Marrón"
        }
      ],
      "picture_ids": [
        "https://d37jci0frszz8r.cloudfront.net/normal/f486cb00-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/ffac56d0-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/0557e860-00e8-11e8-93d5-779e992be148.jpg"
      ],
      "id": "22015526260"
    },
    {
      "price": 359,
      "available_quantity": 0,
      "seller_custom_field": "RI014-XL",
      "attribute_combinations": [
        {
          "name": "Talle",
          "value_name": "XL",
          "id": "93000",
          "value_id": "101997"
        },
        {
          "id": "83000",
          "value_name": "Marrón"
        }
      ],
      "picture_ids": [
        "https://d37jci0frszz8r.cloudfront.net/normal/f486cb00-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/ffac56d0-00e7-11e8-93d5-779e992be148.jpg",
        "https://d37jci0frszz8r.cloudfront.net/normal/0557e860-00e8-11e8-93d5-779e992be148.jpg"
      ],
      "id": "22015534040"
    }
  ]
}

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now