How to Connect Revolut Business to an AI Agent (2026)
A Revolut counterparty in state created is not a paid transfer, and payment drafts wait for approval in the Business app. Here's how Swytchcode keeps an agent on draft-only access until that approval habit is proven, and backs retries with the same request id.
Key takeaways
- -A counterparty state of created means Revolut stored the recipient. It does not mean any payment has been approved yet.
- -Swytchcode turns on the counterparty and draft-creation methods first and leaves the direct-pay method off the allowlist until it's deliberately added.
- -Payment drafts stay drafts until someone sends them in the Revolut Business app. Pending review needs an approver inside that same app, and a Swytchcode approval doesn't replace it.
- -A request id on a direct transfer prevents a duplicate for about two weeks. A new id after that window, or on every retry, is simply a new transfer.
- -A credential with the narrower write scope can prepare a draft but can't fire the transfer itself. Give the agent that access until the approval habit is actually real.
A business banking API can return a perfectly valid response for an action that hasn't actually happened yet. Revolut's payment approvals are a case in point. An agent that treats "the API accepted my request" as "the payment went through" is missing a step that, here, is intentional.
The agent creates a supplier and immediately tries to pay them. Revolut returns the counterparty id just fine. The transfer comes back declined or failed. The id was real. Nobody in the Business app had actually approved a payment to that supplier, and the token had used a path that still needed a human to sign off.
The general problem is that a successful-looking response from a banking API doesn't always mean money moved, and a counterparty id is not the same thing as a payment somebody actually approved. Swytchcode's fix is to keep the agent on an action that can prepare a payment but not fire it, until the approval habit around that agent is genuinely proven out.
The problem: approval is a separate step the API won't skip for you
Adding a counterparty just means Revolut stored the recipient. There's no "approved" state on that object at all. A counterparty being on file doesn't mean a payment has cleared, or ever will. If your business uses an approval rule, a payment has to go through a draft stage and sit in review inside the Revolut Business app before anyone can process it, and an owner, admin, or designated approver has to sign off there, not through the API.
A draft the API created is still fully reversible: you can delete it while it's still a draft. A transfer that already ran is a completely different story. Whether the agent can skip the draft entirely and fire a transfer directly comes down to what the credential it's using is actually allowed to do, which is exactly the kind of thing that shouldn't be left to the model to decide for itself.
How Swytchcode solves it
Swytchcode downloads the Revolut method catalog and lets you turn on only the counterparty and draft-creation methods at first, leaving the direct-pay method off the allowlist entirely. An agent on that setup can prepare a payment for a person to release, but it cannot fire the transfer on its own, no matter what the prompt asks for.
There's no .env file in this project. Swytchcode keeps the Revolut credential in its own local store and reads it when a call runs, so the token stays in that store, not anywhere near the prompt.
Setting up Revolut with Swytchcode
The Revolut catalog page is where the downloaded methods actually live. Find the provider, then copy method IDs from the list rather than guessing one for "pay supplier":
swy search revolut
swy list methodsAdd the counterparty and draft-creation methods first. Add the direct-pay method later, in its own change, and only once you actually mean to let an agent trigger it.
Policies: build agents you can trust with payment approval
Revolut's own access scopes are the real mechanism behind this. Read access covers lookups. A separate write scope covers counterparties, webhooks, and payment drafts. A third, narrower scope covers actually initiating or cancelling a transfer, and that's the one that matters: a credential with the write scope but not that pay scope can prepare a draft and cannot fire the transfer on its own, while a credential with the pay scope can skip the draft queue entirely. Give the agent the narrower, draft-only access until the approval habit around it is genuinely real, and add the ability to pay directly later, deliberately, and only for the methods you actually mean to run.
Direct transfers also take a request id you choose yourself, and Revolut recommends a UUID v4. If the call times out, send that same id again. If a transaction with that id already exists, Revolut won't create another one. That protection lasts about two weeks from the transaction; reuse the same id after that window and Revolut may create a new transaction anyway. Store the id right next to the attempt, because an agent that mints a fresh id after every timeout will end up paying twice, inside that same window, simply because Revolut has never seen the new id before.
This Revolut draft-and-approve gate is the specific case; Treasury agents and bank APIs covers the wider pattern. Human approval on Slack or Telegram is a separate hold, available on Business and Enterprise plans, and it doesn't replace the Revolut approver inside the Business app. You may well want both, but the Revolut step is the one that actually releases the money.
Revolut's Business API lets an agent create suppliers and move company money between accounts, and the risk isn't that the API is unreliable, it's that a stored counterparty and an accepted request can both look like success while the actual payment is still waiting on a person. Swytchcode solves that by only allowing the draft-creation methods at first, keeping the direct-pay method off the allowlist until it's deliberately turned on, and backing a real transfer with the same request id on every retry so a timeout can't turn into a second payment.
Related reading
- API compliance for agent integrations. How to describe the draft-then-approve sequence in a review.
- Policy as code for agent calls. Where a direct-pay method stays denied until you deliberately allow it.
- Log every API call an agent makes. Where the request id and the transaction state should actually show up.
- A security checklist before company data. What to settle before a supplier bank account goes into the agent.
FAQ
If the counterparty state is created, can I pay them?
You can call the direct-pay method if the credential has the pay scope and the receiver fields are complete, yes. But created doesn't mean an approver has seen the payment yet. Use a payment draft whenever a person in the Revolut Business app needs to release it first.
How long can I retry the same Revolut request id?
About two weeks from the transaction. The same id inside that window won't create a second transfer. After that, Revolut says reuse can create a new transaction entirely. Keep the original id stored right alongside the attempt.
Why did a Revtag lookup return 404?
The name has to match, or closely match, the account on file. In sandbox, stick to Revolut's published test users: Test User 1 with revtag john1pvki through Test User 9 with john9pvki. A live person's real Revtag is never a sandbox counterparty.
Does a Swytchcode approval replace Revolut's approver?
No. Slack or Telegram approval is available on Business and Enterprise and expires after 48 hours, but Revolut still applies its own draft and pending-review rules inside the Business app regardless. Keep the Revolut step even when you're also holding the call in Swytchcode.
What fields does creating a counterparty actually need?
It depends on the type: a Revtag counterparty uses name, a company added by bank details uses company_name, and an individual added by bank details uses individual_name. Mixing those fields up fails the create outright. Fill street_line1, region, and city along with the required country and postcode. Some payment rails reject a thin address later, at payment time, which is a genuinely bad moment to discover it.
Do I need to specify which account or card I'm paying?
If the recipient has more than one account or a card on file, a transfer has to name the specific account or card explicitly. An agent that only stores the counterparty id will end up under-specified on that step.
What do Revolut's transfer states actually mean?
A direct payment to another Revolut account is instant, and the states you can get back are created, pending, completed, declined, failed, and reverted. Declined and failed cover insufficient balance, bad receiver data, blocked payments, and invalid calls. Reverted can simply mean the receiver was unreachable.
Can I build an AI agent on top of Revolut with Swytchcode?
Yes. swy search revolut finds the provider, swy list methods shows the real method IDs, and swy add method turns on only the ones a task needs: counterparty and draft creation, for instance, without the direct-pay method sitting there as an equally easy option. The agent calls exec; it never holds the credential itself.
Can Swytchcode stop an agent from sending a payment, even if it's asked to?
Yes. If the direct-pay method was never added to the allow list, the call stops before it reaches Revolut at all. If it was added, a policy rule can still deny it outright or hold it for approval in Slack or Telegram, and if nobody approves within 48 hours it never runs. Revolut's own draft and review step inside the Business app still applies either way.
If an agent retries a Revolut call after a timeout, will Swytchcode let it duplicate a payment?
Not when the retry reuses the same request id within Revolut's roughly two-week window. Revolut recognizes the repeated id and won't create a second transaction. The risk is specifically a retry that generates a brand-new id, which Revolut has no way to tell apart from a legitimate new payment.
Use Swytchcode so this doesn't happen to you
Use Swytchcode so your agent can never fire a Revolut payment before the draft is approved, or send a duplicate transfer when a request times out.
Swytchcode is an execution kernel that sits between your AI agents and the APIs they call. It resolves the right method, injects auth, checks policy, retries safely with idempotency, and logs every call locally.
Start with the MCP quickstart, or browse the docs for the full reference. Free is 100 live commands a month forever; see pricing for Pro and Business.
More content
API Governance Tools That Block a Pull Request When a Policy Check Fails
Spectral, Redocly CLI, and vacuum all fail a PR's CI check when an OpenAPI spec breaks a governance rule. How the gate is actually wired up, and why it's a different layer from Swytchcode's own runtime policy checks.
API Governance Tools With a Free Tier: What Small Teams Can Actually Use
Most API governance comparisons assume an enterprise budget. Here's what's genuinely free with no catch, what's gated behind a paid plan, and the realistic free stack a small team can actually run.
API Spend Caps for AI Agents: Capping Cost Before the Invoice Does
Most teams find out an agent overspent on a metered API when the invoice arrives. An argument-level policy that caps the metric a provider actually bills on, checked before the call goes out, catches it in the moment instead.
