Messages
The messages buyers sent about the invoices you sent.
List buyer messages
GET /efactura/v1/messages
Returns the messages buyers sent about the invoices of a company, newest first. Each message belongs to one sent invoice.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
companyId | query | string (uuid) | Yesrequired | The company whose records you want. It is the id of a company of your account. |
invoiceId | query | string (uuid) | Nooptional | Only the messages about this invoice. |
limit | query | integer | Nooptional | Records per page, from 1 to 500. Default 100 Range 1 – 500 |
cursor | query | string | Nooptional | The nextCursor of the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | A page of messages. | MessagePage |
401 | The token is missing, has expired or is not ours. | Error |
403 | The token does not give access to this company or operation. | Error |
404 | The company does not exist in your account. | Error |
429 | There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. | Error |
503 | The gateway cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "e302321a-abad-44e0-842c-488dc72907ea",
"invoiceId": "63b02302-55dc-4523-b584-c4eb55159924",
"receivedAt": "2026-11-20T10:05:00Z",
"text": "The quantity of sugar does not match delivery note AV-1042: 78 bags were delivered, the invoice says 80."
}
],
"nextCursor": null
}