Preguntas y Respuestas
Recurso | Descripción | Ejemplo |
---|---|---|
/questions/search?item={Item_id}&access_token=$ACCESS_TOKEN | Buscar cualquier pregunta realizada en los items del usuario. | GET
Go back
X
Obtener preguntas por ID de item$ curl -X GET https://api.mercadolibre.com/questions/search?item_id=MLA608007087&access_token=$ACCESS_TOKEN Respuesta{ "total": 1, "limit": 50, "questions": [ { "date_created": "2016-02-29T11:09:30.000-04:00", "item_id": "MLA608007087", "seller_id": 202593498, "status": "UNANSWERED", "text": "Test question.", "id": 3957002293, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 207119838, "answered_questions": 0 } } ], "filters": { "limit": 50, "offset": 0, "is_admin": false, "sorts": [ ], "caller": 202593498, "item": "MLA608007087" }, "available_filters": [ { "id": "from", "name": "From user id", "type": "number" }, { "id": "seller", "name": "Seller id", "type": "number" }, { "id": "totalDivisions", "name": "total divisions", "type": "number" }, { "id": "division", "name": "Division", "type": "number" }, { "id": "status", "name": "Status", "type": "text", "values": [ "ANSWERED", "BANNED", "CLOSED_UNANSWERED", "DELETED", "DISABLED", "UNANSWERED", "UNDER_REVIEW" ] } ], "available_sorts": [ "item_id", "from_id", "date_created", "seller_id" ] }Leer más. |
/questions/{Item_id} | Realizar preguntas sobre los items de otros usuarios. | POST
Go back
X
Realizar una pregunta.$ curl -X POST -H "Content-Type: application/json" -d '{ "text":"Test question.", "item_id":"MLA608007087" }' https://api.mercadolibre.com/questions/MLA608007087?access_token=$ACCESS_TOKEN Respuesta{"id":3957150025,"answer":null,"date_created":"2016-02-29T11:19:42.957-04:00","item_id":"MLA608007087","seller_id":202593498,"status":"UNANSWERED","text":"Test question.","from":{"id":207119838}}Leer más. |
/answers | Responder a las preguntas realizadas en sus items. | POST
Go back
X
Responder una pregunta.$ curl -X POST -H ""Content-Type: application/json"" -d '{"question_id": 3957150025, "text":"Test answer..." }' https://api.mercadolibre.com/answers?access_token=$ACCESS_TOKEN Respuesta{"id":3957150025,"answer":{"date_created":"2016-02-29T11:21:27.831-04:00","status":"ACTIVE","text":"Test answer..."},"date_created":"2016-02-29T11:19:42.000-04:00","deleted_from_listing":false,"hold":false,"item_id":"MLA608007087","seller_id":202593498,"status":"ANSWERED","text":"Test question.","from":{"id":207119838,"answered_questions":0}}Leer más. |
/questions/{Question_id} | Recuperar información de una pregunta específica de un ID. | GET
Go back
X
Obtener detalles de la pregunta.$ curl -X GET https://api.mercadolibre.com/questions/3957150025?access_token=$ACCESS_TOKEN Respuesta{ "id": 3957150025, "answer": { "date_created": "2016-02-29T11:21:27.000-04:00", "status": "ACTIVE", "text": "Test answer..." }, "date_created": "2016-02-29T11:19:42.000-04:00", "deleted_from_listing": false, "hold": false, "item_id": "MLA608007087", "seller_id": 202593498, "status": "ANSWERED", "text": "Test question.", "from": { "id": 207119838, "answered_questions": 1 } }Leer más. |
/users/{Seller_id}/questions_blacklist/$Buyerid?access_token=$ACCESS_TOKEN | Gestionar preguntas de la lista negra. | GET GET POST DELETE
Go back
X
Comprobar las preguntas de la lista negra del usuario (Con limit y offset definido).$ curl -X GET curl -X GET "http://api.mercadolibre.com/users/${seller_id}/questions_blacklist?access_token=$ACCESS_TOKEN" Respuesta (en caso que haya usuarios bloqueados){ "paging": { "total": 5, "limit": 50, "offset": 0 }, "users": [{ "id": 70927648 }, { "id": 170577643 }, { "id": 82411799 }, { "id": 158470042 }, { "id": 194938540 }] } Respuesta (en caso que no haya usuarios bloqueados){ "paging": { "total": 0, "limit": 50, "offset": 0 }, "users": [] } Go back
X
Comprobar las preguntas de la lista negra del usuario (Sin offset y limit definido ya que lo toma automáticamente)$ curl -X GET "http://api.mercadolibre.com/users/${seller_id}/questions_blacklist?limit=1&offset=2&access_token=$ACCESS_TOKEN" Respuesta (en caso que haya usuarios bloqueados){ "paging": { "total": 5, "limit": 50, "offset": 0 }, "users": [{ "id": 70927648 }, { "id": 170577643 }, { "id": 82411799 }, { "id": 158470042 }, { "id": 194938540 }] } Respuesta (en caso que no haya usuarios bloqueados){ "paging": { "total": 0, "limit": 50, "offset": 0 }, "users": [] }Leer más. |
/my/received_questions/search | Preguntas recibidas por usuario. | GET
Go back
X
Obtener preguntas realizadas en sus items.$ curl -X GET https://api.mercadolibre.com/my/received_questions/search?access_token=$ACCESS_TOKEN Respuesta{ "total": 16, "limit": 50, "questions": [ { "date_created": "2016-01-11T14:22:34.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola, tenes disponible en color crema? Gracias.", "id": 3882522692, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 172352930, "answered_questions": 0 } }, { "date_created": "2016-01-13T15:08:37.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola tenes esta pollera el color crema?", "id": 3886086968, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-14T18:20:55.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola tenes la pollera en color crema?", "id": 3888086532, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-14T18:22:07.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola la pollera la vendes?", "id": 3888087208, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-17T03:17:40.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Que colores tenes", "id": 3891187956, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 152876895, "answered_questions": 0 } }, { "date_created": "2016-01-19T02:15:01.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola cual es el pecio es parecida a la fotos?", "id": 3894498460, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-19T02:15:34.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola te las oferto por 90 no por 4 pesos esta bien?slds", "id": 3894498570, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-20T23:18:37.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola dice iem esta en venta a ese precio o no slds?", "id": 3897965991, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-22T09:02:22.000-04:00", "item_id": "MLA599121050", "seller_id": 202593498, "status": "UNANSWERED", "text": "question test", "id": 3899830946, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 203846492, "answered_questions": 0 } }, { "date_created": "2016-01-22T09:09:46.000-04:00", "item_id": "MLA601051627", "seller_id": 202593498, "status": "UNANSWERED", "text": "testing", "id": 3899836443, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 203846492, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:31:33.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "testing", "id": 3900524172, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204022883, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:33:39.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "test...", "id": 3900450285, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204022883, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:36:32.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "test", "id": 3900453645, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204023121, "answered_questions": 0 } }, { "date_created": "2016-01-27T18:12:11.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola buenas tardes! En que colores te quedan?", "id": 3908295700, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 118961234, "answered_questions": 0 } }, { "date_created": "2016-02-02T10:12:06.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "sapeeee", "id": 3916543404, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 202506298, "answered_questions": 0 } }, { "date_created": "2016-02-29T11:19:42.000-04:00", "item_id": "MLA608007087", "seller_id": 202593498, "status": "ANSWERED", "text": "Test question.", "id": 3957150025, "deleted_from_listing": false, "hold": false, "answer": { "text": "Test answer...", "status": "ACTIVE", "date_created": "2016-02-29T11:21:27.000-04:00" }, "from": { "id": 207119838, "answered_questions": 1 } } ], "filters": { "limit": 50, "offset": 0, "is_admin": false, "sorts": [ ], "caller": 202593498, "seller": "202593498" }, "available_filters": [ { "id": "item", "name": "Item", "type": "text" }, { "id": "from", "name": "From user id", "type": "number" }, { "id": "totalDivisions", "name": "total divisions", "type": "number" }, { "id": "division", "name": "Division", "type": "number" }, { "id": "status", "name": "Status", "type": "text", "values": [ "ANSWERED", "BANNED", "CLOSED_UNANSWERED", "DELETED", "DISABLED", "UNANSWERED", "UNDER_REVIEW" ] } ], "available_sorts": [ "item_id", "from_id", "date_created", "seller_id" ] }Leer más. |