Skip to content

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
The ports of “Swan”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Swan connection.Swanswan.apimainmainerror · only with “Follow the Error output”Connection: Swan
The ports of “Swan”: what comes in on the left, what goes out on the right

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 accounts
    • account.get — Get an account and its balances
    • transactions.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: action is one of account.get, transactions.find
  • Expressions: {{ }} accepted

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: action is transactions.find
  • Expressions: {{ }} accepted

amount ​

Exact amount

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is transactions.find
  • Expressions: {{ }} accepted

status ​

Status

  • Type: One choice (options)
  • Required: No
  • Default: any
  • Options:
    • any — Any
    • Booked — Booked
    • Pending — Pending
    • Upcoming — Upcoming
    • Rejected — Rejected
  • Shown when: action is transactions.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 (with summaryKey and summaryParams).

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  Booked

Tips ​

  • Testing. Every action is a read: they go out for real in a test run.
  • Amounts. The amount accepts 1234.50 as well as 1 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_limited and integration.unavailable are retried automatically. Getting an account without an ID fails the step with node_invalid_param, before any call. See Error handling.

Loop & Roll — the workflow builder for email.