Skip to main content

Arguments

accountNumber : String! required

Returns

AccountType

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 activeHardshipAgreements { ...HardshipAgreementTypeFragment } activeReferralSchemes { ...ReferralSchemeTypesFragment } address { ...RichAddressTypeFragment } agreements { ...AgreementConnectionTypeConnectionFragment } annualStatements { ...AnnualStatementConnectionTypeConnectionFragment } applications { ...AccountApplicationConnectionTypeConnectionFragment } assistanceAgreements { ...AssistanceAgreementTypeFragment } balance bill { ...BillInterfaceFragment } billingAddress billingAddressLine1 billingAddressLine2 billingAddressLine3 billingAddressLine4 billingAddressLine5 billingAddressPostcode billingCountryCode billingDeliveryPointIdentifier billingEmail billingName billingOptions { ...BillingOptionsTypeFragment } billingSubName billingTriggerConfiguration { ...BillingTriggerConfigurationFragment } bills { ...BillConnectionTypeConnectionFragment } brand business { ...BusinessTypeFragment } campaigns { ...AccountCampaignTypeFragment } canModifyPayments { ...CanModifyPaymentsTypeFragment } canRequestRefund commsDeliveryPreference consents { ...ConsentTypeFragment } contributionAgreements { ...ContributionAgreementTypeFragment } createdAt creditStorage { ...CreditStorageFragment } customerAssets { ...CustomerAssetTypeFragment } debtCollectionProceedings { ...DebtCollectionProceedingTypeFragment } directDebitInstructions { ...DirectDebitInstructionConnectionTypeConnectionFragment } documentAccessibility energyChequeCertificates { ...EnergyChequeCertificateFragment } energyCheques { ...EnergyChequeFragment } events { ...AccountEventConnectionTypeConnectionFragment } fileAttachments { ...AccountFileAttachmentFragment } fraPotLedger { ...SupplementaryLedgerTypeFragment } id isInHardship ledgers { ...LedgerTypeFragment } marketSupplyAgreements { ...AgreementConnectionFragment } maximumRefund { ...MaximumRefundTypeFragment } metadata { ...MetadataFragment } nextPaymentOrRepayment { ...FraPaymentsInterfaceFragment } notes { ...AccountNoteTypeFragment } number overdueBalance paginatedFileAttachments { ...AccountFileAttachmentConnectionTypeConnectionFragment } paginatedPaymentForecast { ...PaymentForecastConnectionTypeConnectionFragment } 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 } splitBillingAddress status supplyContracts { ...SupplyContractConnectionTypeConnectionFragment } transactions { ...TransactionConnectionTypeConnectionFragment } urn users { ...AccountUserTypeFragment } } }

Variables

{ "accountNumber": "A-0DDF1C94" }

Response

{ "data": { "account": { "accountType": "BUSINESS", "activeHardshipAgreements": [HardshipAgreementType], "activeReferralSchemes": ReferralSchemeTypes, "address": RichAddressType, "agreements": AgreementConnectionTypeConnection, "annualStatements": AnnualStatementConnectionTypeConnection, "applications": AccountApplicationConnectionTypeConnection, "assistanceAgreements": [AssistanceAgreementType], "balance": 57, "bill": BillInterface, "billingAddress": "popular-cultural-garden-offer-study", "billingAddressLine1": "provide-world-adult-firm-lose", "billingAddressLine2": "already-appear-happen-next-career", "billingAddressLine3": "attention-five-score-note-you", "billingAddressLine4": "painting-three-of-lose-indeed", "billingAddressLine5": "author-as-probably-teacher-affect", "billingAddressPostcode": "Congress-force-fine-strong-education", "billingCountryCode": "fill-maintain-week-family-plant", "billingDeliveryPointIdentifier": "16522899", "billingEmail": "break-issue-party-everything-should", "billingName": "rest-management-example-eight-common", "billingOptions": BillingOptionsType, "billingSubName": "central-behind-ground-season-recent", "billingTriggerConfiguration": BillingTriggerConfiguration, "bills": BillConnectionTypeConnection, "brand": "court-word-change-loss-recently", "business": BusinessType, "campaigns": [AccountCampaignType], "canModifyPayments": CanModifyPaymentsType, "canRequestRefund": true, "commsDeliveryPreference": "EMAIL", "consents": [ConsentType], "contributionAgreements": [ContributionAgreementType], "createdAt": "1972-02-20T09:20:46.049588+00:00", "creditStorage": CreditStorage, "customerAssets": [CustomerAssetType], "debtCollectionProceedings": [DebtCollectionProceedingType], "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection, "documentAccessibility": "LARGE_PRINT", "energyChequeCertificates": [EnergyChequeCertificate], "energyCheques": [EnergyCheque], "events": AccountEventConnectionTypeConnection, "fileAttachments": [AccountFileAttachment], "fraPotLedger": SupplementaryLedgerType, "id": "95861463", "isInHardship": true, "ledgers": [LedgerType], "marketSupplyAgreements": AgreementConnection, "maximumRefund": MaximumRefundType, "metadata": [Metadata], "nextPaymentOrRepayment": FraPaymentsInterface, "notes": [AccountNoteType], "number": "easy-scientist-although-medical-now", "overdueBalance": 90, "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection, "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection, "paymentMethods": PaymentInstructionConnectionTypeConnection, "paymentPlans": PaymentPlanConnectionTypeConnection, "payments": AccountPaymentConnectionTypeConnection, "paymentSchedules": PaymentScheduleConnectionTypeConnection, "portfolio": PortfolioType, "preferredLanguageForComms": "force-minute-color-remain-huge", "properties": [PropertyType], "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection, "references": [AccountReferenceType], "referrals": ReferralConnectionTypeConnection, "referralsCreated": 50, "reminders": AccountReminderConnectionTypeConnection, "repayments": AccountRepaymentConnectionTypeConnection, "requestRefundEligibility": RequestRefundEligibilityType, "rewards": [RewardType], "splitBillingAddress": "need-no-score-close-open", "status": "PENDING", "supplyContracts": SupplyContractConnectionTypeConnection, "transactions": TransactionConnectionTypeConnection, "urn": "appear-rise-start-just-reach", "users": [AccountUserType] } } }