Get information about an account's IBANs
Get information about an account's IBANs with the API.
Guide​
- Call the
account
query. - Enter your accound ID.
- Add the information you need. This sample includes information relevant to IBANs, both main and virtual.
- Add pagination if you're expecting a long payload (line 6).
Query​
🔎 Open the query in API Explorer
query GetAccountIbanInfo {
account(accountId: "$YOUR_ACCOUNT_ID") {
IBAN
paymentAccountType
paymentLevel
virtualIbanEntries(first: 2) {
edges {
node {
BIC
IBAN
id
label
status
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
totalCount
}
}
}
Payload​
There's a lot to learn from this payload response.
- The account has a main
IBAN
(line 4), which means thepaymentAccountType
must bePaymentService
(line 5). Main IBANs are issued when the account type changes fromEMoney
toPaymentService
. - The
paymentLevel
isUnlimited
, meaning virtual IBANs can be added to the account. - There are nine total virtual IBANs (line 32), and only two are listed in this response because of pagination.
{
"data": {
"account": {
"IBAN": "$ACCOUNT_MAIN_IBAN",
"paymentAccountType": "PaymentService",
"paymentLevel": "Unlimited",
"virtualIbanEntries": {
"edges": [
{
"node": {
"BIC": "SWNBFR22",
"IBAN": "$VIRTUAL_IBAN_1",
"id": "$VIRTUAL_IBAN_1_ID",
"label": "Virtual",
"status": "Enabled"
}
},
{
"node": {
"BIC": "SWNBFR22",
"IBAN": "$VIRTUAL_IBAN_2",
"id": "$VIRTUAL_IBAN_2_ID",
"label": "Virtual",
"status": "Canceled"
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false
},
"totalCount": 9
}
}
}
}