Skip to main content

Arguments

accountNumber : String! required

Returns

Account

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can access customer queries
OR Can query accounts with account number
OR Can view detailed usage

Query Complexity

2

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query Account($accountNumber: String!) { account(accountNumber: $accountNumber) { accountType accountUserAccessors { ...AccountUserAccessorAccessConnectionTypeConnectionFragment } activeHardshipAgreements { ...HardshipAgreementTypeFragment } activeReferralSchemes { ...ReferralSchemeTypesFragment } address { ...RichAddressTypeFragment } annualStatements { ...AnnualStatementConnectionTypeConnectionFragment } applications { ...AccountApplicationConnectionTypeConnectionFragment } assistanceAgreements { ...AssistanceAgreementTypeFragment } balance bill { ...BillInterfaceFragment } billingAddress billingAddressLine1 billingAddressLine2 billingAddressLine3 billingAddressLine4 billingAddressLine5 billingAddressPostcode billingCountryCode billingDeliveryPointIdentifier billingEmail billingName billingOptions { ...BillingOptionsTypeFragment } billingPostcode billingSubName billingTriggerConfiguration { ...BillingTriggerConfigurationFragment } bills { ...BillConnectionTypeConnectionFragment } brand business { ...BusinessTypeFragment } campaigns { ...AccountCampaignTypeFragment } canModifyPayments { ...CanModifyPaymentsTypeFragment } canRequestRefund commsDeliveryPreference complaints { ...ComplaintConnectionTypeConnectionFragment } consents { ...ConsentTypeFragment } contributionAgreements { ...ContributionAgreementTypeFragment } createdAt currentGiftCreditLeftInEur customerAssets { ...CustomerAssetTypeFragment } debtCollectionProceedings { ...DebtCollectionProceedingTypeFragment } directDebitInstructions { ...DirectDebitInstructionConnectionTypeConnectionFragment } documentAccessibility events { ...AccountEventConnectionTypeConnectionFragment } fileAttachments { ...AccountFileAttachmentFragment } holderName holderNif id isInHardship ledgers { ...LedgerTypeFragment } loggedRepresentative { ...PersonalInformationFragment } marketSupplyAgreements { ...AgreementConnectionFragment } maximumRefund { ...MaximumRefundTypeFragment } metadata { ...MetadataFragment } notes { ...AccountNoteTypeFragment } number overdueBalance paginatedFileAttachments { ...AccountFileAttachmentConnectionTypeConnectionFragment } paginatedPaymentForecast { ...PaymentForecastConnectionTypeConnectionFragment } partnerAccessors { ...PartnerAccessorAccessConnectionTypeConnectionFragment } paymentMethods { ...PaymentInstructionConnectionTypeConnectionFragment } paymentPlans { ...PaymentPlanConnectionTypeConnectionFragment } payments { ...AccountPaymentConnectionTypeConnectionFragment } paymentSchedules { ...PaymentScheduleConnectionTypeConnectionFragment } portfolio { ...PortfolioTypeFragment } preferredLanguageForComms properties { ...PropertyTypeFragment } provisionalTransactions { ...ProvisionalTransactionConnectionTypeConnectionFragment } references { ...AccountReferenceTypeFragment } referrals { ...ReferralConnectionTypeConnectionFragment } referralsCreated reminders { ...AccountReminderConnectionTypeConnectionFragment } repayments { ...AccountRepaymentConnectionTypeConnectionFragment } requestRefundEligibility { ...RequestRefundEligibilityTypeFragment } rewards { ...RewardTypeFragment } spanishLedgers { ...LedgerWithPaymentsInstructionsFragment } splitBillingAddress status transactions { ...TransactionConnectionTypeConnectionFragment } urn users { ...EspAccountUserTypeFragment } } }

Variables

{ "accountNumber": "A-3505FEFE" }

Response

{ "data": { "account": { "accountType": "BUSINESS", "accountUserAccessors": AccountUserAccessorAccessConnectionTypeConnection, "activeHardshipAgreements": [HardshipAgreementType], "activeReferralSchemes": ReferralSchemeTypes, "address": RichAddressType, "annualStatements": AnnualStatementConnectionTypeConnection, "applications": AccountApplicationConnectionTypeConnection, "assistanceAgreements": [AssistanceAgreementType], "balance": 40, "bill": BillInterface, "billingAddress": "sign-return-face-worker-prepare", "billingAddressLine1": "from-attention-statement-build-less", "billingAddressLine2": "stock-learn-over-cold-item", "billingAddressLine3": "body-administration-film-million-family", "billingAddressLine4": "final-turn-enter-answer-themselves", "billingAddressLine5": "phone-talk-kid-deal-firm", "billingAddressPostcode": "product-boy-pull-book-air", "billingCountryCode": "player-career-other-this-wind", "billingDeliveryPointIdentifier": "69086158", "billingEmail": "within-agreement-dinner-little-study", "billingName": "we-across-catch-administration-case", "billingOptions": BillingOptionsType, "billingPostcode": "trial-be-much-crime-account", "billingSubName": "evidence-else-myself-them-morning", "billingTriggerConfiguration": BillingTriggerConfiguration, "bills": BillConnectionTypeConnection, "brand": "mouth-everything-conference-look-hour", "business": BusinessType, "campaigns": [AccountCampaignType], "canModifyPayments": CanModifyPaymentsType, "canRequestRefund": true, "commsDeliveryPreference": "EMAIL", "complaints": ComplaintConnectionTypeConnection, "consents": [ConsentType], "contributionAgreements": [ContributionAgreementType], "createdAt": "2021-02-10T18:50:09.713705+00:00", "currentGiftCreditLeftInEur": "1.0", "customerAssets": [CustomerAssetType], "debtCollectionProceedings": [DebtCollectionProceedingType], "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection, "documentAccessibility": "LARGE_PRINT", "events": AccountEventConnectionTypeConnection, "fileAttachments": [AccountFileAttachment], "holderName": "decade-agent-appear-first-despite", "holderNif": "however-they-rock-order-story", "id": "18715607", "isInHardship": true, "ledgers": [LedgerType], "loggedRepresentative": PersonalInformation, "marketSupplyAgreements": AgreementConnection, "maximumRefund": MaximumRefundType, "metadata": [Metadata], "notes": [AccountNoteType], "number": "sometimes-alone-new-national-name", "overdueBalance": 76, "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection, "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection, "partnerAccessors": PartnerAccessorAccessConnectionTypeConnection, "paymentMethods": PaymentInstructionConnectionTypeConnection, "paymentPlans": PaymentPlanConnectionTypeConnection, "payments": AccountPaymentConnectionTypeConnection, "paymentSchedules": PaymentScheduleConnectionTypeConnection, "portfolio": PortfolioType, "preferredLanguageForComms": "and-create-relationship-whatever-travel", "properties": [PropertyType], "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection, "references": [AccountReferenceType], "referrals": ReferralConnectionTypeConnection, "referralsCreated": 3, "reminders": AccountReminderConnectionTypeConnection, "repayments": AccountRepaymentConnectionTypeConnection, "requestRefundEligibility": RequestRefundEligibilityType, "rewards": [RewardType], "spanishLedgers": [LedgerWithPaymentsInstructions], "splitBillingAddress": "usually-entire-movie-science-thought", "status": "PENDING", "transactions": TransactionConnectionTypeConnection, "urn": "discover-decision-clearly-price-I", "users": [EspAccountUserType] } } }