---
title: "Open items | Docs | Treasury by R&D Copilot"
description: "The invoices you issued and the bills you received that a transaction can be matched to or a payment can be prepared for."
canonical: "https://banking.rdcopilot.com/docs/api-reference/open-items/"
language: en
updated: 2026-11-22
---

# Open items

The invoices you issued and the bills you received that a transaction can be matched to or a payment can be prepared for.

## List open items

GET `/banking/v1/open-items`

Returns the invoices and bills of a company with the amount each still owes. `side` keeps the invoices you issued (`receivable`) or the bills you received (`payable`); `open=true` keeps those that still owe something.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `companyId` | query | `string (uuid)` | Yesrequired | The company whose records you want. It is the `id` of a company in the list of companies. |
| `side` | query | `string` | Nooptional | Only items of this side. One of `receivable`, `payable` |
| `open` | query | `boolean` | Nooptional | `true` keeps the items that still owe something. |
| `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 open items. | `OpenItemPage` |
| `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` | Treasury cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&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"]}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&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")}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&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

```json
{
  "items": [
    {
      "id": "3d5fa931-a391-4956-b9a6-4e42de152a4a",
      "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
      "side": "receivable",
      "kind": "invoice",
      "number": "FCT-2026-00391",
      "partner": "Pensiunea Stânca Corbului SRL",
      "issuedOn": "2026-11-02",
      "dueOn": "2026-12-02",
      "gross": "15327.60",
      "open": "15327.60",
      "currency": "RON"
    },
    {
      "id": "e1ce7282-eaaf-480a-8b7e-d3b902c8d883",
      "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
      "side": "receivable",
      "kind": "invoice",
      "number": "FCT-2026-00413",
      "partner": "Silozurile Zănești SRL",
      "issuedOn": "2026-11-11",
      "dueOn": "2026-12-11",
      "gross": "6501.00",
      "open": "6501.00",
      "currency": "RON"
    },
    {
      "id": "f1499828-8c33-4628-9766-7892ae64f931",
      "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
      "side": "payable",
      "kind": "bill",
      "number": "MV-2026-1203",
      "partner": "Moara Vadului SRL",
      "issuedOn": "2026-11-18",
      "dueOn": "2026-12-08",
      "gross": "3185.20",
      "open": "3185.20",
      "currency": "RON"
    }
  ],
  "nextCursor": null
}
```

## Get an open item

GET `/banking/v1/open-items/{openItemId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `openItemId` | path | `string (uuid)` | Yesrequired | The invoice or bill. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The invoice or bill with its open amount. | `OpenItem` |
| `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 invoice or bill does not exist in the ledger of the company. | `Error` |
| `429` | There were too many requests. Nothing was processed. The header `Retry-After` gives the seconds to wait. | `Error` |
| `503` | Treasury cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/banking/v1/open-items/6023b97b-b8aa-40bf-bf95-706a76377739" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/open-items/6023b97b-b8aa-40bf-bf95-706a76377739`, {
  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"]}/banking/v1/open-items/6023b97b-b8aa-40bf-bf95-706a76377739',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/open-items/6023b97b-b8aa-40bf-bf95-706a76377739');
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")}/banking/v1/open-items/6023b97b-b8aa-40bf-bf95-706a76377739");
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

```json
{
  "id": "6023b97b-b8aa-40bf-bf95-706a76377739",
  "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "side": "receivable",
  "kind": "invoice",
  "number": "FCT-2026-00418",
  "partner": "Hanul Ozana SRL",
  "issuedOn": "2026-11-12",
  "dueOn": "2026-12-12",
  "gross": "3168.42",
  "open": "3168.42",
  "currency": "RON"
}
```
