Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Documentation

    Guides, API reference and events for Treasury.

    On this page

    Rules shared by every R&D Copilot API are in the Developer guide.

    Get started

    • Overview: What the Treasury API does, how a call is built, and the statuses of a transaction, a match and a payment proposal.
    • Quickstart: Read an account, list the suggested matches, accept one and read the account again.
    • Authentication: Get client credentials, request a token and call the Treasury API with it.
    • Sandbox and live: Build and test against a test company, then move the same calls to your live company.
    • Go-live checklist: What to check in your integration before it works on the live data of a company.

    Concepts

    • Accounts and balances: The account object, the five numbers that show where a reconciliation stands, and the day a payment is executed.
    • Transactions and statuses: The statement and the rules an import must meet, the transaction object, its status and kind, and what each refusal of an import means.
    • Match methods and reasons: How Treasury matches a booked transaction to invoices, bills and entries: the five states, the four methods, the reason codes and the rules of allocations.
    • Payment proposals and approvals: How a payment proposal moves from draft to confirmed or rejected by the bank, who may approve it, and how one payment file is made.

    Guides

    • Import a statement: Send the lines of a statement file exported from your bank, read the suggestions it creates and see what it does to your payments.
    • Reconcile a month: Work through the transactions of one account until every booked line is matched, then check the counters of the account.
    • Prepare and approve payments: Prepare a payment for a bill, send it for approval, export the approved payments as one table and follow them until a statement confirms them.
    • Handle a returned payment: Follow payment PP-1002 from the statement that returns it to a new payment for the same bill, with the reason the bank gave.

    Reference

    • Errors: The error object of the Treasury API and the codes that say what went wrong.
    • Error codes: What to do for each code that Treasury adds to the shared ones, and the code behind each refusal of the product.
    • Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
    • Pagination: Lists come in pages. Follow the cursor until it is empty.
    • Limits: The limits of the Treasury API, with their values and what happens over them.
    • Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
    • Changelog: Version 1.0.0 of the Treasury API, dated 2026-11-22, with its resources and events.

    API reference

    • Accounts: The companies of your account, and their bank accounts with the balances and the counters of the reconciliation.
    • Statements: Import the lines of a statement file exported from your bank, and read the statements that are stored.
    • Transactions: The lines of the statements: booked, pending or returned, each with the state of its match.
    • Matches: Read the match proposed for a transaction with its method and reason, and accept it, split it, book it to an entry, match a transfer, or leave it.
    • 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.
    • Payment proposals: Prepare a payment for a bill, send it for approval, and follow it until the statement confirms it or the bank rejects it.
    • Approvals: The people of the account, and the approval or the refusal of a payment proposal.
    • Payment files: Export approved payments as one table and read it again.
    • Operations: A request that changes data is accepted once and answered with an operation result you can read again.
    • Subscriptions: Register the HTTPS endpoint that receives events, and read, retry and replay the deliveries.

    Events

    • Event envelope: Every Treasury event has the same envelope; only data changes with the type of the event.
    • Event catalogue: The seven events Treasury sends, when each one is sent, what its data holds and a full example of each.
    • Subscriptions: Register an HTTPS endpoint and Treasury sends your events to it, each one signed.
    • Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
    • Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
    • Replay: Send a parked event again once your endpoint is ready to take it.