Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Documentation

    Guides, API reference and events for Tax Filing.

    On this page

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

    Get started

    • Overview: What the Tax Filing API does, how a call is built and where to go next.
    • Quickstart: File the SAF-T return of October from the test company: find the obligation, read its findings, file it and follow it.
    • Authentication: Get client credentials, request a token and call the Tax Filing 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 have working in the test company before you call the live API.

    Concepts

    • Companies and obligations: A company files a return for each form and period. That pair is an obligation, and it has a due date.
    • Return types and versions: The four forms, what their rows hold, and how a return moves from draft to the answer of the authority.
    • Periods and due dates: How the API counts the day a return is due, and when a return can be built.
    • Evidence: generation, validation, signing: The three records a return keeps before it can be approved, in the order they are made.
    • Approvals: Who may approve a return, what blocks the approval, and what is recorded.
    • Receipts: What the authority returns for a filed return, what the product stores, and how a rejection is kept.
    • Corrections: A correction is a new version that points back to the first. The first version never changes.

    Guides

    • Build a return from ledger data: Build the rows of a return from the ledger, read what each row came from, and rebuild when the ledger changes.
    • Validate before approval: Read the findings, understand the rules, and rebuild the form that is behind until the errors are gone.
    • Approve and file: Sign, approve and file a validated return, and follow it to the answer of the authority.
    • Handle a rejection: Read the message of the authority, fix the ledger, and file a corrected version 2.
    • Archive receipts: List the receipts of a company, keep each file with its hash and check the hash when you read it back.

    Reference

    • Errors: The error object of the Tax Filing API and the codes that say what went wrong.
    • 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 Tax Filing 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: What changed in each version of the contract.

    API reference

    • Obligations: The companies of your account and the returns each of them files, period by period, with the due date.
    • Returns: Build a return from the ledger, read its rows and findings, rebuild it when the ledger changes and correct it after the authority answered.
    • Evidence: The three records kept before approval: generation, validation and signing. Sign a validated return here.
    • Approvals: Approve a signed return and read who approved it and when.
    • Submissions: File an approved return, follow the answer of the authority and send it again when the outcome is unknown.
    • Receipts: The file the authority returned for an accepted return, stored with its hash.
    • 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 Tax Filing event has the same envelope; only data changes with the type of the event.
    • Event catalogue: The three events a return produces, when each is sent and what its data holds.
    • Subscriptions: Register an HTTPS endpoint and Tax Filing 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.