Audience:
Developers
Get a list of funding sources
List an account's funding sources with the account query.
Guide
- Call the
accountquery. - Add your account ID.
- Add
fundingSources, then add theDirectDebitFundingSourceandSEPAPaymentDirectDebitMandateunions.
Query
Open in API Explorerquery GetSourceList {
account(accountId: "$YOUR_ACCOUNT_ID") {
fundingSources {
edges {
node {
... on DirectDebitFundingSource {
id
name
iban
paymentMandate {
... on SEPAPaymentDirectDebitMandate {
id
name
}
}
}
}
}
}
}
}
Payload
The payload lists the funding sources for your account.
{
"data": {
"account": {
"fundingSources": {
"edges": [
{
"node": {
"id": "$YOUR_SOURCE_ID_1",
"name": "Your Funding Source Name 1",
"iban": "$YOUR_NON_SWAN_IBAN_1",
"paymentMandate": {
"id": "$YOUR_MANDATE_ID_1",
"name": "Your Mandate Name 1"
}
}
},
{
"node": {
"id": "$YOUR_SOURCE_ID_2",
"name": "Your Funding Source Name 2",
"iban": "$YOUR_NON_SWAN_IBAN_2",
"paymentMandate": {
"id": "$YOUR_MANDATE_ID_2",
"name": "Your Mandate Name 2"
}
}
}
]
}
}
}
}
Also available
Get funding informationFrom the Dashboard