Revolut Business integration

Connect your Revolut Business account: automatic sync of transactions and balances, real-time webhook, automatic reconciliation, transfers between your own accounts, fees as separate transactions and payment drafts you approve in Revolut.

With the Revolut Business integration your account transactions flow into Billora's treasury on their own, with no statements to download or import, and go through the same reconciliation engine as a Norma 43 or CSV statement.

What it does:

  • Automatic sync of transactions and balances: every hour Billora reads your Revolut accounts (and pockets), their balance and the completed transactions, and posts them to the linked treasury bank account.
  • Real-time webhook: once registered, each transaction comes in as soon as Revolut notifies it, without waiting for the hourly sync.
  • Automatic reconciliation: new transactions go through your rules and the automatic matching (invoice payments, expense payments, payroll, taxes…); whatever cannot be matched safely stays pending with suggestions.
  • Transfers between your own accounts: a transfer or a currency exchange between two linked Revolut accounts is booked on its own as a transfer (572x ↔ 572y).
  • Fees as separate transactions: an operation's fee becomes its own transaction, so the principal matches its invoice exactly and the fee goes to 626.
  • Deduplication against statements: a transaction that already came in through a CSV or Norma 43 statement is linked to it instead of being duplicated (and the other way round).
  • Payment drafts: you prepare a batch of pending expenses in Billora, approve it in the Revolut app and, once executed, Billora reconciles each payment with its expense.

New integration

The integration uses Revolut's public Business API with your own account credentials, and we are completing its final validation against Revolut's test environment. We recommend trying it first with environment: "sandbox" or with a simulation (dry_run) before the first real sync. Billora never executes payments: it only reads transactions and prepares drafts that you approve in Revolut.

Scopes: treasury:read (queries) / treasury:write (configure, link, sync, webhook and drafts). Like the rest of treasury, it is part of the plan's accounting feature (403 feature_not_available when not included) and writes require the OWNER or ADMIN role (403 role_forbidden). There is one connection per organization.

Connecting step by step

In the app this is done under Settings → Integrations → Revolut Business, whose wizard walks you through these same steps; with the API it takes seven requests. You connect with an API key you create in Revolut's API Console. The previous method, with a certificate and OAuth consent, keeps working for connections that already use it, but Revolut has deprecated it: it is described at the end.

Order matters: Revolut asks for the public signing key at the moment you create the API key, so the signing key comes first.

1. Generate the signing key

When an API key has write permissions (the ones Billora uses for payment drafts and the webhook), Revolut requires every request to be signed: on creating the key it shows "Generate signing keys — Selected permissions require you to add signing keys" and asks for a public key. You need an Ed25519 key pair: the private key signs the requests and the public key is uploaded to Revolut. There are two ways; use whichever you prefer.

a) Let Billora generate it (recommended). No openssl or terminal needed:

POST/api/v1/treasury/revolut/connection/signing-key/treasury:write
{ "environment": "production" }
JSON

The body is optional (environment is only used when the connection does not exist yet; production by default). Billora generates the pair, stores the private key encrypted (it is never returned) and answers with the public key:

{
  "public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAf3fU1qtqFWQHnvs0lsKa7SkCNpliOILlJs885JP2HqY=\n-----END PUBLIC KEY-----\n",
  "fingerprint": "SHA256:ba9049f2260e70596e248c684c53b13b38087967e1108654ac0a909be0ab7fde",
  "algorithm": "ed25519",
  "source": "generated",
  "created_at": "2026-11-16T09:02:11Z",
  "regenerated": false,
  "has_api_key": false,
  "message": "Clave de firma generada. Copia la clave pública y súbela en Revolut cuando, al crear la API key, te pida «Enter or drag and drop generated public signing key». La clave privada se queda cifrada en Billora."
}
JSON

public_key is exactly the public.pem file Revolut's command would produce: copy it or save it under that name. You can generate it before having the API key: the connection stays in status: "pending" with auth_mode: "api_key". The public key is not a secret and you can read it again at any time in signing_public_key of GET /treasury/revolut/connection/.

If a signing key already exists, the call returns 409 revolut_signing_key_exists. To replace it send { "regenerate": true }: the API key created in Revolut with the previous public key stops working, so you will have to create another API key uploading the new one (regenerated: true and message remind you). Only an owner or administrator, or a Billora API key with treasury:write, can generate it; never the MCP connector.

b) Use the keys you already generated with Revolut's command. If you ran the command Revolut shows:

openssl genpkey -algorithm ed25519 -out private.pem && openssl pkey -in private.pem -pubout -out public.pem
bash

you have two files. public.pem is the one you upload to Revolut; Billora gets private.pem (the one starting with -----BEGIN PRIVATE KEY-----), never public.pem:

POST/api/v1/treasury/revolut/connection/treasury:write
{ "signing_private_key": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEI…\n-----END PRIVATE KEY-----\n" }
JSON

Billora stores it encrypted, never returns it and derives its public key, which you will see in signing_public_key (with signing_key_source: "uploaded") to check that it matches the one you uploaded. If you send public.pem, a certificate, an RSA key or a passphrase-protected key by mistake, it answers 400 explaining which file is needed.

Either way, signing_enabled becomes true on its own: there is nothing to switch on.

2. Create the API key in Revolut Business

In Revolut Business (with an administrator user) open APIs → API Console and create an API key:

  1. Give it a name, for example "Billora".
  2. Tick only these permissions: read accounts, transactions and counterparties; write counterparties, payment drafts and webhooks. Do not tick the permission to execute payments: Billora does not use it.
  3. Under "Generate signing keys", where it says "Enter or drag and drop generated public signing key", paste or drop the public key from step 1 (public_key / signing_public_key, or your public.pem). If Billora generated it you do not need to run the openssl command Revolut shows.
  4. Save. Revolut shows the API key only once: copy it.

In the test environment it works the same at https://sandbox-business.revolut.com; each environment has its own keys.

3. Save the API key in Billora

POST/api/v1/treasury/revolut/connection/treasury:write
{ "environment": "production", "auth_mode": "api_key", "api_key": "…the Revolut API key…" }
JSON

POST and PATCH on the connection are equivalent and only change the fields you send. The API key is stored encrypted and is never returned: only its last four characters (api_key_last4). The connection becomes configured: true and stays in status: "pending" until you test it:

{
  "id": 4,
  "environment": "production",
  "auth_mode": "api_key",
  "configured": true,
  "has_api_key": true,
  "api_key_last4": "x9Qd",
  "signing_enabled": true,
  "has_signing_key": true,
  "signing_public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAf3fU1qtqFWQHnvs0lsKa7SkCNpliOILlJs885JP2HqY=\n-----END PUBLIC KEY-----\n",
  "signing_key_fingerprint": "SHA256:ba9049f2260e70596e248c684c53b13b38087967e1108654ac0a909be0ab7fde",
  "signing_key_source": "generated",
  "signing_key_created_at": "2026-11-16T09:02:11Z",
  "signing_variant": "concat",
  "permissions": [],
  "permissions_checked_at": null,
  "status": "pending",
  "authorized": true,
  "authorized_at": null,
  "expires_at": null,
  "days_to_expiry": null,
  "auto_sync": true,
  "sync_from": null,
  "auto_reconcile": true,
  "last_sync_at": null,
  "last_error": "",
  "last_error_at": null,
  "webhook": {
    "registered": false,
    "id": null,
    "url": "https://api.billora.app/api/v1/treasury/revolut/webhook/b9Qm…/",
    "events": ["TransactionCreated", "TransactionStateChanged"],
    "last_event_at": null
  },
  "alerts": [],
  "accounts_count": 0,
  "linked_accounts_count": 0
}
JSON

Token URLs: only for whoever manages the connection

webhook.url (and, in the legacy method, redirect_uri and custom_redirect_uri) carry a token specific to your organization. Like api_key_last4, they are only returned to an owner or administrator, or to an API key with treasury:write; for other users, read-only keys and the MCP connector they are always null.

A read-only API key may not require signing (Revolut does not ask for the public key when creating it): in that case you can skip step 1 and the connection works unsigned, but without payment drafts or the webhook.

4. Test the connection

POST/api/v1/treasury/revolut/connection/test/treasury:write

No body. It reads your accounts in Revolut and checks, one by one and with reads only, the permissions Billora uses. It creates or changes nothing in Revolut.

{
  "ok": true,
  "environment": "production",
  "auth_mode": "api_key",
  "signing_enabled": true,
  "accounts": 3,
  "currencies": ["EUR", "USD"],
  "permissions": [
    { "key": "accounts_read", "label": "Leer cuentas y saldos", "required": true, "ok": true, "status": 200, "detail": "" },
    { "key": "transactions_read", "label": "Leer transacciones", "required": true, "ok": true, "status": 200, "detail": "" },
    { "key": "counterparties_read", "label": "Contrapartes (beneficiarios)", "required": false, "ok": true, "status": 200, "detail": "…" },
    { "key": "payment_drafts", "label": "Borradores de pago", "required": false, "ok": true, "status": 200, "detail": "…" },
    { "key": "webhooks", "label": "Webhooks", "required": false, "ok": false, "status": 403, "detail": "A la API key le falta el permiso de webhooks." }
  ],
  "checked_at": "2026-11-16T09:10:42Z",
  "signing": {
    "tested": true,
    "detected": true,
    "variant": "concat_short_path",
    "previous_variant": "concat",
    "attempts": [
      { "variant": "concat", "status": 401, "detail": "…" },
      { "variant": "concat_short_path", "status": 200, "detail": "" }
    ],
    "message": "Revolut rechazaba la firma con la variante «concat» y la acepta con «concat_short_path»: se ha guardado en la conexión y se usará desde ahora."
  }
}
JSON
  • ok is true when the key can read accounts and transactions: the connection moves to status: "connected". Missing optional permissions (ok: false) do not block it; ok: null means it could not be checked.
  • signing only comes when signing is on. It normally carries tested: false and the variant in use. If Revolut rejects the first signed request (401 / 403), Billora automatically tries the other formats of the signed string with the same accounts read: tested: true and attempts with Revolut's status code and literal message for each try. If one works (detected: true), it is stored on the connection (signing_variant) and used from then on, with nothing for you to do.
  • If no variant works, the response is still 200 with ok: false, error and signing.detected: false, and the connection moves to status: "expired". Usually the API key is invalid, belongs to the other environment or was created with a public key different from signing_public_key: compare the fingerprint (signing_key_fingerprint), create another API key with the right public key and repeat step 3.
  • With an unsigned API key rejected by Revolut, the response is 409 revolut_auth_error.

Signature format

Revolut does not publish the exact format of the string to sign, which is why Billora detects the variant your account accepts when testing the connection. If the test ends with signing.detected: false and both the key and the public key are right, send us the signing block of the response: it contains no secrets.

GET/api/v1/treasury/revolut/accounts/treasury:read

Lists the Revolut accounts and pockets with their currency, balance and IBAN, as stored by the last sync. To read them from Revolut right now, POST /treasury/revolut/accounts/refresh/ (scope treasury:write), which returns the same list updated. Only transactions of accounts that are linked to a treasury bank account, and enabled, are imported.

[
  {
    "id": 11,
    "revolut_id": "6f7a2c1e-8d1b-4a3c-9d53-2f1f0a7b9c44",
    "name": "Main",
    "currency": "EUR",
    "balance": "18240.35",
    "balance_updated_at": "2026-11-12T09:05:40Z",
    "state": "active",
    "is_public": true,
    "iban": "LT343250012345678901",
    "bic": "REVOLT21",
    "is_enabled": true,
    "bank_account": 5,
    "bank_account_name": "Revolut Main (EUR)",
    "balance_check": {
      "revolut_balance": "18240.35",
      "last_transaction_balance": "18240.35",
      "ledger_balance": "18240.35",
      "difference_transactions": "0.00",
      "difference_ledger": "0.00"
    },
    "created_at": "2026-11-12T09:05:40Z",
    "updated_at": "2026-11-12T09:05:40Z"
  }
]
JSON

A Revolut account whose IBAN matches a bank account you already had in Billora (in the same currency) is linked automatically. For the rest:

PATCH/api/v1/treasury/revolut/accounts/{id}/treasury:write
BodyWhat it does
{ "create_bank_account": true }Creates a new bank account ("Revolut Main (EUR)", bank Revolut) with its 572 sub-account and links it. One per Revolut account and currency.
{ "bank_account": 5 }Links an existing bank account. It must be in the same currency and not be linked to another Revolut account (400 otherwise).
{ "bank_account": null }Unlinks it. Only while it has no imported transactions (see below).
{ "is_enabled": false }Pauses the import for that account without unlinking it.

A Revolut account that already has imported transactions cannot be linked to another bank account or unlinked: it returns 409 revolut_account_has_transactions, because the transactions would be imported again as duplicates. To stop importing, pause it with is_enabled: false.

Accounts in a currency other than EUR

Transactions of an account that is not in euros are imported, but they are not reconciled automatically and get no suggestions, and accounting actions (match, book, transfer…) return 409 foreign_currency_account: the amount is not in euros and the books are kept in euros. This is a current limitation. Post the euro equivalent with a manual journal entry and ignore the transaction (ignore is the only action allowed). Each transaction flags it with foreign_currency: true and a text in notice.

balance_check compares the balance at Revolut with the one of the last imported transaction and with the sub-account's ledger balance: with everything synced and reconciled, both differences are 0.00.

6. Sync

POST/api/v1/treasury/revolut/sync/treasury:write
{ "since": "2026-10-01", "dry_run": true }
JSON

dry_run: true simulates within the request itself and returns 200: nothing is saved and preview (up to 100 rows) lists the transactions that would be created (created) or linked to one already imported from a statement (linked). If the account has a lot of activity, narrow the period with since / until.

Without dry_run, the real sync runs in the background (a historical load can take minutes): the response is 202 with the log in status: "running", and you poll GET /treasury/revolut/sync-logs/{id}/ until it becomes done, partial or error. Exceptionally it may return 200 with the finished result.

{ "id": 87, "trigger": "manual", "status": "running", "dry_run": false, "rows_new": 0, "auto_matched": 0, "warnings": [], "error": "", "…": "…" }
JSON

Finished log (GET /treasury/revolut/sync-logs/87/):

{
  "id": 87,
  "trigger": "manual",
  "status": "done",
  "dry_run": false,
  "since": "2026-09-30T22:00:00Z",
  "until": null,
  "started_at": "2026-11-12T09:10:02Z",
  "finished_at": "2026-11-12T09:10:19Z",
  "accounts_synced": 2,
  "transactions_fetched": 64,
  "rows_new": 58,
  "rows_linked": 3,
  "rows_duplicate": 0,
  "rows_skipped": 4,
  "rows_reverted": 0,
  "auto_matched": 41,
  "transfers": 2,
  "warnings": [],
  "error": "",
  "created_by": 7,
  "preview": []
}
JSON
  • since / until are YYYY-MM-DD dates (until inclusive). Without since, the first sync brings the last 90 days (or from sync_from) and later ones start at the last sync minus a 10-day overlap, because a card purchase can take several days to complete.
  • sync_from (on the connection) sets a date before which nothing is ever imported: use it so transactions prior to the opening entry are left out.
  • status is running while it executes and, once finished, done, partial (finished with notices in warnings) or error. trigger tells the origin: manual, scheduled (hourly), webhook or callback (the first one after authorizing).
  • Only one sync can run at a time per organization: another request in the meantime returns 409 revolut_sync_in_progress.

GET /treasury/revolut/sync-logs/?limit=50 returns the history (manual, scheduled and webhook runs; limit from 1 to 200). preview is only filled in the response of a simulation: each row is {action, external_id, bank_account, date, amount, currency, concept, counterparty_name, transaction}.

7. Register the webhook

POST/api/v1/treasury/revolut/webhook/register/treasury:write

No body. Registers a transaction webhook in Revolut (TransactionCreated and TransactionStateChanged) pointing at Billora and stores its signing secret encrypted. From then on every transaction is synced when the notification arrives:

{
  "registered": true,
  "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "url": "https://api.billora.app/api/v1/treasury/revolut/webhook/b9Qm…/",
  "events": ["TransactionCreated", "TransactionStateChanged"],
  "last_event_at": null
}
JSON

The webhook is optional: without it, transactions come in with the hourly sync. DELETE /treasury/revolut/webhook/ removes it (204). Billora verifies the signature (Revolut-Signature, HMAC-SHA256) and the timestamp (±5 minutes) of every notification and discards the ones that fail.

How transactions are imported

Each Revolut transaction becomes a bank transaction of the linked account, with source: "revolut":

FieldSource
date, value_dateDate Revolut completed the operation, in the organization's time zone.
amountSigned amount in the account's currency.
concept, referenceDescription or merchant plus the operation's reference.
counterparty_name, counterparty_ibanBeneficiary or sender, from Revolut's counterparties.
balance_afterAccount balance after the operation.
external_id, external_stateTransaction id at Revolut and its state (completed, reverted).
merchant_name, card_last4Merchant and last four card digits, for card payments.
original_amount, original_currencyOriginal amount and currency when the operation was in another currency.
fee_amountThe operation's fee, if any.

GET /treasury/transactions/ accepts the source (statement, revolut, manual), external_id and external_state filters.

  • Only completed transactions come in. Pending ones (pending, created) are remembered and queried again until they complete; declined or failed ones are not imported.
  • Fees: when the operation carries a fee, it comes in as a separate transaction with the concept "Comisión Revolut – …", an external_id ending in :fee and concept code 17, so it can be booked to 626 (by hand or with a rule) without breaking the match of the main transaction.
  • Transfers between your own accounts: when both legs of a transfer are in linked accounts, the transfer entry is generated and both end up in the transfer status (transfers counter). For a currency exchange the entry uses the euro equivalent of the EUR leg; between two foreign-currency accounts there is no equivalent to post and both transactions stay pending.
  • Deduplication against statements: every transaction is unique by its external_id, so running the sync again duplicates nothing (rows_duplicate). If the transaction had already come in through a statement without an identifier (same account, same amount, date ±1 day and a compatible concept) it is linked to it (rows_linked) and keeps its reconciliation.
  • Reverted transactions: if Revolut reverts a transaction already imported, a pending one becomes ignored; an automatically matched one is undone and ignored; a manually reconciled one is left untouched and flagged for review (rows_reverted and the revolut_reverted_reconciled alert).
  • Reconciliation: with auto_reconcile: true (the default) rules and automatic matching are applied; with false only suggestions are computed. Transactions of foreign-currency accounts always stay pending (see step 5).
  • Balances: after each sync the Revolut balance becomes the account's bank balance in the bank vs. ledger summary. If it does not match the balance of the last imported transaction, warnings says a transaction may be missing.

Importing the Revolut Business CSV

If you do not want to connect the API, or need to load an old period, you can import the CSV statement you download from Revolut Business ("account statement"). It is recognized automatically (preset revolut_business) and parsed as follows:

  • only rows with State = COMPLETED (the rest are counted in a notice);
  • date = Date completed (UTC), concept = Description + Reference, balance = Balance;
  • the ID column is stored as external_id, so the CSV and the API never duplicate each other, whichever is imported first;
  • the fee (Fee) is split into its own transaction, as with the API;
  • counterparty: Beneficiary name + Beneficiary IBAN on debits and Sender name + Sender account on credits;
  • when the file carries several accounts, the one matching the IBAN of the chosen bank account is imported; if none matches, it is rejected with 400.

Payment drafts

POST/api/v1/treasury/revolut/payment-drafts/treasury:write
{
  "expense_ids": [880, 881, 902],
  "title": "Peritos octubre",
  "schedule_for": "2026-11-20"
}
JSON

Creates a payment draft in Revolut with the outstanding amount of each expense, to its supplier's IBAN and with the invoice number as the reference. Counterparties missing in Revolut are created by IBAN.

Billora does not execute payments

The draft moves no money. You review and approve it yourself in the Revolut Business app, with your Revolut permissions and authentication. Billora has no operation that orders a transfer.

FieldDescription
expense_idsConfirmed expenses with an outstanding amount. Credit notes, already paid expenses, suppliers without an IBAN and expenses already in another unapproved draft are rejected (unless allow_duplicates: true).
linesFree payments: beneficiary_name, iban, amount and, optionally, bic, currency, reference and individual (natural person). They can be combined with expense_ids.
titleDraft name in Revolut. Defaults to "Billora – N pagos (date)".
schedule_forScheduled execution date (cannot be in the past).
accountSource Revolut account (id from accounts/). Optional when there is only one in that currency.

A draft takes up to 100 payments, all in the same currency. It returns 201:

{
  "id": 14,
  "revolut_id": "c2f4a1b0-3d5e-4f6a-9b7c-8d9e0f1a2b3c",
  "title": "Peritos octubre",
  "schedule_for": "2026-11-20",
  "status": "created",
  "total": "2783.00",
  "currency": "EUR",
  "account": 11,
  "account_name": "Main",
  "lines": [
    {
      "id": 51,
      "expense": 880,
      "expense_number": "A-2026-7781",
      "beneficiary_name": "Peritaciones Levante, S.L.",
      "iban": "ES7620770024003102575766",
      "amount": "968.00",
      "currency": "EUR",
      "reference": "A-2026-7781",
      "counterparty_id": "5d1a9c2e-6b7f-4e8a-9c0d-1e2f3a4b5c6d",
      "bank_transaction": null,
      "paid": false,
      "paid_at": null
    }
  ],
  "next_step": "Aprueba el borrador en la app de Revolut Business (Transferencias → Borradores). Al completarse el pago, Billora lo concilia con sus gastos.",
  "created_by": 7,
  "created_at": "2026-11-12T10:15:00Z",
  "updated_at": "2026-11-12T10:15:00Z"
}
JSON

While Billora is creating it in Revolut the draft is in the creating status, which reserves its expenses so two simultaneous requests cannot include them twice; if the creation does not complete, it moves to deleted and the expenses are released.

When you approve the draft and Revolut completes each payment, the sync recognizes it (same counterparty, amount and account) and reconciles it with its expense: the expense becomes paid on the bank date, the line gets paid: true with its bank_transaction, and the draft moves to partial or completed.

OperationEndpoint
List drafts (status filter: creating, created, partial, completed, deleted)GET /treasury/revolut/payment-drafts/
Delete a draft not yet approved (204; with payments already executed it returns 400)DELETE /treasury/revolut/payment-drafts/{id}/

Legacy method: certificate and OAuth

Deprecated by Revolut

This method (X509 certificate + OAuth consent, auth_mode: "oauth") is the one Revolut has deprecated in favour of API keys. It is kept for connections that already use it; for a new connection use the API key. To move from one to the other, generate the signing key (the OAuth connection keeps working meanwhile) and save the API key with auth_mode: "api_key": linked accounts and imported transactions are kept.

Generate the certificate in Billora

POST/api/v1/treasury/revolut/connection/treasury:write
{ "environment": "production", "auth_mode": "oauth", "generate_keys": true }
JSON

Billora generates an RSA 2048 key pair and an X509 certificate. The private key is stored encrypted and is never returned; the response carries what you have to copy into Revolut: certificate_pem (the public certificate) and redirect_uri. To use a key of your own, send private_key (PEM without a passphrase) and, optionally, its certificate, instead of generate_keys.

Paste the certificate into Revolut Business

In Revolut Business open APIs → Business API, add a new certificate and paste:

  • the content of certificate_pem as the X509 public key;
  • the redirect_uri as is, as the OAuth redirect URI.

On saving, Revolut shows the application's Client ID.

Save the client_id

POST/api/v1/treasury/revolut/connection/treasury:write
{ "client_id": "po7cgsDK2sGq1Wn_Ysr9AqXUh0XsYFoB4eGzQ3jRkLw" }
JSON

With a certificate and a client_id, configured becomes true.

Authorize access

POST/api/v1/treasury/revolut/connection/authorize-url/treasury:write

No body. Returns the Revolut Business consent URL:

{
  "authorize_url": "https://business.revolut.com/app-confirm?client_id=po7c…&redirect_uri=https%3A%2F%2Fapi.billora.app%2F…&response_type=code&scope=READ%2CWRITE",
  "redirect_uri": "https://api.billora.app/api/v1/treasury/revolut/connection/callback/Zk3v…/"
}
JSON

Open it in the browser with a Revolut Business user who can authorize applications, and accept. You have 15 minutes: the authorization is only accepted during that time after requesting the URL, and only once; after that you come back with ?revolut=error&reason=authorization_expired and just need to request another URL. Revolut redirects to the redirect_uri, Billora exchanges the code for the tokens, reads the accounts, starts the first sync and sends you back to the app (?revolut=connected, or ?revolut=error&reason=… if something fails: authorization_expired, revolut_not_configured when the stored credentials are missing or unreadable, missing_code or Revolut's own error code). The connection ends up with status: "connected", authorized: true and expires_at (the estimated expiry date) 90 days ahead.

If you configured a redirect URI of your own (redirect_uri on the connection, always https), complete the authorization by hand with the code you receive:

POST/api/v1/treasury/revolut/connection/callback/treasury:write
{ "code": "oa_prod_vYo3…" }
JSON

This only affects the legacy method. An API key does not expire by date: expires_at and days_to_expiry are null and the connection only moves to status: "expired" (alert revolut_api_key_rejected) if Revolut rejects the key because it was revoked or deleted; you then create another one in the API Console and save it in Billora (step 3).

With a certificate and OAuth, Revolut may require you to authorize access again periodically. On authorizing, Billora computes an estimated expiry date 90 days ahead (expires_at, with the days left in days_to_expiry) and warns you in advance so the flow of transactions is not interrupted:

  • When fewer than 10 days are left, the revolut_consent_expiring alert shows up.
  • If the date arrives and Revolut still accepts the credentials, syncing continues and the alert clears on its own (expires_at becomes null).
  • Only when Revolut actually rejects the access (expired or revoked) does the connection move to status: "expired", stop syncing and make requests return 409 revolut_auth_error.

The alerts show up both in the connection's alerts and in the alerts and the revolut block of the treasury summary (GET /treasury/summary/):

codeWhen
revolut_consent_expiringFewer than 10 days are left before the estimated expiry date.
revolut_consent_expiredRevolut has rejected the access: the connection is in status: "expired" and does not sync.
revolut_api_key_rejectedWith an API key: Revolut rejects the key (revoked, deleted, from the other environment or created with a different public signing key).
revolut_sync_errorThe last sync failed (the reason is in last_error).
revolut_reverted_reconciledThere are transactions reverted in Revolut that are still reconciled.

To renew, just repeat the authorization: request a new authorize-url and accept again in Revolut. There is no need to regenerate the certificate or change the client_id, the accounts stay linked, the estimated date counts 90 days again and the next sync catches up on anything left unimported. Changing the environment, the client_id, the key or the redirect URI does invalidate the authorization and requires repeating it.

Security

  • Encrypted secrets: the API key, the private signing key, the webhook secret and, in the legacy method, the private key and the tokens are encrypted at rest and are never returned, neither by the API nor by the MCP connector. Only the last four characters of the API key are returned (api_key_last4), and for private keys only whether they exist (has_signing_key, has_private_key). What is returned is the public material you upload to Revolut: signing_public_key and, in the legacy method, certificate_pem.
  • Request signing: with a signing key, every request to Revolut is signed (Ed25519) with a timestamp. The private key never leaves Billora: if you generate it here, nobody ever sees it.
  • Payments are never executed directly: Billora uses no Revolut operation that orders transfers or payments. All it writes in Revolut are payment drafts, the counterparties they need and the webhook. Create the API key without the permission to execute payments (the legacy method requests the READ and WRITE permissions).
  • Protected webhook and callback: their URLs carry an unguessable per-organization token, and the webhook also requires Revolut's HMAC signature and a recent timestamp.
  • Billora permissions: only OWNER and ADMIN can configure the connection, sync or create drafts; with an API key you need treasury:write.
  • Disconnecting: POST /treasury/revolut/connection/disconnect/ deletes the webhook in Revolut and wipes the API key with its signing key (and the legacy method's tokens); with { "delete_keys": true } it also wipes that method's client_id, key and certificate. Imported transactions and linked accounts are kept. The token URLs are rotated on disconnect: if you connect again, you must generate another signing key, create a new API key with it and register the webhook again (in the legacy method, also update the redirect URI in Revolut with the new redirect_uri).

Endpoints

OperationEndpointScope
Connection statusGET /treasury/revolut/connection/treasury:read
Configure (api_key, signing_private_key, environment, auto_sync, auto_reconcile, sync_from; legacy method: keys, client_id, scopes)POST · PATCH /treasury/revolut/connection/treasury:write
Generate the signing key (regenerate to replace it)POST /treasury/revolut/connection/signing-key/treasury:write
Consent URL (legacy method only)POST /treasury/revolut/connection/authorize-url/treasury:write
Complete the authorization with the code (legacy method only)POST /treasury/revolut/connection/callback/treasury:write
Test the connection (permissions and signature)POST /treasury/revolut/connection/test/treasury:write
DisconnectPOST /treasury/revolut/connection/disconnect/treasury:write
Revolut accounts and balance checkGET /treasury/revolut/accounts/treasury:read
Read accounts and balances from Revolut againPOST /treasury/revolut/accounts/refresh/treasury:write
Link, create a bank account or pausePATCH /treasury/revolut/accounts/{id}/treasury:write
Sync (since, until, dry_run): 202 in the background, 200 for a simulationPOST /treasury/revolut/sync/treasury:write
Sync history and status of one syncGET /treasury/revolut/sync-logs/ · GET …/{id}/treasury:read
Register / delete the webhookPOST /treasury/revolut/webhook/register/ · DELETE /treasury/revolut/webhook/treasury:write
Payment draftsGET · POST /treasury/revolut/payment-drafts/ · DELETE …/{id}/treasury:read / treasury:write
Counterparties stored in Revolut (search by name or IBAN)GET /treasury/revolut/counterparties/treasury:read
Transactions as returned by Revolut, importing nothing (since, until, account, type, count up to 1000)GET /treasury/revolut/transactions/treasury:read
Detail of a transaction by its id (the transaction's external_id)GET /treasury/revolut/transactions/{transaction_id}/treasury:read

The direct queries (counterparties/, transactions/) are handy to see operations still pending at Revolut or the full detail of a transaction (merchant, card, original currency, fee).

From the MCP

With the Claude connector you can ask "sync Revolut and reconcile whatever matches" or "prepare a payment draft with the pending expert-witness invoices". The tools are revolut_status, revolut_list_accounts, revolut_link_account, revolut_sync (simulates by default), revolut_get_sync_log (result of a background sync), revolut_list_transactions, revolut_get_transaction, revolut_list_counterparties, revolut_create_payment_draft, revolut_list_payment_drafts and revolut_delete_payment_draft. That is 11 tools. The connection (signing key, API key and webhook) is configured in Billora, under Settings → Integrations → Revolut Business, not from Claude: revolut_status reports in next_step which step is missing (generate the signing key, paste the API key, test the connection or link the accounts) and no tool returns keys, tokens or the token URLs.

Errors

HTTPcodeWhen it happensWhat to do
400validation_errorInvalid data: an API key with spaces or a PEM in its place, a signing_private_key that is not an Ed25519 private key (public.pem, a certificate, an RSA key…), generate_keys and private_key together, a certificate that does not belong to the key, a redirect URI that is not https, a different currency when linking an account, an expense without a supplier IBAN or already in another draft, since after until…Fix the field named in errors.
404not_foundAccount, draft or transaction that does not exist (also when Revolut cannot find the resource).Check the id.
409revolut_not_configuredThe API key is missing (or, in the legacy method, the client_id, the certificate or the authorization).Complete steps 1 to 4.
409revolut_auth_errorRevolut rejects the API key (invalid, revoked or from the other environment) or, in the legacy method, the consent has expired. The connection moves to expired.Create another API key and save it (step 3); in the legacy method, authorize again.
409revolut_signing_key_existssigning-key/ when a signing key already exists.Repeat with { "regenerate": true } if you really want to replace it.
409revolut_auth_modeauthorize-url/ or callback/ on an API key connection: there is no consent to authorize.Use connection/test/.
409revolut_sync_in_progressA sync is already running.Wait for it to finish and retry.
409revolut_account_has_transactionsLinking to another bank account, or unlinking, a Revolut account that already has imported transactions.Pause it with is_enabled: false.
409foreign_currency_accountAccounting action on a transaction of an account that is not in euros.Post the equivalent by hand and ignore the transaction.
424revolut_api_errorRevolut answered with an error. If it denies the operation, check the authorized permissions and the application's IP allowlist in Revolut.Read detail; retry if it is transient.
424revolut_permission_deniedThe API key lacks the permission for the operation (detail says which).Edit the key in Revolut's API Console or create another one with that permission.
424revolut_rate_limitedRevolut is throttling requests.Retry in a few minutes.
424revolut_unreachableRevolut could not be reached (network or timeout).Retry later.

A 424 means the failure is at Revolut, not in your request or in Billora: nothing was imported halfway and you can repeat the call. Failures of automatic syncs return no error to anyone: they are recorded in last_error, in sync-logs/ and in the alerts of the treasury summary.