n8n-nodes-swan-io
v0.1.0
Published
N8n node for Swan API
Downloads
29
Maintainers
Readme
n8n-nodes-swan-io
This is an n8n community node. It lets you use Swan.io API in your n8n workflows.
Use Swan's APIs to embed white-labeled banking features like accounts, cards, and payments into your workflows and UX.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
You can also test and/or run it locally by using
$ yarn start
# --- or ---
$ npm start
Credentials
- Swan User Access Token (OAuth2 - Authorization code)
- Swan Project Access Token (OAuth2 - Client Credentials)
More information on the related section of the Swan.io documentation
How to
- First, from the Swan's dashboard, Tab
Developers
, get your client ID and your client Secret (sectionOAuth 2.0 Credentials
)
- Then, in n8n, add new credentials and select one of the Swan's credentials
Then fill the form with the Swan's credentials saved in the 1.
Get back in the Swan's dashboard and add the n8n redirect URI in the
Redirect URIs
section
- It's done, you can try to connect your n8n instance to Swan
Operations
Swan node
You will be able to request the Swan's GraphQL API
For convenience, some basic operation are available directly
- Query - Account : Get an account by ID
- Query - Transaction : Get a transaction by ID
- Mutation - Update Account : Update account name by ID
- Mutation - InitiateCreditTransfers : Initiate one (or several) Credit Transfer(s)
- Mutation - GrantConsentWithServerSignature : Consent a sensitive operation, like InitiateCreditTransfers, through the server-to-server consent feature
But you should also be able to request anything via the Custom operation, by writing your own query/mutation
How to
- First, add a Swan node in your workflow
- Now, you can choose the relevant operation in your context (already no-code ready, or by specifying your GraphQL query)
- It's done, you can now using this node to interact with the Swan's API
SwanTrigger node
You will be able to receive all event dispatched by the Swan's webhook
How to
- First, add a SwanTrigger node in your workflow and copy the webhook generated URL
- Then, go the the Swan's dashboard and add a new webhook with the n8n webhook url as target, and expected events.
You can test the flow by sending test event from the dashboard
- Your webhook is now listed and enabled in the Dashboard
- It's done, you can now receiving events from Swan in your n8n workflows