Audience:
Developers
Get information about a funding source
Query a funding source's details, including its payment mandate and transactions, with the fundingSource query.
Guide
- Call the
fundingSourcequery. - Add your funding source ID.
- Add all the information you'd like to review.
Query
Open in API Explorerquery GetSourceInfo {
fundingSource(id: "$YOUR_FUNDING_SOURCE_ID") {
... on DirectDebitFundingSource {
id
name
iban
createdAt
paymentMandate {
... on SEPAPaymentDirectDebitMandate {
id
name
transactions {
edges {
node {
label
id
}
}
}
}
}
}
}
}
Payload
The payload shows that the user used their funding source to perform two transactions.
{
"data": {
"fundingSource": {
"id": "$YOUR_SOURCE_ID",
"name": "Your Funding Source Name",
"iban": "$YOUR_NON_SWAN_IBAN",
"createdAt": "2024-01-22T18:10:26.271Z",
"paymentMandate": {
"id": "$YOUR_MANDATE_ID",
"name": "Your Mandate Name",
"transactions": {
"edges": [
{
"node": {
"label": "Transaction 1",
"id": "$YOUR_TRANSACTION_ID_1"
}
},
{
"node": {
"label": "Transaction 2",
"id": "$YOUR_TRANSACTION_ID_2"
}
}
]
}
}
}
}
}
Also available
Get funding informationFrom the Dashboard