Search the Community
Showing results for tags 'create'.
Found 2 results
-
En varias publicaciones se muestra el campo "catalog_product_id" como null pero en otros trae un código, como se puede crear una publicación desde el api con este campo?
-
Cant Create After Sale Message
Jorge de Moura posted a question in Gerenciamento de mensagens pós-venda
Hello all, I'm attempting to send an automatically after sale message to my customer by posting this object ["from"]=> object(stdClass)#24 (1) { ["user_id"]=> int(000000000) } ["to"]=> array(1) { [0]=> object(stdClass)#25 (4) { ["user_id"]=> int(11111111111) ["resource"]=> string(6) "orders" ["resource_id"]=> int(22222222222) ["site_id"]=> string(3) "MLC" } } ["subject"]=> string(21) "Gracias por tu Compra" ["text"]=> object(stdClass)#26 (1) { ["plain"]=> string(398) "Hello Customer" } } To this URL POST “https://api.mercadolibre.com/messages?access_token=$ACCESS_TOKEN And im getting this error everytime array(2) { ["body"]=> object(stdClass)#28 (4) { ["message"]=> string(33) "Message content(text) is required" ["error"]=> string(11) "bad_request" ["status"]=> int(400) ["cause"]=> array(0) { } } ["httpCode"]=> int(400) } Please need some help to make this work. Thanks in advance