• 0
lucalan66

Agregar variaciones a productos existentes

Question

Hola, estoy intentando subir variaciones a productos existentes pero con este json:

{ "variations": [
        {
            "price": 39900,
            "available_quantity": 20,
            "picture_ids": ["680341-MCO25714796783_062017",
                            "986233-MCO25714800871_062017",
                            "817584-MCO25714800875_062017",
                            "663770-MCO25714805516_062017",
                            "708535-MCO25714799234_062017",
                            "608640-MCO25714796813_062017",
                            "673524-MCO25714796816_062017"

            ],
            "attribute_combinations": [
                {
                    "name": "Color",
                    "value_name": "Negro"
                }
            ]
        }
    ]
}

Me devuelve este json de error:

 

{
    "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"
        }
    ]
}

En esta ruta: https://api.mercadolibre.com/items/MCO452158631/variations?access_token=XXX

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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