• 0
nasatome

Ejemplo JSON para listar productos con UPC y MODELO

Question

Saludos!

Me propuse a mandar a ML el modelo y el UPC de mis productos, pero no estoy muy seguro de siquiera como intentarlo, no encuentro documentación de estos dos campos específicos por ningún lado.

Estoy en lo correcto?, o habrá alguna otra manera de mandar los códigos de los modelos y los UPC?

https://api.mercadolibre.com/categories/MLM128794/attributes

 de aquí puedo sacar los códigos IDs

curl -X POST -d '{
    "listing_type_id":"gold_special",
    "pictures":[ { "id":"553111-MLA20482692355_112015" } ],
    "title":"Item de testeo -- no ofertar --kc:off",
    "available_quantity":4,
    "buying_mode":"buy_it_now",
    "currency_id":"MXN",
    "condition":"not_specified",
    "category_id":"MLA377600",
    "site_id":"MLM",
    "price":100,
    "attributes": [
        { "id": "MODEL", "value_name":"model-34553-example" },
        { "id": "UPC", "value_name": "9780471117094" }
    ]
}' 'https://api.mercadolibre.com/items?access_token=$ACCESS_TOKEN'

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Thanks @rodrigojob, I had already seen that part of the documentation, but I still did not see those examples in specific: "MODEL" and "UPC", and I was not sure if I use the values in the attributes of: "value_name", however, I made the request I put earlier, and it worked. I'm left wondering if there is a "value_id": null, but I suppose that is enough

Share this post


Link to post
Share on other sites
  • 0

Hola, acordate que en la categoría tenes los atributos

https://api.mercadolibre.com/categories/MLA377600/attributes 

"id": "MODEL",
"name": "Modelo",
"tags": {
"fixed": true,
"hidden": true

}
,
"value_type": "string",
"value_max_length": 60,
"values": [
{
"id": "196204",
"name": "6s Plus"

}

]
,
"attribute_group_id": "MAIN",
"attribute_group_name": "Atributos Principales"

}
,
"id": "UPC",
"name": "UPC",
"tags": {
"hidden": true,
"multivalued": true,
"variation_attribute": true

}
,
"type": "product_identifier",
"value_type": "string",
"value_max_length": 60,
"attribute_group_id": "DFLT",
"attribute_group_name": "Otros"

}
,

Share this post


Link to post
Share on other sites

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