English
Swan
Lists Swan accounts and their balances, gets an account, finds transactions by label, reference, amount or status.
The Swan node reads a Swan project’s accounts and transactions: it lists the accounts and their balances, gets an account, and finds transactions by label, reference, amount or status — for example to check that a payment announced by email has arrived.
The node is read-only: it initiates no transfer and writes nothing at Swan.
See Swan to create the connection.
At a glance
- Type:
swan.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: Swan
- Inputs:
main - Outputs:
main
Connection
This node needs a Swan connection.
Parameters
connection
Swan connection — The Swan connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
transactions.find - Options:
accounts.list— List accountsaccount.get— Get an account and its balancestransactions.find— Find transactions
accountId
Account (Swan ID) — To find transactions: empty, the whole project.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 100 characters at most
- Shown when:
actionis one ofaccount.get,transactions.find - Expressions:
{{ }}accepted
search
Search — A label, a reference or a counterparty.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
{{ data.read.reference }} - Shown when:
actionistransactions.find - Expressions:
{{ }}accepted
amount
Exact amount
- Type: Text (
string) - Required: No
- Default:
""(empty) - 30 characters at most
- Shown when:
actionistransactions.find - Expressions:
{{ }}accepted
status
Status
- Type: One choice (
options) - Required: No
- Default:
any - Options:
any— AnyBooked— BookedPending— PendingUpcoming— UpcomingRejected— Rejected
- Shown when:
actionistransactions.find
Outputs
main— Taken once the query to Swan succeeds, whatever the action. An error response from Swan fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.accounts }}—array of { id, name, number, iban, bic, currency, available, booked, pending }. List accounts: the project’s accounts; each balance is a{ value, currency }.{{ data.<step>.count }}—number. List accounts: the number of accounts returned.{{ data.<step>.found }}—boolean. Get an account, Find transactions: true when an item matches.{{ data.<step>.account }}—{ id, name, number, iban, bic, currency, available, booked, pending }. Get an account: the account and its balances, null when it does not exist.{{ data.<step>.transaction }}—{ id, reference, label, side, type, amount, currency, counterparty, paymentProduct, status, executionDate, createdAt, updatedAt, accountId, accountName }. Find transactions: the most recent one found, null otherwise.{{ data.<step>.transactions }}—array of { id, reference, label, side, type, amount, currency, counterparty, paymentProduct, status, executionDate, createdAt, updatedAt, accountId, accountName }. Find transactions: the transactions found, fifty at most, most recent first.{{ data.<step>.summary }}—string. The one-line summary in the member’s language (withsummaryKeyandsummaryParams).
Operations
The node has a single Action parameter (action). Each action is a GraphQL read query with the connection’s project token.
- List accounts (
accounts.list): name, number, IBAN, BIC, currency and available, booked and pending balances. - Get an account and its balances (
account.get) by its Account (Swan ID). - Find transactions (
transactions.find, the default): Search (label, reference or counterparty), Exact amount, Status (any, booked, pending, upcoming, rejected); Account empty, the whole project. Sorted by descending execution date.
Example
A customer writes that they paid invoice FAC-2026-0042. A read step extracted the reference and the amount; a transfer node checks the payment is booked, then an If tests {{ data.transfer.found }}:
text
action transactions.find
search {{ data.read.reference }}
amount {{ data.read.amount }}
status BookedTips
- Testing. Every action is a read: they go out for real in a test run.
- Amounts. The amount accepts
1234.50as well as1 234,50; an unreadable value is not used as a filter. - Errors.
integration.unauthorized: the credentials were refused, check the connection and its environment.node_service_failed: Swan refused the GraphQL query, replaying it would change nothing; fix the settings.integration.rate_limitedandintegration.unavailableare retried automatically. Getting an account without an ID fails the step withnode_invalid_param, before any call. See Error handling.