account
Get details about an account.
Arguments
Returns
AccountThe account object can be one of several attached to a Portfolio (which usually has an AccountUser which is used to authenticate access to the Portfolio's accounts). Typically a person has a single account attached to a portfolio and properties on the same account will appear on the same bill. Where separate bills are desired, multiple accounts are created and added to the same portfolio of accounts.
Can access customer queries
Can query accounts with account number
Can view detailed usage
Can query accounts with account number
Can view detailed usage
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 Account($accountNumber: String!) {
account(accountNumber: $accountNumber) {
accountType
accountUserAccessors {
...AccountUserAccessorAccessConnectionTypeConnectionFragment
}
activeHardshipAgreements {
...HardshipAgreementTypeFragment
}
activeReferralSchemes {
...ReferralSchemeTypesFragment
}
address {
...RichAddressTypeFragment
}
annualStatements {
...AnnualStatementConnectionTypeConnectionFragment
}
applications {
...AccountApplicationConnectionTypeConnectionFragment
}
assistanceAgreements {
...AssistanceAgreementTypeFragment
}
availableDemandResponseCampaignsForRegistration
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
}
canBeWithdrawn
canModifyPayments {
...CanModifyPaymentsTypeFragment
}
canRequestRefund
commsDeliveryPreference
complaints {
...ComplaintConnectionTypeConnectionFragment
}
consentData
consents {
...ConsentTypeFragment
}
contributionAgreements {
...ContributionAgreementTypeFragment
}
createdAt
customerAssets {
...CustomerAssetTypeFragment
}
debtCollectionProceedings {
...DebtCollectionProceedingTypeFragment
}
demandResponseCampaignParticipants {
...DemandResponseCampaignParticipantTypeFragment
}
directDebitInstructions {
...DirectDebitInstructionConnectionTypeConnectionFragment
}
documentAccessibility
events {
...AccountEventConnectionTypeConnectionFragment
}
fileAttachments {
...AccountFileAttachmentFragment
}
hasActiveAgreement
hasFutureAgreement
id
isInHardship
ledgers {
...LedgerTypeFragment
}
lifelineAgencyApplication {
...LifelineAgencyApplicationFragment
}
marketSupplyAgreements {
...AgreementConnectionFragment
}
maximumRefund {
...MaximumRefundTypeFragment
}
metadata {
...MetadataFragment
}
notes {
...AccountNoteTypeFragment
}
number
overdueBalance
paginatedFileAttachments {
...AccountFileAttachmentConnectionTypeConnectionFragment
}
paginatedPaymentForecast {
...PaymentForecastConnectionTypeConnectionFragment
}
partnerAccessors {
...PartnerAccessorAccessConnectionTypeConnectionFragment
}
paymentInstructions {
...PaymentInstructionConnectionTypeConnectionFragment
}
paymentMethods {
...PaymentInstructionConnectionTypeConnectionFragment
}
paymentPreferences {
...PaymentPreferenceConnectionTypeConnectionFragment
}
payments {
...AccountPaymentConnectionTypeConnectionFragment
}
paymentSchedule {
...PaymentScheduleTypeFragment
}
paymentSchedules {
...PaymentScheduleConnectionTypeConnectionFragment
}
portfolio {
...PortfolioTypeFragment
}
preferredLanguageForComms
properties {
...PropertyFragment
}
provisionalTransactions {
...ProvisionalTransactionConnectionTypeConnectionFragment
}
references {
...AccountReferenceTypeFragment
}
referrals {
...ReferralConnectionTypeConnectionFragment
}
referralsCreated
reminders {
...AccountReminderConnectionTypeConnectionFragment
}
repayments {
...AccountRepaymentConnectionTypeConnectionFragment
}
requestRefundEligibility {
...RequestRefundEligibilityTypeFragment
}
rewards {
...RewardTypeFragment
}
splitBillingAddress
status
transactions {
...TransactionConnectionTypeConnectionFragment
}
urn
users {
...AccountUserFragment
}
}
}
Variables
{
"accountNumber": "A-EDCD6C20"
}
Response
{
"data": {
"account": {
"accountType": "BUSINESS",
"accountUserAccessors": AccountUserAccessorAccessConnectionTypeConnection,
"activeHardshipAgreements": [HardshipAgreementType],
"activeReferralSchemes": ReferralSchemeTypes,
"address": RichAddressType,
"annualStatements": AnnualStatementConnectionTypeConnection,
"applications": AccountApplicationConnectionTypeConnection,
"assistanceAgreements": [AssistanceAgreementType],
"availableDemandResponseCampaignsForRegistration": "late-environment-must-rise-suffer",
"balance": 1,
"bill": BillInterface,
"billingAddress": "could-our-add-play-score",
"billingAddressLine1": "enter-never-baby-toward-hospital",
"billingAddressLine2": "now-with-although-cultural-list",
"billingAddressLine3": "with-describe-food-main-mention",
"billingAddressLine4": "report-enjoy-claim-identify-that",
"billingAddressLine5": "tend-speech-difficult-image-land",
"billingAddressPostcode": "resource-hit-ability-couple-goal",
"billingCountryCode": "black-also-line-course-protect",
"billingDeliveryPointIdentifier": "52377108",
"billingEmail": "amount-strong-eight-course-imagine",
"billingName": "white-assume-conference-and-station",
"billingOptions": BillingOptionsType,
"billingSubName": "support-responsibility-sport-arrive-never",
"billingTriggerConfiguration": BillingTriggerConfiguration,
"bills": BillConnectionTypeConnection,
"brand": "see-foreign-thank-reach-west",
"business": BusinessType,
"campaigns": [AccountCampaignType],
"canBeWithdrawn": true,
"canModifyPayments": CanModifyPaymentsType,
"canRequestRefund": true,
"commsDeliveryPreference": "EMAIL",
"complaints": ComplaintConnectionTypeConnection,
"consentData": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
"consents": [ConsentType],
"contributionAgreements": [ContributionAgreementType],
"createdAt": "2013-11-13T15:13:03.745579+00:00",
"customerAssets": [CustomerAssetType],
"debtCollectionProceedings": [DebtCollectionProceedingType],
"demandResponseCampaignParticipants": [DemandResponseCampaignParticipantType],
"directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
"documentAccessibility": "LARGE_PRINT",
"events": AccountEventConnectionTypeConnection,
"fileAttachments": [AccountFileAttachment],
"hasActiveAgreement": true,
"hasFutureAgreement": true,
"id": "10373181",
"isInHardship": true,
"ledgers": [LedgerType],
"lifelineAgencyApplication": LifelineAgencyApplication,
"marketSupplyAgreements": AgreementConnection,
"maximumRefund": MaximumRefundType,
"metadata": [Metadata],
"notes": [AccountNoteType],
"number": "oil-student-spring-until-seven",
"overdueBalance": 28,
"paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
"paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
"partnerAccessors": PartnerAccessorAccessConnectionTypeConnection,
"paymentInstructions": PaymentInstructionConnectionTypeConnection,
"paymentMethods": PaymentInstructionConnectionTypeConnection,
"paymentPreferences": PaymentPreferenceConnectionTypeConnection,
"payments": AccountPaymentConnectionTypeConnection,
"paymentSchedule": PaymentScheduleType,
"paymentSchedules": PaymentScheduleConnectionTypeConnection,
"portfolio": PortfolioType,
"preferredLanguageForComms": "speech-side-lot-available-to",
"properties": [Property],
"provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
"references": [AccountReferenceType],
"referrals": ReferralConnectionTypeConnection,
"referralsCreated": 35,
"reminders": AccountReminderConnectionTypeConnection,
"repayments": AccountRepaymentConnectionTypeConnection,
"requestRefundEligibility": RequestRefundEligibilityType,
"rewards": [RewardType],
"splitBillingAddress": "usually-window-adult-increase-suddenly",
"status": "PENDING",
"transactions": TransactionConnectionTypeConnection,
"urn": "on-once-Congress-better-off",
"users": [AccountUser]
}
}
}