---
title: "Send message to the buyer through MercadoLibre messaging"
method: POST
path: "/Pedidos/{IdPedido}/Mensajes"
tags: ["Pedidos: \n            Operations on orders\n            "]
---

# Send message to the buyer through MercadoLibre messaging

`POST /Pedidos/{IdPedido}/Mensajes`

## Request

- Base URL: `https://api.alephee.com`
- URL: `https://api.alephee.com/Pedidos/{IdPedido}/Mensajes`
- Auth: none declared

The indicated account number must correspond to the one authorized by the provided API KEY. Otherwise, an authentication error will occur.<br />
 The indicated order Id must correspond to a sales order placed on MercadoLibre.<br /><br />
 The POST must be done as form.data with the following keys: <br />
 - File > file = reference to the file itself.<br />
 - Text > text = text to send in the messaging.<br />
 - AttachToAleph > text (true or false) = indicates whether the uploaded file is attached to the Alephee order, regardless of the shipment to MercadoLibre.<br />
 - AttachmentType > text (0 = Invoice / 1 = Delivery Note) = type of file to attach in Alephee<br />
 The file must have a maximum size of 25 MB<br />
 Photos, instruction manuals, invoices, and other attachments in JPG, PNG, PDF, and TXT formats of up to 25 MB can be exchanged
 <br /><br />
 Curl example: <br /><br />
 curl --location --request POST 'http://api.alephcrm.com/Pedidos/{IdPedido}/Mensajes?IdCuenta={IdCuenta}&amp;api_key={ApiKey}' \ <br />
--header 'Content-Type: application/x-www-form-urlencoded' \ <br />
--form 'Archivo=@/C:/factura.jpg' \ <br />
--form 'Texto=Adjunto enviamos la factura, gracias por su compra.' \ <br />
--form 'AdjuntarEnAleph=true' \ <br />
--form 'TipoAdjunto=0' <br />

## Path parameters

- `IdPedido` integer, required

## Query parameters

- `IdCuenta` integer, required

## Response `200`

OK

- object

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/alephee/apis/alephee-api-v1.md) - [All operations](https://skmtc.dev/alephee/apis/alephee-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/alephee/apis/alephee-api-v1/revisions/e5f66de76630?raw)
