Get bank details
Download a PDF of your bank details.
Prerequisites
- The account's
accountId
, found on your Dashboard > Accounts page. - The account must have been created after 16 November 2023. If you'd like to get bank details for an older account, please skip to the guide for older accounts.
API guide​
- Call the
account
query. - Enter the
accountId
. - Add
bankDetails
.
Query​
🔎 Open the query in API Explorer
query getBankDetails {
account(accountId: "$YOUR_ACCOUNT_ID") {
bankDetails
}
}
Response​
- The response includes the download URL (line 4), which begins with
bank-details.swan.io
. - Paste the URL into your browser, then press enter. This triggers the download of your PDF.
{
"data": {
"account": {
"bankDetails": "$DOWNLOAD_URL",
}
}
}
Null response
If the API returns a null
response, the account was probably created before this feature was introduced.
Follow the guide for older accounts instead.
Guide for older accounts​
If you'd like to get a bank details PDF for an older account, you have two options.
Actors | Explanation |
---|---|
You with the API |
|
Your end user with Web Banking | If you use Swan's Web Banking interface, your users can trigger the generation of their bank details PDF.
|