Skip to content

Revolut

Connect Revolut so your workflows can take payments, move money and react to what happens in your Revolut accounts. Revolut has two separate APIs, and Crios has a connection, a node and a trigger for each:

Revolut Merchant Revolut Business
What it is for Taking payments online: orders, captures, refunds, customers, Revolut Pay Your business account: balances, transactions, counterparties, payments, transfers, currency exchange, payout links
Connection Revolut Merchant: a secret key Revolut Business: an API key, or a certificate signed in with OAuth (older, deprecated by Revolut)
Node Revolut Merchant Revolut Business
Trigger Revolut Merchant trigger: orders, payments, subscriptions, payouts, disputes Revolut Business trigger: transactions and payout links created or changing state

Start in Revolut's sandbox, test the workflow end to end, then switch it to your live account. This page walks through all three steps.

Sandbox and production

Revolut runs two environments, each with its own account and its own keys:

  • Sandbox: test money in a separate Revolut account. Create one at sandbox-business.revolut.com.
  • Production: your real Revolut Business account.

A key works only in the environment it was created in. So every Revolut connection in Crios names its environment, in the Environment field. A Revolut Business API key connection has no default: you pick sandbox or production when you create it. A connection set to sandbox carries a Sandbox chip wherever you choose connections, so a test connection is not mistaken for the live one.

Keep one connection per environment. Build and test against the sandbox ones, and rebind to the production ones when you go live.

Creating keys in Revolut's API Console

Revolut issues the keys for both APIs in its API Console. To test, create the keys in your Sandbox account; to go live, in your production account. Revolut's API Console guide shows each screen. When you create a key:

  1. Choose the products and permissions the key may use. A key can only reach what its permissions cover; the tables below list what Crios needs.
  2. For a Revolut Business key, download its private signing key (private.pem). The API Console adds signing keys to every Business key with Accounts, Transfers, Currency exchange or Webhooks permissions, and in production Revolut refuses any request from such a key that isn't signed. Crios signs with the private key you give the connection. The sandbox also accepts unsigned requests, but adding the key there tests the same setup production needs.
  3. For a Revolut Merchant key, leave request signing off. Merchant keys don't need it, and Crios doesn't sign Merchant requests: a Merchant key with signing turned on passes every sandbox test and then fails in production.
  4. Copy the key, and for Business its private key, into the Crios connection, as described below.

For a Revolut Business key, give the permissions of what your workflows do:

Product Resource Permission Needed to
Accounts Accounts Read Test the connection; read accounts, balances and bank details
Accounts Transactions Read Read transactions
Transfers Counterparties Read, Write List counterparties; add and delete them
Transfers Transfers to counterparties Write Pay a counterparty
Transfers Transfers between your accounts Write Move money between your own accounts
Transfers Payout links Read, Write Create, read and cancel payout links
Currency exchange Exchange Read, Write Get a rate; exchange currencies
Webhooks Webhooks Read Use the Revolut Business trigger
Webhooks Webhooks Write Register a webhook from Crios
Sandbox simulations Simulations Write Top up and settle in the sandbox

For a Revolut Merchant key, give Read or Write on each resource the workflow uses; Write includes Read. The connection's Test reads orders, and the Revolut Merchant trigger reads webhooks. Crios uses the secret key (it starts with sk_), not the public key that checkout pages use.

Connecting Revolut Business

  1. In your project, choose Connectors under More, then click New credential. Search for Revolut.
  2. On the Revolut Business card, pick API key.
  3. Fill in the form:

    Field What to enter
    Name How workflows will refer to the connection, for example Revolut sandbox
    API key The key from the API Console
    Private key The key's private signing key: open private.pem in a text editor, copy all of it, including the BEGIN and END lines, and paste it. Needed in production
    Environment sandbox or production: the account the key was created in
    Webhook secret Leave empty. The trigger finds the signing secret itself (see Receiving events)
  4. Click Create, then Test on the new connection. Crios reads your accounts with the key and shows the connection as connected. If Revolut refuses the key, check three things: that Environment matches the account the key comes from, that the key has the Accounts read permission, and, in production, that Private key holds this key's own private.pem.

In a workflow, add the Revolut Business node and choose the connection in its connection picker. Picking an API key connection sets the node's Authentication to apiKey for you.

Certificate and OAuth connections

Before API keys, the Business API was reached with a certificate you uploaded to Revolut and an OAuth sign-in. Revolut has deprecated that method and asks its users to move to API keys. Crios keeps those connections working: they are the OAuth2 login row on the same Revolut Business card, and a node or trigger whose Authentication is oauth2. That is the default, so workflows built before API keys keep their connection.

To move a workflow to an API key, create the API key connection and pick it in the connection picker of each Revolut Business node and trigger. Then publish the workflow again.

Connecting Revolut Merchant

  1. Click New credential on the project's Connectors page, search for Revolut, and on the Revolut Merchant card pick API key.
  2. Enter the Secret key from the API Console, and set Environment to sandbox or production. Left unset, Environment means production.
  3. Click Create, then Test on the new connection. Crios reads one order. If Revolut refuses the key, check that Environment matches the account the key comes from.

Then add the Revolut Merchant node to a workflow and choose the connection.

Receiving events

Both triggers check Revolut's signature on every delivery. You don't copy a signing secret anywhere. When a delivery arrives, Crios asks Revolut, through the trigger's connection, for the secret of the webhook that points at the trigger's address.

  1. Add the Revolut Business trigger or the Revolut Merchant trigger. Choose the connection, and pick the events to start the workflow.
  2. Publish the workflow. Until a version is live, the trigger's address answers 404.
  3. Copy the address from Webhook URL in the trigger's inspector.
  4. Register a webhook in Revolut for that address and the same events. Crios does not create it for you. The simplest way is a Revolut node run once: a workflow with a Manual Trigger and a Revolut Business node (or Revolut Merchant node) on the same connection. Set Resource to webhook, Operation to create, Url to the address, and Events to the same events. Save the workflow and click Run in the run panel.

Register the webhook in the same environment as the trigger's connection: a trigger on a sandbox connection only recognizes webhooks of the sandbox account. Revolut allows 10 webhooks per Merchant account.

If a delivery fails, Revolut sends it again. On the Revolut Business trigger, the retry does not start a second run. On the Revolut Merchant trigger, only the order states an order reaches once are recognized as retries: ORDER_AUTHORISED, ORDER_COMPLETED, ORDER_CANCELLED and ORDER_FAILED. Every other Merchant event starts a run per delivery, retries included, because Revolut sends the same body again on purpose (each declined attempt to pay an order, for example). Make what acts on those events safe to repeat.

When a webhook's signing secret is rotated, Crios picks up the new one by itself.

Testing in the sandbox

On a sandbox connection, the Revolut Business node has a Resource called sandbox. It makes things happen that the sandbox does not do by itself:

  • Fund an account: Operation topUp, with Account Id, Amount and Currency. Use the account's own currency. Revolut caps one top-up at 10,000. Reference, optional, describes the top-up (Revolut's default is Test Top-up). Top Up State creates it as pending, reverted or failed instead of completed.
  • Settle a transfer: Operation setTransferState, with the transfer's ID in Id and a Transfer Action: complete, revert, decline or fail. A payment you make in the sandbox can end any of those ways. The new state is final: Revolut does not let it change again.

Both are refused on a production connection before anything is sent to Revolut, so a test step left in a workflow cannot touch your live account. They need the Sandbox simulations write permission on an API key, or the WRITE scope on a certificate and OAuth connection. Revolut's guide Test your flows with simulations has more.

Test runs are real runs

A test run of a workflow that pays or transfers does pay and transfer, in whatever account the connection points at. Keep the workflow on sandbox connections until you mean it.

Going live

  1. In your production Revolut Business account, create the production keys in the API Console, with the same permissions, and download each Business key's private signing key.
  2. Create production connections in Crios, with Environment set to production and the Private key filled in, and Test them.
  3. In the workflow, choose the production connections in each Revolut node and trigger. Remove any sandbox step: it fails on a production connection.
  4. Publish, then register the webhooks again for the production account (see Receiving events). Webhooks belong to one environment.

A retried payment step does not pay twice: Revolut Business payments, transfers and exchanges carry a request ID that Revolut refuses to repeat for two weeks. To stop a re-run of the workflow from paying the same invoice twice as well, set Idempotency Key to something unique to the payment, such as the invoice number.

Revolut in chat

A Revolut connection can also be offered to a project's session chat as a tool. The chat's access to it follows the connection's access level on the project's Connectors page (see Connector instances). To keep the chat from moving money, set that level to Read, or give the key no write permissions.