accounts
Get details about multiple accounts.
Arguments
Returns
[Account]The 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.
Possible Errors
Allowed Viewers
Required Permissions
Can search for accountsQuery Complexity
1Examples
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 Accounts(
$phoneNumber: String,
$portfolioNumber: String
) {
accounts(
phoneNumber: $phoneNumber,
portfolioNumber: $portfolioNumber
) {
accountType
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
}
paymentInstructions {
...PaymentInstructionConnectionTypeConnectionFragment
}
paymentMethods {
...PaymentInstructionConnectionTypeConnectionFragment
}
paymentPlans {
...PaymentPlanConnectionTypeConnectionFragment
}
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
{
"phoneNumber": "someone-woman-issue-like-owner",
"portfolioNumber": "P-2267E7FB"
}
Response
{
"data": {
"accounts": [
{
"accountType": "BUSINESS",
"activeHardshipAgreements": [HardshipAgreementType],
"activeReferralSchemes": ReferralSchemeTypes,
"address": RichAddressType,
"annualStatements": AnnualStatementConnectionTypeConnection,
"applications": AccountApplicationConnectionTypeConnection,
"assistanceAgreements": [AssistanceAgreementType],
"availableDemandResponseCampaignsForRegistration": "best-much-purpose-want-poor",
"balance": 70,
"bill": BillInterface,
"billingAddress": "week-drop-young-here-strategy",
"billingAddressLine1": "fish-bring-decision-particularly-recently",
"billingAddressLine2": "bit-great-third-cultural-ready",
"billingAddressLine3": "opportunity-about-it-who-before",
"billingAddressLine4": "maintain-artist-investment-fear-physical",
"billingAddressLine5": "prove-ahead-training-long-despite",
"billingAddressPostcode": "training-thank-simple-we-kid",
"billingCountryCode": "area-message-seat-just-fast",
"billingDeliveryPointIdentifier": "89175858",
"billingEmail": "consumer-member-probably-service-project",
"billingName": "including-rate-others-local-piece",
"billingOptions": BillingOptionsType,
"billingSubName": "fill-as-challenge-win-throughout",
"billingTriggerConfiguration": BillingTriggerConfiguration,
"bills": BillConnectionTypeConnection,
"brand": "still-else-stuff-smile-must",
"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": "1987-02-23T17:16:06.045863+00:00",
"customerAssets": [CustomerAssetType],
"debtCollectionProceedings": [DebtCollectionProceedingType],
"demandResponseCampaignParticipants": [DemandResponseCampaignParticipantType],
"directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
"documentAccessibility": "LARGE_PRINT",
"events": AccountEventConnectionTypeConnection,
"fileAttachments": [AccountFileAttachment],
"hasActiveAgreement": true,
"hasFutureAgreement": true,
"id": "24338700",
"isInHardship": true,
"ledgers": [LedgerType],
"lifelineAgencyApplication": LifelineAgencyApplication,
"marketSupplyAgreements": AgreementConnection,
"maximumRefund": MaximumRefundType,
"metadata": [Metadata],
"notes": [AccountNoteType],
"number": "maybe-case-lawyer-also-like",
"overdueBalance": 73,
"paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
"paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
"paymentInstructions": PaymentInstructionConnectionTypeConnection,
"paymentMethods": PaymentInstructionConnectionTypeConnection,
"paymentPlans": PaymentPlanConnectionTypeConnection,
"paymentPreferences": PaymentPreferenceConnectionTypeConnection,
"payments": AccountPaymentConnectionTypeConnection,
"paymentSchedule": PaymentScheduleType,
"paymentSchedules": PaymentScheduleConnectionTypeConnection,
"portfolio": PortfolioType,
"preferredLanguageForComms": "treat-my-by-wish-Mrs",
"properties": [Property],
"provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
"references": [AccountReferenceType],
"referrals": ReferralConnectionTypeConnection,
"referralsCreated": 99,
"reminders": AccountReminderConnectionTypeConnection,
"repayments": AccountRepaymentConnectionTypeConnection,
"requestRefundEligibility": RequestRefundEligibilityType,
"rewards": [RewardType],
"splitBillingAddress": "environmental-special-size-exist-position",
"status": "PENDING",
"transactions": TransactionConnectionTypeConnection,
"urn": "right-maybe-against-husband-better",
"users": [AccountUser]
}
]
}
}