---
title: "Overview | Docs | Treasury by R&D Copilot"
description: "What the Treasury API does, how a call is built, and the statuses of a transaction, a match and a payment proposal."
canonical: "https://banking.rdcopilot.com/docs/get-started/overview/"
language: en
updated: 2026-11-22
---

# Overview

What the Treasury API does, how a call is built, and the statuses of a transaction, a match and a payment proposal.

The Treasury API reads the lines of a bank statement, proposes the invoice, bill or ledger entry each line belongs to, reconciles an account month by month and prepares payments for approval. The base path is `/banking/v1`.

Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.

[Request an account](https://rdcopilot.com/contact/?product=banking&topic=api-access)

## How a call is built

1.  Get a token
    
    Request a bearer token with the scope `banking.access` and send it in the `Authorization` header. See [Authentication](https://banking.rdcopilot.com/docs/get-started/authentication/).
    
2.  Choose the company
    
    Every bank account belongs to a company of your account. List the companies with `listCompanies`, take the `id` of yours and pass it as `companyId` to `listAccounts`. Keep the `id` of the bank account you work on.
    
3.  Import a statement
    
    Send the lines of a statement file exported from your bank with `importStatement`. Treasury stores them and proposes a match for every new line.
    
4.  Match
    
    Read the matches with `listMatches`. Each one carries its `method` and a one-sentence `reason`. Accept it, split it, book it to an entry, match a transfer or leave it.
    
5.  Pay
    
    Prepare a payment proposal for a bill, send it for approval and export the approved payments as one table.
    
6.  Listen to events
    
    Register one HTTPS endpoint with `createSubscription` and Treasury tells you when a statement is imported, a match is suggested or accepted, and a payment is approved, exported, confirmed or rejected.
    

Every change carries an `operationId` you choose and, on an existing record, the `expectedRevision` you read. Both are explained in [Idempotency and concurrency](https://banking.rdcopilot.com/docs/reference/idempotency/).

## Status of a transaction

The `status` of a transaction says what the bank did with the line.

| Status | Meaning |
| --- | --- |
| Pending `pending` | The bank has not booked the line yet. It has no match until a later statement books it. |
| Booked `booked` | The bank booked the line. It has a match. |
| Returned `returned` | The line returns a payment, or it is the payment line that the bank returned. |

## State of a match

The `state` of a match says where the decision about a booked transaction stands. An accepted match is final.

| Status | Meaning |
| --- | --- |
| No match `open` | Treasury has no suggestion for the transaction. |
| Suggested `suggested` | Treasury proposes a match and waits for a decision. |
| Being split `split` | A person divides the transaction between several invoices, bills or entries. |
| Matched `accepted` | The allocations add up to the transaction. The match is final. |
| Left `left` | A person put the transaction aside. It can be reopened. |

## Status of a payment proposal

The `status` of a payment proposal follows it from preparation to the statement that shows it booked or returned.

| Status | Meaning |
| --- | --- |
| Draft `draft` | Prepared and not yet sent. A declined proposal returns here. |
| Awaiting approval `awaiting_approval` | Sent to an approver whose authority covers the amount. |
| Approved `approved` | Approved by someone other than the person who prepared it. |
| Exported `exported` | Part of a payment file. Your bank executes it. |
| Confirmed by statement `confirmed` | A later statement shows the payment booked. |
| Rejected by the bank `rejected_by_bank` | The bank rejected or returned the payment and gave its own reason. The bill is open again. |

## Where next

-   [Quickstart](https://banking.rdcopilot.com/docs/get-started/quickstart/): accept a suggested match and read the account again.
-   [Import a statement](https://banking.rdcopilot.com/docs/guides/import-a-statement/) and [Reconcile a month](https://banking.rdcopilot.com/docs/guides/reconcile-a-month/).
-   [Prepare and approve payments](https://banking.rdcopilot.com/docs/guides/prepare-and-approve-payments/) and [Handle a returned payment](https://banking.rdcopilot.com/docs/guides/handle-a-returned-payment/).
-   [Accounts](https://banking.rdcopilot.com/docs/api-reference/accounts/) and the rest of the API reference, and [Error codes](https://banking.rdcopilot.com/docs/reference/error-codes/).
