---
title: "Buyer messages | Docs | e-Factura Gateway by R&D Copilot"
description: "Read the messages buyers send about the invoices you sent, and what to do with them."
canonical: "https://efactura.rdcopilot.com/docs/receive/buyer-messages/"
language: en
updated: 2026-11-22
---

# Buyer messages

Read the messages buyers send about the invoices you sent, and what to do with them.

A buyer can write about an invoice you sent, for example that a quantity does not match the delivery note. The gateway keeps the message with the invoice. The Buyer messages list of the Invoices view shows the latest message of each invoice, and the open invoice shows all of them, first among its sections.

## Read the messages

List the messages of a company, newest first, or only those about one invoice with `invoiceId`. Each message belongs to one sent invoice and carries the text as the buyer wrote it, in the buyer’s language.

curl

```bash
curl "$RDC_BASE_URL/efactura/v1/messages?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```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

```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
<?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#

```csharp
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

```json
{
  "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
}
```

The same invoices are in `listInvoices` with `list` set to `messages`. See [Invoices and credit notes](https://efactura.rdcopilot.com/docs/send/invoices-and-credit-notes/).

## What to do with a message

-   Read the list on a schedule of your own. A message does not send an event.
-   Answer the buyer in your own channel. The API has no operation that replies to a message.
-   If the message shows a mistake on an accepted invoice, credit it. See [Invoices and credit notes](https://efactura.rdcopilot.com/docs/send/invoices-and-credit-notes/).
-   If the invoice was rejected, correct it. See [Corrections](https://efactura.rdcopilot.com/docs/send/corrections/).
