Account
Whether you call it a wallet, monetary account, payment account or bank account, the notion of account is fundamental at Swan. All payment flows necessarily go through an account.
type Account {
id: ID!
number: AccountNumber!
name: String!
holder: AccountHolder!
cashAccountType: CashAccountType!
country: AccountCountry!
paymentLevel: PaymentLevel!
currency: Currency!
statusInfo: AccountStatusInfo!
partnershipStatusInfo: PartnershipStatusInfo
createdAt: DateTime!
updatedAt: DateTime!
virtualIbanEntries(
first: Int! = 50
before: String
after: String
filters: VirtualIbanEntriesFilterInput
): VirtualIBANEntryConnection!
memberships(
first: Int! = 50
before: String
after: String
filters: MembershipsFilterInput
orderBy: AccountMembershipOrderByInput
): AccountMembershipConnection!
requiredConsentToFetchNewTransactions: Boolean!
language: AccountLanguage!
legalRepresentativeMembership: AccountMembership!
paymentAccountType: PaymentAccountType!
upgradedAt: DateTime
bankDetails: String
settings: AccountSettings!
BIC: BIC!
IBAN: IBAN
blockSDD: Boolean
legalDocuments(
first: Int! = 50
after: String
filters: LegalDocumentsFilterInput
): LegalDocumentConnection
balances: AccountBalances
statements(
first: Int! = 50
after: String
filters: StatementFiltersInput
orderBy: StatementsOrderByInput
): StatementConnection
transactions(
first: Int! = 50
after: String
orderBy: TransactionsOrderByInput
filters: TransactionsFiltersInput
): TransactionConnection
invoices(
first: Int! = 10
after: String
): InvoiceConnection
creditLimitSettings: CreditLimitSettings
receivedDirectDebitMandates(
first: Int! = 50
after: String
orderBy: AccountReceivedDirectDebitOrderByInput
filters: AccountReceivedDirectDebitMandateFiltersInput
): ReceivedDirectDebitMandateConnection
merchantProfiles(
first: Int! = 50
after: String
orderBy: MerchantProfileOrderByInput
filters: MerchantProfileFiltersInput
): MerchantProfileConnection
standingOrders(
first: Int! = 50
after: String
offset: Int
orderBy: AccountStandingOrderOrderByInput
filters: AccountStandingOrderFiltersInput
): StandingOrderConnection!
fundingSources(
first: Int! = 50
after: String
offset: Int
orderBy: FundingSourceOrderByInput
filters: FundingSourceFiltersInput
): FundingSourceConnection
trustedBeneficiaries(
first: Int! = 50
after: String
offset: Int
orderBy: TrustedBeneficiaryOrderByInput
filters: TrustedBeneficiaryFiltersInput
): TrustedBeneficiaryConnection!
}
Fields
Account.id ● ID! non-null scalar
Unique identifier of an account
Account.number ● AccountNumber! non-null scalar
Unique account number
Account.name ● String! non-null scalar
Account name
Account.holder ● AccountHolder! non-null object
Account holder
Account.cashAccountType ● CashAccountType! non-null enum
Cash account type
Account.country ● AccountCountry! non-null enum
Country of the account
Account.paymentLevel ● PaymentLevel! non-null enum
Payment level
Account.currency ● Currency! non-null scalar
Currency
Account.statusInfo ● AccountStatusInfo! non-null interface
Status of the account
Account.partnershipStatusInfo ● PartnershipStatusInfo interface
Partnership status
Account.createdAt ● DateTime! non-null scalar
Created date
Account.updatedAt ● DateTime! non-null scalar
Updated date
Account.virtualIbanEntries ● VirtualIBANEntryConnection! non-null object
List of Virtual IBAN
Implements the Relay Connection interface, used to paginate lists of elements. (Learn More)
Account.virtualIbanEntries.first ● Int! non-null scalar
the number of elements to load (maximum: 100)
Account.virtualIbanEntries.before ● String scalar
the index (a unique reference in string form) from which you will load the preceding elements
Account.virtualIbanEntries.after ● String scalar
the index (a unique reference in string form) from which you will load the following elements
Account.virtualIbanEntries.filters ● VirtualIbanEntriesFilterInput input
filters that can be applied when listing virtual iban entries
Account.memberships ● AccountMembershipConnection! non-null object
List of account membership for this account
Implements the Relay Connection interface, used to paginate lists of elements. (Learn More)
Account.memberships.first ● Int! non-null scalar
the number of elements to load (maximum: 100)
Account.memberships.before ● String scalar
the index (a unique reference in string form) from which you will load the preceding elements