Skip to main content

Audience:

Developers

Get a list of funding sources

List an account's funding sources with the account query.

Guide

  1. Call the account query.
  2. Add your account ID.
  3. Add fundingSources, then add the DirectDebitFundingSource and SEPAPaymentDirectDebitMandate unions.

Query

Open in API Explorer
query 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"
}
}
}
]
}
}
}
}