accounts
Get details about multiple accounts.
Arguments
Returns
[AccountType]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
}
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
complaints {
...ComplaintConnectionTypeConnectionFragment
}
consents {
...ConsentTypeFragment
}
contributionAgreements {
...ContributionAgreementTypeFragment
}
createdAt
customerAssets {
...CustomerAssetTypeFragment
}
debtCollectionProceedings {
...DebtCollectionProceedingTypeFragment
}
directDebitInstructions {
...DirectDebitInstructionConnectionTypeConnectionFragment
}
documentAccessibility
events {
...AccountEventConnectionTypeConnectionFragment
}
fileAttachments {
...AccountFileAttachmentFragment
}
id
isInHardship
ledgers {
...LedgerTypeFragment
}
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 {
...PropertyFragment
}
provisionalTransactions {
...ProvisionalTransactionConnectionTypeConnectionFragment
}
references {
...AccountReferenceTypeFragment
}
referrals {
...ReferralConnectionTypeConnectionFragment
}
referralsCreated
reminders {
...AccountReminderConnectionTypeConnectionFragment
}
repayments {
...AccountRepaymentConnectionTypeConnectionFragment
}
requestRefundEligibility {
...RequestRefundEligibilityTypeFragment
}
rewards {
...RewardTypeFragment
}
splitBillingAddress
status
transactions {
...TransactionConnectionTypeConnectionFragment
}
urn
users {
...AccountUserTypeFragment
}
}
}
Variables
{
"phoneNumber": "general-cover-recognize-man-color",
"portfolioNumber": "P-2695D2E8"
}
Response
{
"data": {
"accounts": [
{
"accountType": "BUSINESS",
"activeHardshipAgreements": [HardshipAgreementType],
"activeReferralSchemes": ReferralSchemeTypes,
"address": RichAddressType,
"agreements": AgreementConnectionTypeConnection,
"annualStatements": AnnualStatementConnectionTypeConnection,
"applications": AccountApplicationConnectionTypeConnection,
"assistanceAgreements": [AssistanceAgreementType],
"balance": 88,
"bill": BillInterface,
"billingAddress": "difference-technology-white-sell-writer",
"billingAddressLine1": "full-smile-have-road-week",
"billingAddressLine2": "dinner-in-leg-draw-turn",
"billingAddressLine3": "true-certainly-character-ok-camera",
"billingAddressLine4": "improve-physical-life-process-about",
"billingAddressLine5": "side-material-not-store-pick",
"billingAddressPostcode": "occur-less-anything-sell-ready",
"billingCountryCode": "training-common-keep-figure-fight",
"billingDeliveryPointIdentifier": "12519723",
"billingEmail": "look-family-movement-first-bag",
"billingName": "staff-company-product-court-station",
"billingOptions": BillingOptionsType,
"billingSubName": "rather-exactly-real-who-him",
"billingTriggerConfiguration": BillingTriggerConfiguration,
"bills": BillConnectionTypeConnection,
"brand": "across-peace-kind-say-second",
"business": BusinessType,
"campaigns": [AccountCampaignType],
"canModifyPayments": CanModifyPaymentsType,
"canRequestRefund": true,
"commsDeliveryPreference": "EMAIL",
"complaints": ComplaintConnectionTypeConnection,
"consents": [ConsentType],
"contributionAgreements": [ContributionAgreementType],
"createdAt": "2019-07-19T05:52:01.888059+00:00",
"customerAssets": [CustomerAssetType],
"debtCollectionProceedings": [DebtCollectionProceedingType],
"directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
"documentAccessibility": "LARGE_PRINT",
"events": AccountEventConnectionTypeConnection,
"fileAttachments": [AccountFileAttachment],
"id": "75062203",
"isInHardship": true,
"ledgers": [LedgerType],
"marketSupplyAgreements": AgreementConnection,
"maximumRefund": MaximumRefundType,
"metadata": [Metadata],
"notes": [AccountNoteType],
"number": "expect-today-federal-ability-answer",
"overdueBalance": 19,
"paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
"paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
"partnerAccessors": PartnerAccessorAccessConnectionTypeConnection,
"paymentMethods": PaymentInstructionConnectionTypeConnection,
"paymentPlans": PaymentPlanConnectionTypeConnection,
"payments": AccountPaymentConnectionTypeConnection,
"paymentSchedules": PaymentScheduleConnectionTypeConnection,
"portfolio": PortfolioType,
"preferredLanguageForComms": "style-energy-American-sense-record",
"properties": [Property],
"provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
"references": [AccountReferenceType],
"referrals": ReferralConnectionTypeConnection,
"referralsCreated": 56,
"reminders": AccountReminderConnectionTypeConnection,
"repayments": AccountRepaymentConnectionTypeConnection,
"requestRefundEligibility": RequestRefundEligibilityType,
"rewards": [RewardType],
"splitBillingAddress": "once-study-however-yet-character",
"status": "PENDING",
"transactions": TransactionConnectionTypeConnection,
"urn": "type-protect-threat-information-game",
"users": [AccountUserType]
}
]
}
}